We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64d649b commit bcced4bCopy full SHA for bcced4b
tests/test_modutils.py
@@ -269,9 +269,10 @@ def test_std_lib(self) -> None:
269
)
270
271
def test_std_lib_found_before_same_named_package_on_path(self) -> None:
272
- realpath = os.path.realpath(resources.RESOURCE_PATH)
+ realpath = str(resources.RESOURCE_PATH)
273
+ realpath_slashes = realpath.replace('\\', '\\\\')
274
if WIN32:
- raise AssertionError(realpath)
275
+ raise AssertionError(realpath + realpath_slashes)
276
sys.path.insert(0, realpath)
277
self.addCleanup(sys.path.pop, 0)
278
0 commit comments