mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Merge pull request #1834 from markshannon/python-verify-unreachable-code
Python: Add test to verify fix.
This commit is contained in:
12
python/ql/test/query-tests/Statements/unreachable/imports.py
Normal file
12
python/ql/test/query-tests/Statements/unreachable/imports.py
Normal file
@@ -0,0 +1,12 @@
|
||||
|
||||
try:
|
||||
import fcntl
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
|
||||
try:
|
||||
import __builtin__
|
||||
except ImportError:
|
||||
import builtins as __builtin__
|
||||
|
||||
Reference in New Issue
Block a user