FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Do the clr import later to not interfere with other test imports · Nik527/pythonnet@e3f8c20 · GitHub

Repository navigation

Commit e3f8c20

Browse files
committed
Do the clr import later to not interfere with other test imports
1 parent 3ae7026 commit e3f8c20

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/tests/conftest.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import sysconfig
1111

1212
import pytest
13-
import clr
1413

1514
# Add path for `Python.Test`
1615
cwd = os.path.dirname(__file__)
@@ -24,6 +23,8 @@
2423

2524
sys.path.append(fixtures_path)
2625

26+
import clr
27+
2728
# Add References for tests
2829
clr.AddReference("Python.Test")
2930
clr.AddReference("System.Collections")

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL