diff options
| author | Jacob Walls <jacobtylerwalls@gmail.com> | 2022-07-09 17:50:21 -0400 |
|---|---|---|
| committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2022-07-10 08:26:53 +0200 |
| commit | a13285a4c74c5a6f9a653b22d964035b094bc144 (patch) | |
| tree | fb3d375ff691face23c4ff733204d51900743cf1 /tests | |
| parent | 588f3e8d44653fc00fb1650cbb40bb7939ac0998 (diff) | |
| download | astroid-git-a13285a4c74c5a6f9a653b22d964035b094bc144.tar.gz | |
Fix a crash when inferring old-style string formatting (`%`) using tuples (#1697)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/unittest_inference.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/unittest_inference.py b/tests/unittest_inference.py index c43deade..b82ee8d8 100644 --- a/tests/unittest_inference.py +++ b/tests/unittest_inference.py @@ -6945,6 +6945,9 @@ class TestOldStyleStringFormatting: age = 12 "My name is %0s, I'm %(age)s" % (fname, age) """, + """ + "My name is %s, I'm %s" % ((fname,)*2) + """, ], ) def test_old_style_string_formatting_uninferable(self, format_string: str) -> None: |
