mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-17 00:07:37 +02:00
update tests to set correct timezone on POSIX systems
This commit is contained in:
@ -1,6 +1,14 @@
|
||||
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):
|
||||
|
||||
|
Reference in New Issue
Block a user