Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 407b3bd commit b8f02b5Copy full SHA for b8f02b5
1 file changed
Lib/test/support.py
@@ -1027,12 +1027,16 @@ def inner(*args, **kwds):
1027
def run_with_tz(tz):
1028
def decorator(func):
1029
def inner(*args, **kwds):
1030
+ try:
1031
+ tzset = time.tzset
1032
+ except AttributeError:
1033
+ raise unittest.SkipTest("tzset required")
1034
if 'TZ' in os.environ:
1035
orig_tz = os.environ['TZ']
1036
else:
1037
orig_tz = None
1038
os.environ['TZ'] = tz
- time.tzset()
1039
+ tzset()
1040
1041
# now run the function, resetting the tz on exceptions
1042
try:
0 commit comments