diff --git a/pytest-profiling/pytest_profiling.py b/pytest-profiling/pytest_profiling.py index 746bfc15..9917b6f5 100644 --- a/pytest-profiling/pytest_profiling.py +++ b/pytest-profiling/pytest_profiling.py @@ -17,7 +17,7 @@ def clean_filename(s): - forbidden_chars = set('/?<>\:*|"') + forbidden_chars = set(r'/?<>\:*|"') return six.text_type("".join(c if c not in forbidden_chars and ord(c) < 127 else '_' for c in s)) diff --git a/pytest-verbose-parametrize/pytest_verbose_parametrize.py b/pytest-verbose-parametrize/pytest_verbose_parametrize.py index eeecb4a6..16c5cf30 100644 --- a/pytest-verbose-parametrize/pytest_verbose_parametrize.py +++ b/pytest-verbose-parametrize/pytest_verbose_parametrize.py @@ -1,4 +1,7 @@ -from collections import Iterable +try: + from collections.abc import Iterable +except ImportError: + from collections import Iterable from six import string_types, text_type