diff options
author | Kristján Valur Jónsson <kristjan@ccpgames.com> | 2007-05-03 20:09:56 (GMT) |
---|---|---|
committer | Kristján Valur Jónsson <kristjan@ccpgames.com> | 2007-05-03 20:09:56 (GMT) |
commit | 170eee9d6ae4ad4270cfd164c046c2381d746191 (patch) | |
tree | 75570ad8d2a1b630046f6753a6a7fd2c2c11a17c /Lib/test/test_unittest.py | |
parent | 19ac472ba12c41e201b91a45e21ebc0b079d3ca1 (diff) | |
download | cpython-170eee9d6ae4ad4270cfd164c046c2381d746191.zip cpython-170eee9d6ae4ad4270cfd164c046c2381d746191.tar.gz cpython-170eee9d6ae4ad4270cfd164c046c2381d746191.tar.bz2 |
Fix those parts in the testsuite that assumed that sys.maxint would cause overflow on x64. Now the testsuite is well behaved on that platform.
Diffstat (limited to 'Lib/test/test_unittest.py')
-rw-r--r-- | Lib/test/test_unittest.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/test/test_unittest.py b/Lib/test/test_unittest.py index 7e60548..8d5bb63 100644 --- a/Lib/test/test_unittest.py +++ b/Lib/test/test_unittest.py @@ -540,7 +540,8 @@ class Test_TestLoader(TestCase): # audioop should now be loaded, thanks to loadTestsFromName() self.failUnless(module_name in sys.modules) finally: - del sys.modules[module_name] + if module_name in sys.modules: + del sys.modules[module_name] ################################################################ ### Tests for TestLoader.loadTestsFromName() @@ -936,7 +937,8 @@ class Test_TestLoader(TestCase): # audioop should now be loaded, thanks to loadTestsFromName() self.failUnless(module_name in sys.modules) finally: - del sys.modules[module_name] + if module_name in sys.modules: + del sys.modules[module_name] ################################################################ ### /Tests for TestLoader.loadTestsFromNames() |