- Notifications
You must be signed in to change notification settings - Fork 252
Open
Description
python 3.7
python-taint==0.42
% .tox/pyt/bin/pyt tests/a_mock.py Traceback (most recent call last): File ".tox/pyt/bin/pyt", line 10, in <module> sys.exit(main()) File "/home/user/.tox/pyt/lib/python3.7/site-packages/pyt/__main__.py", line 106, in main allow_local_directory_imports=args.allow_local_imports File "/home/user/.tox/pyt/lib/python3.7/site-packages/pyt/cfg/make_cfg.py", line 42, in make_cfg allow_local_directory_imports File "/home/user/.tox/pyt/lib/python3.7/site-packages/pyt/cfg/expr_visitor.py", line 69, in __init__ self.init_cfg(node) File "/home/user/.tox/pyt/lib/python3.7/site-packages/pyt/cfg/expr_visitor.py", line 76, in init_cfg module_statements = self.visit(node) File "/usr/lib64/python3.7/ast.py", line 262, in visit return visitor(node) File "/home/user/.tox/pyt/lib/python3.7/site-packages/pyt/cfg/stmt_visitor.py", line 67, in visit_Module return self.stmt_star_handler(node.body) File "/home/user/.tox/pyt/lib/python3.7/site-packages/pyt/cfg/stmt_visitor.py", line 88, in stmt_star_handler node = self.visit(stmt) File "/usr/lib64/python3.7/ast.py", line 262, in visit return visitor(node) File "/home/user/.tox/pyt/lib/python3.7/site-packages/pyt/cfg/stmt_visitor.py", line 234, in visit_If orelse_last_nodes = self.handle_or_else(node.orelse, test) File "/home/user/.tox/pyt/lib/python3.7/site-packages/pyt/cfg/stmt_visitor.py", line 214, in handle_or_else test.connect(else_connect_statements.first_statement) AttributeError: 'IgnoredNode' object has no attribute 'first_statement'a_mock.py is
from functools import wraps as original_wraps if False: wraps = original_wraps else: def wraps(): return 1KevinHock and AnivRay
Metadata
Metadata
Assignees
Labels
No labels