diff options
author | RĂ©mi Lapeyre <remi.lapeyre@henki.fr> | 2020-01-28 12:47:03 (GMT) |
---|---|---|
committer | Inada Naoki <songofacandy@gmail.com> | 2020-01-28 12:47:03 (GMT) |
commit | 2cca8efe46935c39c445f585bce54954fad2485b (patch) | |
tree | f1742035d30478e763ef671189e66fbb64381049 /Lib/test/test_inspect.py | |
parent | 0be3246d4f9c8eddcd55491901d95b09fe163f15 (diff) | |
download | cpython-2cca8efe46935c39c445f585bce54954fad2485b.zip cpython-2cca8efe46935c39c445f585bce54954fad2485b.tar.gz cpython-2cca8efe46935c39c445f585bce54954fad2485b.tar.bz2 |
bpo-36350: inspect: Replace OrderedDict with dict. (GH-12412)
Diffstat (limited to 'Lib/test/test_inspect.py')
-rw-r--r-- | Lib/test/test_inspect.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_inspect.py b/Lib/test/test_inspect.py index d95e742..8a2efc8 100644 --- a/Lib/test/test_inspect.py +++ b/Lib/test/test_inspect.py @@ -2077,6 +2077,7 @@ class TestSignatureObject(unittest.TestCase): P = inspect.Parameter self.assertEqual(str(S()), '()') + self.assertEqual(repr(S().parameters), 'mappingproxy({})') def test(po, pk, pod=42, pkd=100, *args, ko, **kwargs): pass @@ -3681,6 +3682,10 @@ class TestBoundArguments(unittest.TestCase): ba.apply_defaults() self.assertEqual(list(ba.arguments.items()), [('a', 'spam')]) + def test_signature_bound_arguments_arguments_type(self): + def foo(a): pass + ba = inspect.signature(foo).bind(1) + self.assertIs(type(ba.arguments), dict) class TestSignaturePrivateHelpers(unittest.TestCase): def test_signature_get_bound_param(self): |