-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trace generator: ignore objects imported from other modules
- Loading branch information
1 parent
64d3a22
commit 58378be
Showing
5 changed files
with
49 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from wypp import * |
24 changes: 24 additions & 0 deletions
24
python/deps/pytrace-generator/test/test-cases/importWypp.py.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[ | ||
{ | ||
"line": 1, | ||
"filePath": "importWypp.py", | ||
"stack": [ | ||
{ | ||
"frameName": "<module>", | ||
"locals": [] | ||
} | ||
], | ||
"heap": {} | ||
}, | ||
{ | ||
"line": 2, | ||
"filePath": "importWypp.py", | ||
"stack": [ | ||
{ | ||
"frameName": "<module>", | ||
"locals": [] | ||
} | ||
], | ||
"heap": {} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# This test ensures that module2 can be imported and used | ||
import module2 | ||
b = module2.myfun(1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
def myfun(i): | ||
i += 1 | ||
i += 1 | ||
i += 1 | ||
return i |