Author: Brian Kearns <[email protected]>
Branch:
Changeset: r61243:7c100addc685
Date: 2013-02-14 21:12 -0500
http://bitbucket.org/pypy/pypy/changeset/7c100addc685/
Log: skip this test that can't work on win32
diff --git a/pypy/module/test_lib_pypy/test_datetime.py
b/pypy/module/test_lib_pypy/test_datetime.py
--- a/pypy/module/test_lib_pypy/test_datetime.py
+++ b/pypy/module/test_lib_pypy/test_datetime.py
@@ -66,9 +66,12 @@
"""
import os
import time
+ if os.name == 'nt':
+ skip("setting os.environ['TZ'] ineffective on windows")
try:
prev_tz = os.environ.get("TZ")
os.environ["TZ"] = "GMT"
+ time.tzset()
for unused in xrange(100):
now = time.time()
delta = (datetime.datetime.utcfromtimestamp(now) -
@@ -79,6 +82,7 @@
del os.environ["TZ"]
else:
os.environ["TZ"] = prev_tz
+ time.tzset()
def test_utcfromtimestamp_microsecond():
dt = datetime.datetime.utcfromtimestamp(0)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit