-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fallback to basic Source.pieces when there is no Source.tree. Fixes #21
- Loading branch information
1 parent
3026317
commit 457e53b
Showing
7 changed files
with
40 additions
and
10 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
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 |
---|---|---|
@@ -1,5 +1,9 @@ | ||
import os | ||
|
||
import pyximport | ||
from typeguard.importhook import install_import_hook | ||
|
||
pyximport.install() | ||
|
||
if not os.environ.get("STACK_DATA_SLOW_TESTS"): | ||
install_import_hook(["stack_data"]) |
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,11 @@ | ||
Traceback (most recent call last): | ||
File "cython_example.pyx", line 2, in tests.samples.cython_example.foo | ||
1 | def foo(): | ||
--> 2 | bar() | ||
3 | | ||
File "cython_example.pyx", line 5, in tests.samples.cython_example.bar | ||
2 | bar() | ||
3 | | ||
4 | cdef bar(): | ||
--> 5 | raise ValueError("bar!") | ||
ValueError: bar! |
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 foo(): | ||
bar() | ||
|
||
cdef bar(): | ||
raise ValueError("bar!") |
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