Commit faa9ed0a authored by Stefan Behnel's avatar Stefan Behnel

revert modified test to the way CPython spells it

parent c17f8bfd
......@@ -183,12 +183,9 @@ f'{a * x()}'"""
# Inside of strings, don't interpret doubled brackets.
self.assertEqual(f'{"{{}}"}', '{{}}')
try:
f'{ {{}} }' # dict in a set
except TypeError as exc:
assert 'unhashable type' in str(exc)
else:
assert False, "TypeError not raised"
self.assertAllRaise(TypeError, 'unhashable type',
["f'{ {{}} }'", # dict in a set
])
def test_compile_time_concat(self):
x = 'def'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment