Issue #10356: hash(Decimal("sNaN")) now raises ValueError instead of TypeError.
diff --git a/Lib/test/test_decimal.py b/Lib/test/test_decimal.py
index 611ef55..b07fb1d 100644
--- a/Lib/test/test_decimal.py
+++ b/Lib/test/test_decimal.py
@@ -1346,7 +1346,7 @@
#the same hash that to an int
self.assertEqual(hashit(Decimal(23)), hashit(23))
- self.assertRaises(TypeError, hash, Decimal('sNaN'))
+ self.assertRaises(ValueError, hash, Decimal('sNaN'))
self.assertTrue(hashit(Decimal('Inf')))
self.assertTrue(hashit(Decimal('-Inf')))