summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2010-11-21 04:08:28 (GMT)
committerRaymond Hettinger <python@rcn.com>2010-11-21 04:08:28 (GMT)
commitd325c4b233bdf36110c4c97e51b895972cbcf672 (patch)
tree844c017173db101ba42ad059dd8ba798e6d04a69 /Lib/test
parent2dad5cade41eb8ba9880427f313ac2f1d2e1a505 (diff)
downloadcpython-d325c4b233bdf36110c4c97e51b895972cbcf672.zip
cpython-d325c4b233bdf36110c4c97e51b895972cbcf672.tar.gz
cpython-d325c4b233bdf36110c4c97e51b895972cbcf672.tar.bz2
Revert r86517
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_decimal.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_decimal.py b/Lib/test/test_decimal.py
index b07fb1d..611ef55 100644
--- a/Lib/test/test_decimal.py
+++ b/Lib/test/test_decimal.py
@@ -1346,7 +1346,7 @@ class DecimalUsabilityTest(unittest.TestCase):
#the same hash that to an int
self.assertEqual(hashit(Decimal(23)), hashit(23))
- self.assertRaises(ValueError, hash, Decimal('sNaN'))
+ self.assertRaises(TypeError, hash, Decimal('sNaN'))
self.assertTrue(hashit(Decimal('Inf')))
self.assertTrue(hashit(Decimal('-Inf')))