aboutsummaryrefslogtreecommitdiffstats
path: root/pkg_resources/tests/test_working_set.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2018-06-03 09:52:49 -0400
committerJason R. Coombs <jaraco@jaraco.com>2018-06-03 09:57:48 -0400
commit08d20c8d43dcda7a79efca0434185102fe6dc9bc (patch)
tree9ac49e09e6d34881577d8b61b341876f86aed608 /pkg_resources/tests/test_working_set.py
parentcca86c7f1d4040834c3265ccecdd9e21b4036df5 (diff)
downloadexternal_python_setuptools-08d20c8d43dcda7a79efca0434185102fe6dc9bc.tar.gz
external_python_setuptools-08d20c8d43dcda7a79efca0434185102fe6dc9bc.tar.bz2
external_python_setuptools-08d20c8d43dcda7a79efca0434185102fe6dc9bc.zip
Use raw strings for regular expressions
Diffstat (limited to 'pkg_resources/tests/test_working_set.py')
-rw-r--r--pkg_resources/tests/test_working_set.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg_resources/tests/test_working_set.py b/pkg_resources/tests/test_working_set.py
index 217edd8b..b3ca4ea8 100644
--- a/pkg_resources/tests/test_working_set.py
+++ b/pkg_resources/tests/test_working_set.py
@@ -39,7 +39,7 @@ def parse_distributions(s):
requires=['foo>=3.0', 'baz; extra=="feature"']
'''
s = s.strip()
- for spec in re.split('\n(?=[^\s])', s):
+ for spec in re.split(r'\n(?=[^\s])', s):
if not spec:
continue
fields = spec.split('\n', 1)
@@ -89,7 +89,7 @@ def parametrize_test_working_set_resolve(*test_list):
):
idlist.append(id_)
expected = strip_comments(expected.strip())
- if re.match('\w+$', expected):
+ if re.match(r'\w+$', expected):
expected = getattr(pkg_resources, expected)
assert issubclass(expected, Exception)
else: