Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dbd15bd

Browse files
committed
debug
1 parent f6cc468 commit dbd15bd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/test_magic.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -847,6 +847,8 @@ def test_prun_quotes():
847847

848848
def test_extension():
849849
# Debugging information for failures of this test
850+
daft_path = os.path.join(os.path.dirname(__file__), "fake_ext_dir")
851+
assert daft_path not in sys.path
850852
print('sys.path:')
851853
for p in sys.path:
852854
print(" ", p)
@@ -857,7 +859,6 @@ def test_extension():
857859

858860
with pytest.raises(ModuleNotFoundError):
859861
_ip.run_line_magic("load_ext", "daft_extension")
860-
daft_path = os.path.join(os.path.dirname(__file__), "fake_ext_dir")
861862
sys.path.insert(0, daft_path)
862863
import daft_extension
863864
try:

0 commit comments

Comments
 (0)