We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f94f42a commit 2f4c93aCopy full SHA for 2f4c93a
tests/test_paths_stdlib.py
@@ -19,7 +19,6 @@
19
import sys
20
import unittest
21
from test import support # type: ignore
22
-from test.support import TESTFN # type: ignore
23
from typing import Set
24
from unittest import mock
25
@@ -37,6 +36,13 @@
37
36
except ImportError:
38
grp = pwd = None # type: ignore
39
+if sys.version_info[:2] >= (3, 10):
40
+ # stdlib
41
+ from test.support.os_helper import TESTFN
42
+else:
43
44
+ from test.support import TESTFN
45
+
46
# Make sure any symbolic links in the base test path are resolved.
47
BASE = os.path.realpath(TESTFN)
48
join = lambda *x: os.path.join(BASE, *x)
0 commit comments