Author: Brian Kearns <[email protected]>
Branch:
Changeset: r70681:19e7e8192d2e
Date: 2014-04-16 23:36 -0400
http://bitbucket.org/pypy/pypy/changeset/19e7e8192d2e/
Log: test with tzname rather than tzset for win32 compat
diff --git a/pypy/module/imp/test/test_import.py
b/pypy/module/imp/test/test_import.py
--- a/pypy/module/imp/test/test_import.py
+++ b/pypy/module/imp/test/test_import.py
@@ -587,17 +587,17 @@
def test_reimport_builtin(self):
import sys, time
oldpath = sys.path
- time.tzset = "<test_reimport_builtin removed this>"
+ time.tzname = "<test_reimport_builtin removed this>"
del sys.modules['time']
import time as time1
assert sys.modules['time'] is time1
- assert time.tzset == "<test_reimport_builtin removed this>"
+ assert time.tzname == "<test_reimport_builtin removed this>"
- reload(time1) # don't leave a broken time.tzset behind
+ reload(time1) # don't leave a broken time.tzname behind
import time
- assert time.tzset != "<test_reimport_builtin removed this>"
+ assert time.tzname != "<test_reimport_builtin removed this>"
def test_reload_infinite(self):
import infinite_reload
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit