Commit 4b953bac authored by Nick Coghlan's avatar Nick Coghlan

Allow for backslashes in file paths passed to the regex engine

parent 4976e328
......@@ -317,6 +317,8 @@ argv0 = sys.argv[0]
self.assertEqual(result["__package__"], expected_package)
def _check_import_error(self, script_name, msg):
# Double backslashes to handle path separators on Windows
msg = msg.replace("\\", "\\\\")
self.assertRaisesRegexp(ImportError, msg, run_path, script_name)
def test_basic_script(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment