##// END OF EJS Templates
Add simple test for non-ascii characters in system_raw call.
Jörgen Stenarson -
Show More
@@ -2085,6 +2085,7 b' class InteractiveShell(SingletonConfigurable, Magic):'
2085 cmd = py3compat.unicode_to_str(cmd)
2085 cmd = py3compat.unicode_to_str(cmd)
2086 ec = os.system(cmd)
2086 ec = os.system(cmd)
2087 else:
2087 else:
2088 cmd = py3compat.unicode_to_str(cmd)
2088 ec = os.system(cmd)
2089 ec = os.system(cmd)
2089
2090
2090 # 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 "u'åäö'" '''
230 _ip.shell.system_raw(cmd)
General Comments 0
You need to be logged in to leave comments. Login now