summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2017-03-01 06:35:00 (GMT)
committerGitHub <noreply@github.com>2017-03-01 06:35:00 (GMT)
commitbee93f2d0465cc3415798e4770c83cbb106473ec (patch)
tree63985c381303e2f8355aeed2b3f4b9f05395c675
parent680e20beee8bbce9f857b8e7795009191f98b0ba (diff)
downloadcpython-bee93f2d0465cc3415798e4770c83cbb106473ec.zip
cpython-bee93f2d0465cc3415798e4770c83cbb106473ec.tar.gz
cpython-bee93f2d0465cc3415798e4770c83cbb106473ec.tar.bz2
weaken test_from_import_missing_attr_has_name_and_path regular expression (#371)
Windows uses backslashes for separators.
-rw-r--r--Lib/test/test_import/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_import/__init__.py b/Lib/test/test_import/__init__.py
index ace1a46..bd92b47 100644
--- a/Lib/test/test_import/__init__.py
+++ b/Lib/test/test_import/__init__.py
@@ -85,7 +85,7 @@ class ImportTests(unittest.TestCase):
from os import i_dont_exist
self.assertEqual(cm.exception.name, 'os')
self.assertEqual(cm.exception.path, os.__file__)
- self.assertRegex(str(cm.exception), "cannot import name 'i_dont_exist' from 'os' \(.*/Lib/os.py\)")
+ self.assertRegex(str(cm.exception), "cannot import name 'i_dont_exist' from 'os' \(.*os.py\)")
def test_from_import_missing_attr_has_name_and_so_path(self):
import _opcode