2024-10-22 06:11:29 +00:00
|
|
|
Index: pytest-verbose-parametrize-1.8.0/pytest_verbose_parametrize.py
|
2022-12-09 10:57:47 +00:00
|
|
|
===================================================================
|
2024-10-22 06:11:29 +00:00
|
|
|
--- pytest-verbose-parametrize-1.8.0.orig/pytest_verbose_parametrize.py
|
|
|
|
|
+++ pytest-verbose-parametrize-1.8.0/pytest_verbose_parametrize.py
|
|
|
|
|
@@ -1,12 +1,11 @@
|
|
|
|
|
from collections.abc import Iterable
|
2022-12-09 10:57:47 +00:00
|
|
|
-from six import string_types, text_type
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def _strize_arg(arg):
|
|
|
|
|
try:
|
|
|
|
|
s = arg.__name__
|
|
|
|
|
except AttributeError:
|
|
|
|
|
- s = text_type(arg)
|
|
|
|
|
+ s = str(arg)
|
|
|
|
|
if len(s) > 32:
|
|
|
|
|
s = s[:29] + '...'
|
|
|
|
|
return s
|
2024-10-22 06:11:29 +00:00
|
|
|
@@ -29,7 +28,7 @@ def pytest_generate_tests(metafunc):
|
2022-12-09 10:57:47 +00:00
|
|
|
if 'ids' not in markers.kwargs:
|
|
|
|
|
list_names = []
|
|
|
|
|
for i, argvalue in enumerate(markers.args[1]):
|
|
|
|
|
- if (not isinstance(argvalue, Iterable)) or isinstance(argvalue, string_types):
|
|
|
|
|
+ if (not isinstance(argvalue, Iterable)) or isinstance(argvalue, str):
|
|
|
|
|
argvalue = (argvalue,)
|
|
|
|
|
name = '-'.join(_strize_arg(arg) for arg in argvalue)
|
|
|
|
|
if len(name) > 64:
|
2024-10-22 06:11:29 +00:00
|
|
|
Index: pytest-verbose-parametrize-1.8.0/setup.py
|
|
|
|
|
===================================================================
|
|
|
|
|
--- pytest-verbose-parametrize-1.8.0.orig/setup.py
|
|
|
|
|
+++ pytest-verbose-parametrize-1.8.0/setup.py
|
|
|
|
|
@@ -18,7 +18,6 @@ classifiers = [
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
install_requires = ['pytest',
|
|
|
|
|
- 'six',
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
tests_require = ['mock; python_version<"3.3"',
|