Skip to content

Commit

Permalink
Adding test case for traversal crash
Browse files Browse the repository at this point in the history
Follow up for #369

Signed-off-by: Antoine Salon <[email protected]>
  • Loading branch information
Antoine Salon authored and ericwb committed Sep 1, 2018
1 parent 0293e9d commit 2421df6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/imports-with-importlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@
b = importlib.import_module('pickle')
c = importlib.__import__('sys')
d = importlib.__import__('subprocess')

# Do not crash when target is an expression
e = importlib.import_module(MODULE_MAP[key])
f = importlib.__import__(MODULE_MAP[key])

0 comments on commit 2421df6

Please sign in to comment.