diff --git a/IPython/testing/iptest.py b/IPython/testing/iptest.py index b547a32f1..12149c850 100644 --- a/IPython/testing/iptest.py +++ b/IPython/testing/iptest.py @@ -385,7 +385,7 @@ def run_iptestall(): # to clean up any junk files left over by accident. This also makes it # robust against being run in non-writeable directories by mistake, as the # temp dir will always be user-writeable. - curdir = os.getcwd() + curdir = os.getcwdu() testdir = tempfile.gettempdir() os.chdir(testdir)