Skip to content

Commit d94aa57

Browse files
pfalcondpgeorge
authored andcommitted
tests/import_long_dyn: Test for "import *" of a long dynamic name.
Such names aren't stored as qstr in module dict, and there was a bug in "import *" handling which assumed any name in a module dict is a qstr.
1 parent 5c18730 commit d94aa57

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

tests/import/import_long_dyn.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from import_long_dyn2 import *

tests/import/import_long_dyn2.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
globals()["long_long_very_long_long_name"] = 1

0 commit comments

Comments
 (0)