File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1
1
import os
2
+ import sys
3
+ from pathlib import Path
2
4
3
5
import pytest
4
6
5
7
8
+ repo_root = Path (__file__ ).parent
9
+ sys .path .insert (0 , str (repo_root ))
10
+
11
+
6
12
def pytest_sessionstart (session ):
7
13
os .environ ["PYTENSOR_FLAGS" ] = "," .join (
8
14
[
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ versionfile_build = "pytensor/_version.py"
117
117
tag_prefix = " rel-"
118
118
119
119
[tool .pytest ]
120
- addopts = " --durations=50 --doctest-modules pytensor --ignore=pytensor/misc/check_duplicate_key.py --ignore=pytensor/link"
120
+ addopts = " --durations=50 --doctest-modules pytensor --import-mode=importlib -- ignore=pytensor/misc/check_duplicate_key.py --ignore=pytensor/link"
121
121
testpaths = " tests/"
122
122
123
123
[tool .ruff ]
You can’t perform that action at this time.
0 commit comments