Skip to content

Commit 390e929

Browse files
fix windows
1 parent 912fed3 commit 390e929

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Lib/test/test_embed.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,10 @@ def setUp(self):
7878
# "Py_Initialize: Unable to get the locale encoding
7979
# LookupError: no codec search functions registered: can't find encoding"
8080
self.oldcwd = os.getcwd()
81-
os.chdir(builddir)
81+
if MS_WINDOWS:
82+
os.chdir(support.REPO_ROOT)
83+
else:
84+
os.chdir(builddir)
8285

8386
def tearDown(self):
8487
os.chdir(self.oldcwd)

0 commit comments

Comments
 (0)