mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
Just like the one added for `py/insecure-protocol` in fb425b7, but
instead added in the import-resolution tests, such that we don't have to
remember it's in a completely different directory.
15 lines
246 B
Python
15 lines
246 B
Python
from trace import *
|
|
enter(__file__)
|
|
|
|
class SOURCE(object):
|
|
@staticmethod
|
|
def block_flow(): pass
|
|
|
|
check("SOURCE", SOURCE, SOURCE, globals()) #$ prints=SOURCE
|
|
|
|
SOURCE.block_flow()
|
|
|
|
check("SOURCE", SOURCE, SOURCE, globals())
|
|
|
|
exit(__file__)
|