Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(323)

Unified Diff: Lib/test/test_float.py

Issue 660042: Compatible numeric hashes Base URL: http://svn.python.org/view/*checkout*/python/branches/py3k/
Patch Set: Add details about complex hash computation; reorganize sys.hash_info Created 13 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Lib/test/test_float.py
===================================================================
--- Lib/test/test_float.py (revision 81464)
+++ Lib/test/test_float.py (working copy)
@@ -914,15 +914,6 @@
self.assertFalse(NAN.is_inf())
self.assertFalse((0.).is_inf())
- def test_hash_inf(self):
- # the actual values here should be regarded as an
- # implementation detail, but they need to be
- # identical to those used in the Decimal module.
- self.assertEqual(hash(float('inf')), 314159)
- self.assertEqual(hash(float('-inf')), -271828)
- self.assertEqual(hash(float('nan')), 0)
-
-
fromHex = float.fromhex
toHex = float.hex
class HexFloatTestCase(unittest.TestCase):
« Doc/library/stdtypes.rst ('K') | « Lib/fractions.py ('k') | Lib/test/test_fractions.py » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b