Skip to content
Prev Previous commit
Next Next commit
fix windows
  • Loading branch information
kumaraditya303 authored Jun 8, 2022
commit 390e929f35d4798d5d1951cd10afcecaf952936c
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)
Comment thread
kumaraditya303 marked this conversation as resolved.
Outdated

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