Skip to content

Commit

Permalink
fix windows
Browse files Browse the repository at this point in the history
  • Loading branch information
kumaraditya303 authored Jun 8, 2022
1 parent 912fed3 commit 390e929
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Lib/test/test_embed.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ def setUp(self):
# "Py_Initialize: Unable to get the locale encoding
# LookupError: no codec search functions registered: can't find encoding"
self.oldcwd = os.getcwd()
os.chdir(builddir)
if MS_WINDOWS:
os.chdir(support.REPO_ROOT)
else:
os.chdir(builddir)

def tearDown(self):
os.chdir(self.oldcwd)
Expand Down

0 comments on commit 390e929

Please sign in to comment.