summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_inspect.py
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2015-05-15 16:53:56 (GMT)
committerYury Selivanov <yselivanov@sprymix.com>2015-05-15 16:53:56 (GMT)
commitf229bc5c53e3dd2c1d2914c10efff08af88ca277 (patch)
tree7a6ab9841690c3d7ede25d4591c304d163f615d0 /Lib/test/test_inspect.py
parent51b58325f97c298c88e95c95bb2291eaf47e78e2 (diff)
downloadcpython-f229bc5c53e3dd2c1d2914c10efff08af88ca277.zip
cpython-f229bc5c53e3dd2c1d2914c10efff08af88ca277.tar.gz
cpython-f229bc5c53e3dd2c1d2914c10efff08af88ca277.tar.bz2
inspect: Remove "0x..." IDs from Signature objects' __repr__
Issue 24200.
Diffstat (limited to 'Lib/test/test_inspect.py')
-rw-r--r--Lib/test/test_inspect.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_inspect.py b/Lib/test/test_inspect.py
index 6f813be..13db79a 100644
--- a/Lib/test/test_inspect.py
+++ b/Lib/test/test_inspect.py
@@ -3153,8 +3153,7 @@ class TestBoundArguments(unittest.TestCase):
def foo(a, b, *, c:1={}, **kw) -> {42:'ham'}: pass
sig = inspect.signature(foo)
ba = sig.bind(20, 30, z={})
- self.assertRegex(repr(ba),
- r'<BoundArguments at 0x[a-fA-F0-9]+ \(a=20,.*\}\}\)>')
+ self.assertRegex(repr(ba), r'<BoundArguments \(a=20,.*\}\}\)>')
class TestSignaturePrivateHelpers(unittest.TestCase):