diff options
author | Carl Friedrich Bolz-Tereick <cfbolz@gmx.de> | 2022-05-25 11:40:17 +0200 |
---|---|---|
committer | Carl Friedrich Bolz-Tereick <cfbolz@gmx.de> | 2022-05-25 11:40:17 +0200 |
commit | 67fa5c965b6cdfc289eb732e8bc76f618f539597 (patch) | |
tree | 321eedab3f3e51225ef0313c18cc3d0168381c4f /extra_tests | |
parent | some safety checking for defaults (but the feature is maybe unused in pypy?) (diff) | |
download | pypy-67fa5c965b6cdfc289eb732e8bc76f618f539597.tar.gz pypy-67fa5c965b6cdfc289eb732e8bc76f618f539597.tar.bz2 pypy-67fa5c965b6cdfc289eb732e8bc76f618f539597.zip |
dont make an extra copy of the dict
Diffstat (limited to 'extra_tests')
-rw-r--r-- | extra_tests/test_structseq.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/extra_tests/test_structseq.py b/extra_tests/test_structseq.py index 8afa0c92f6..31107cc8cf 100644 --- a/extra_tests/test_structseq.py +++ b/extra_tests/test_structseq.py @@ -56,6 +56,9 @@ def test_structseqtype(): foo((1, )) with pytest.raises(TypeError): foo((1, ) * 6) + with pytest.raises(TypeError): + foo((1, 2, 3, 4), dict(f5=5)) + def test_default_only_nonpositional(): with pytest.raises(AssertionError): |