Skip to content

Commit d1ad003

Browse files
committed
tests: try importing torch before qt
1 parent 4d51a06 commit d1ad003

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/conftest.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
import tempfile
44
import time
55

6+
# https://github.com/pytorch/pytorch/issues/166628
7+
# Import pytorch before PyQt6
8+
try:
9+
import torch # noqa: F401
10+
except ImportError:
11+
pass
12+
613
from dcnum.os_env_st import request_single_threaded
714

815

0 commit comments

Comments
 (0)