Author: Armin Rigo <[email protected]>
Branch: py3.5
Changeset: r88837:b4167fbd295e
Date: 2016-12-03 08:54 +0100
http://bitbucket.org/pypy/pypy/changeset/b4167fbd295e/
Log: fix
diff --git a/lib-python/3/test/test_inspect.py
b/lib-python/3/test/test_inspect.py
--- a/lib-python/3/test/test_inspect.py
+++ b/lib-python/3/test/test_inspect.py
@@ -2791,11 +2791,11 @@
self.assertNotEqual(hash(foo_sig), hash(inspect.signature(bar)))
def foo(a={}): pass
- with self.assertRaisesRegex(TypeError, 'unhashable type'):
+ with self.assertRaisesRegex(TypeError, 'unhashable'):
hash(inspect.signature(foo))
def foo(a) -> {}: pass
- with self.assertRaisesRegex(TypeError, 'unhashable type'):
+ with self.assertRaisesRegex(TypeError, 'unhashable'):
hash(inspect.signature(foo))
def test_signature_str(self):
@@ -3252,7 +3252,7 @@
def foo(a): pass
ba = inspect.signature(foo).bind(1)
- with self.assertRaisesRegex(TypeError, 'unhashable type'):
+ with self.assertRaisesRegex(TypeError, 'unhashable'):
hash(ba)
def test_signature_bound_arguments_equality(self):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit