commit | b29614e047110f4d9af993a6cdec4e3fb7ef9738 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Tue Oct 09 11:16:03 2012 -0400 |
committer | Benjamin Peterson <benjamin@python.org> | Tue Oct 09 11:16:03 2012 -0400 |
tree | a15a5ac7b508c5033f640123f498a322f44b04ce | |
parent | a5119351519926971240f61d0c23a5fc5d00743e [diff] [blame] |
compare singletons by identity not equality (closes #16712) Patch from Serhiy Storchaka.
diff --git a/Lib/test/support.py b/Lib/test/support.py index 014bcf5..c5640e0 100644 --- a/Lib/test/support.py +++ b/Lib/test/support.py
@@ -1232,7 +1232,7 @@ try: return func(*args, **kwds) finally: - if orig_tz == None: + if orig_tz is None: del os.environ['TZ'] else: os.environ['TZ'] = orig_tz