diff --git a/tests/test_date.py b/tests/test_date.py index b28dadad..ce230f90 100644 --- a/tests/test_date.py +++ b/tests/test_date.py @@ -1,17 +1,10 @@ import os -import sys -import time import json import unittest import jc.parsers.date THIS_DIR = os.path.dirname(os.path.abspath(__file__)) -# Set the timezone on POSIX systems. Need to manually set for Windows tests -if not sys.platform.startswith('win32'): - os.environ['TZ'] = 'America/Los_Angeles' - time.tzset() - class MyTests(unittest.TestCase): diff --git a/tests/test_dig.py b/tests/test_dig.py index 947687fd..a090c3dd 100644 --- a/tests/test_dig.py +++ b/tests/test_dig.py @@ -1,17 +1,10 @@ import os -import sys -import time import json import unittest import jc.parsers.dig THIS_DIR = os.path.dirname(os.path.abspath(__file__)) -# Set the timezone on POSIX systems. Need to manually set for Windows tests -if not sys.platform.startswith('win32'): - os.environ['TZ'] = 'America/Los_Angeles' - time.tzset() - class MyTests(unittest.TestCase): diff --git a/tests/test_dir.py b/tests/test_dir.py index 036fa83c..995a7cd7 100644 --- a/tests/test_dir.py +++ b/tests/test_dir.py @@ -1,17 +1,10 @@ import os -import sys -import time import json import unittest import jc.parsers.dir THIS_DIR = os.path.dirname(os.path.abspath(__file__)) -# Set the timezone on POSIX systems. Need to manually set for Windows tests -if not sys.platform.startswith('win32'): - os.environ['TZ'] = 'America/Los_Angeles' - time.tzset() - class MyTests(unittest.TestCase): diff --git a/tests/test_jc_utils.py b/tests/test_jc_utils.py index f3f3fc1a..9afa3a21 100644 --- a/tests/test_jc_utils.py +++ b/tests/test_jc_utils.py @@ -1,14 +1,7 @@ -import os import sys -import time import unittest import jc.utils -# Set the timezone on POSIX systems. Need to manually set for Windows tests -if not sys.platform.startswith('win32'): - os.environ['TZ'] = 'America/Los_Angeles' - time.tzset() - class MyTests(unittest.TestCase): diff --git a/tests/test_last.py b/tests/test_last.py index 6800b338..083baa7b 100644 --- a/tests/test_last.py +++ b/tests/test_last.py @@ -1,17 +1,10 @@ import os -import sys -import time import json import unittest import jc.parsers.last THIS_DIR = os.path.dirname(os.path.abspath(__file__)) -# Set the timezone on POSIX systems. Need to manually set for Windows tests -if not sys.platform.startswith('win32'): - os.environ['TZ'] = 'America/Los_Angeles' - time.tzset() - class MyTests(unittest.TestCase): diff --git a/tests/test_ls.py b/tests/test_ls.py index 1735c64b..133cffb6 100644 --- a/tests/test_ls.py +++ b/tests/test_ls.py @@ -1,17 +1,10 @@ import os -import sys -import time import json import unittest import jc.parsers.ls THIS_DIR = os.path.dirname(os.path.abspath(__file__)) -# Set the timezone on POSIX systems. Need to manually set for Windows tests -if not sys.platform.startswith('win32'): - os.environ['TZ'] = 'America/Los_Angeles' - time.tzset() - class MyTests(unittest.TestCase): diff --git a/tests/test_ls_s.py b/tests/test_ls_s.py index 385fa25a..1ec74ff2 100644 --- a/tests/test_ls_s.py +++ b/tests/test_ls_s.py @@ -1,6 +1,4 @@ import os -import sys -import time import json import unittest from jc.exceptions import ParseError @@ -8,12 +6,6 @@ import jc.parsers.ls_s THIS_DIR = os.path.dirname(os.path.abspath(__file__)) -# Set the timezone on POSIX systems. Need to manually set for Windows tests -if not sys.platform.startswith('win32'): - os.environ['TZ'] = 'America/Los_Angeles' - time.tzset() - - # To create streaming output use: # $ cat ls-al.out | jc --ls-s | jello -c > ls-al-streaming.json diff --git a/tests/test_rpm_qai.py b/tests/test_rpm_qai.py index 384d6fcf..8d1de8a5 100644 --- a/tests/test_rpm_qai.py +++ b/tests/test_rpm_qai.py @@ -1,17 +1,10 @@ import os -import sys -import time import unittest import json import jc.parsers.rpm_qi THIS_DIR = os.path.dirname(os.path.abspath(__file__)) -# Set the timezone on POSIX systems. Need to manually set for Windows tests -if not sys.platform.startswith('win32'): - os.environ['TZ'] = 'America/Los_Angeles' - time.tzset() - class MyTests(unittest.TestCase): diff --git a/tests/test_rsync_s.py b/tests/test_rsync_s.py index 82809d6a..22b761e9 100644 --- a/tests/test_rsync_s.py +++ b/tests/test_rsync_s.py @@ -1,17 +1,10 @@ import os -import sys -import time import json import unittest import jc.parsers.rsync_s THIS_DIR = os.path.dirname(os.path.abspath(__file__)) -# Set the timezone on POSIX systems. Need to manually set for Windows tests -if not sys.platform.startswith('win32'): - os.environ['TZ'] = 'America/Los_Angeles' - time.tzset() - # To create streaming output use: # $ cat rsync.out | jc --rsync-s | jello -c > rsync-streaming.json diff --git a/tests/test_stat.py b/tests/test_stat.py index 00d348ad..19c227bc 100644 --- a/tests/test_stat.py +++ b/tests/test_stat.py @@ -1,17 +1,10 @@ import os -import sys -import time import json import unittest import jc.parsers.stat THIS_DIR = os.path.dirname(os.path.abspath(__file__)) -# Set the timezone on POSIX systems. Need to manually set for Windows tests -if not sys.platform.startswith('win32'): - os.environ['TZ'] = 'America/Los_Angeles' - time.tzset() - class MyTests(unittest.TestCase): diff --git a/tests/test_stat_s.py b/tests/test_stat_s.py index c2ecbe7c..8006647b 100644 --- a/tests/test_stat_s.py +++ b/tests/test_stat_s.py @@ -1,6 +1,4 @@ import os -import sys -import time import json import unittest from jc.exceptions import ParseError @@ -8,11 +6,6 @@ import jc.parsers.stat_s THIS_DIR = os.path.dirname(os.path.abspath(__file__)) -# Set the timezone on POSIX systems. Need to manually set for Windows tests -if not sys.platform.startswith('win32'): - os.environ['TZ'] = 'America/Los_Angeles' - time.tzset() - # To create streaming output use: # $ cat stat.out | jc --stat-s | jello -c > stat-streaming.json diff --git a/tests/test_systeminfo.py b/tests/test_systeminfo.py index 64d3786a..7eccce88 100644 --- a/tests/test_systeminfo.py +++ b/tests/test_systeminfo.py @@ -1,17 +1,10 @@ import json import os -import sys -import time import unittest import jc.parsers.systeminfo THIS_DIR = os.path.dirname(os.path.abspath(__file__)) -# Set the timezone on POSIX systems. Need to manually set for Windows tests -if not sys.platform.startswith('win32'): - os.environ['TZ'] = 'America/Los_Angeles' - time.tzset() - class MyTests(unittest.TestCase): test_files = [ diff --git a/tests/test_upower.py b/tests/test_upower.py index 694f1be5..f87179f1 100644 --- a/tests/test_upower.py +++ b/tests/test_upower.py @@ -1,17 +1,10 @@ import os -import sys -import time import json import unittest import jc.parsers.upower THIS_DIR = os.path.dirname(os.path.abspath(__file__)) -# Set the timezone on POSIX systems. Need to manually set for Windows tests -# if not sys.platform.startswith('win32'): -# os.environ['TZ'] = 'America/Los_Angeles' -# time.tzset() - class MyTests(unittest.TestCase): diff --git a/tests/test_vmstat.py b/tests/test_vmstat.py index c82f288c..f2086338 100644 --- a/tests/test_vmstat.py +++ b/tests/test_vmstat.py @@ -1,17 +1,10 @@ import os -import sys -import time import json import unittest import jc.parsers.vmstat THIS_DIR = os.path.dirname(os.path.abspath(__file__)) -# Set the timezone on POSIX systems. Need to manually set for Windows tests -if not sys.platform.startswith('win32'): - os.environ['TZ'] = 'America/Los_Angeles' - time.tzset() - class MyTests(unittest.TestCase): diff --git a/tests/test_vmstat_s.py b/tests/test_vmstat_s.py index 9f50d7a9..758584d2 100644 --- a/tests/test_vmstat_s.py +++ b/tests/test_vmstat_s.py @@ -1,6 +1,4 @@ import os -import sys -import time import json import unittest from jc.exceptions import ParseError @@ -8,11 +6,6 @@ import jc.parsers.vmstat_s THIS_DIR = os.path.dirname(os.path.abspath(__file__)) -# Set the timezone on POSIX systems. Need to manually set for Windows tests -if not sys.platform.startswith('win32'): - os.environ['TZ'] = 'America/Los_Angeles' - time.tzset() - # To create streaming output use: # $ cat vmstat.out | jc --vmstat-s | jello -c > vmstat-streaming.json diff --git a/tests/test_who.py b/tests/test_who.py index fd93be99..e783e621 100644 --- a/tests/test_who.py +++ b/tests/test_who.py @@ -1,17 +1,10 @@ import os -import sys -import time import json import unittest import jc.parsers.who THIS_DIR = os.path.dirname(os.path.abspath(__file__)) -# Set the timezone on POSIX systems. Need to manually set for Windows tests -if not sys.platform.startswith('win32'): - os.environ['TZ'] = 'America/Los_Angeles' - time.tzset() - class MyTests(unittest.TestCase):