long(float('nan')) raises an OverflowError as discussed on the mailing list a week ago
diff --git a/Lib/test/test_long.py b/Lib/test/test_long.py
index 09adc74..18bb7a4 100644
--- a/Lib/test/test_long.py
+++ b/Lib/test/test_long.py
@@ -539,7 +539,7 @@
 
     def test_nan_inf(self):
         self.assertRaises(OverflowError, int, float('inf'))
-        self.assertEqual(int(float('nan')), 0)
+        self.assertRaises(OverflowError, int, float('nan'))
 
 def test_main():
     test_support.run_unittest(LongTest)