Skip to content

Commit d097490

Browse files
committed
try join to form windows path
1 parent 9b06a6a commit d097490

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/cc/current_py_cc_headers/abi3_headers_linkage_test.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ class CheckLinkageTest(unittest.TestCase):
1212
@unittest.skipUnless(sys.platform.startswith("win"), "requires windows")
1313
def test_linkage_windows(self):
1414
rf = runfiles.Create()
15-
dll_path = rf.Rlocation("_main/tests/cc/current_py_cc_headers/bin_abi3.dll")
15+
16+
resource_path = os.path.join("_main", "tests", "cc", "current_py_cc_headers", "bin_abi3.dll")
17+
18+
dll_path = rf.Rlocation(resource_path)
1619
if not os.path.exists(dll_path):
1720
self.fail(f"dll at {dll_path} does not exist")
1821

0 commit comments

Comments
 (0)