[Python-3000-checkins] r59705 - python/branches/py3k/Lib/test/test_long.py

christian.heimes python-3000-checkins at python.org
Fri Jan 4 04:22:53 CET 2008


Author: christian.heimes
Date: Fri Jan  4 04:22:53 2008
New Revision: 59705

Modified:
   python/branches/py3k/Lib/test/test_long.py
Log:
Fixed test_long

Modified: python/branches/py3k/Lib/test/test_long.py
==============================================================================
--- python/branches/py3k/Lib/test/test_long.py	(original)
+++ python/branches/py3k/Lib/test/test_long.py	Fri Jan  4 04:22:53 2008
@@ -538,8 +538,8 @@
         self.assertRaises(ValueError, format, 3, "s")
 
     def test_nan_inf(self):
-        self.assertRaises(OverflowError, long, float('inf'))
-        self.assertEqual(long(float('nan')), 0L)
+        self.assertRaises(OverflowError, int, float('inf'))
+        self.assertEqual(int(float('nan')), 0)
 
 def test_main():
     test_support.run_unittest(LongTest)


More information about the Python-3000-checkins mailing list