diff --git a/test/bytecode_3.8_run/05_long_literals.pyc b/test/bytecode_3.8_run/05_long_literals.pyc index d599a738..665b3767 100644 Binary files a/test/bytecode_3.8_run/05_long_literals.pyc and b/test/bytecode_3.8_run/05_long_literals.pyc differ diff --git a/test/simple_source/expression/05_long_literals.py b/test/simple_source/expression/05_long_literals.py index 74804f09..b044d694 100644 --- a/test/simple_source/expression/05_long_literals.py +++ b/test/simple_source/expression/05_long_literals.py @@ -725,3 +725,10 @@ values = { } assert sorted(values.values())[1:] == list(range(2, 34)) + + +# Check that we can distinguish names from strings in literal collections, e.g. lists. +# The list has to have more than 4 items go get accumulated in a collection +a = ["y", 'Exception', "x", Exception, "z"] +assert a[1] == "Exception" +assert a[3] == Exception