Show More
@@ -2082,8 +2082,10 b' class InteractiveShell(SingletonConfigurable, Magic):' | |||||
2082 | with AvoidUNCPath() as path: |
|
2082 | with AvoidUNCPath() as path: | |
2083 | if path is not None: |
|
2083 | if path is not None: | |
2084 | cmd = '"pushd %s &&"%s' % (path, cmd) |
|
2084 | cmd = '"pushd %s &&"%s' % (path, cmd) | |
|
2085 | cmd = py3compat.unicode_to_str(cmd) | |||
2085 | ec = os.system(cmd) |
|
2086 | ec = os.system(cmd) | |
2086 | else: |
|
2087 | else: | |
|
2088 | cmd = py3compat.unicode_to_str(cmd) | |||
2087 | ec = os.system(cmd) |
|
2089 | ec = os.system(cmd) | |
2088 |
|
2090 | |||
2089 | # We explicitly do NOT return the subprocess status code, because |
|
2091 | # We explicitly do NOT return the subprocess status code, because |
@@ -220,3 +220,11 b' class TestSafeExecfileNonAsciiPath(unittest.TestCase):' | |||||
220 | """Test safe_execfile with non-ascii path |
|
220 | """Test safe_execfile with non-ascii path | |
221 | """ |
|
221 | """ | |
222 | _ip.shell.safe_execfile(self.fname, {}, raise_exceptions=True) |
|
222 | _ip.shell.safe_execfile(self.fname, {}, raise_exceptions=True) | |
|
223 | ||||
|
224 | ||||
|
225 | class TestSystemRaw(unittest.TestCase): | |||
|
226 | def test_1(self): | |||
|
227 | """Test system_raw with non-ascii cmd | |||
|
228 | """ | |||
|
229 | cmd = ur'''python -c "'åäö'" ''' | |||
|
230 | _ip.shell.system_raw(cmd) |
General Comments 0
You need to be logged in to leave comments.
Login now