-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update python-pytest-verbose-parametrize to version 1.7.0 / rev 7 via…
… SR 1041846 https://build.opensuse.org/request/show/1041846 by user dgarcia + dimstar_suse
- Loading branch information
1 parent
2967591
commit 3491d44
Showing
5 changed files
with
47 additions
and
2 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
packages/p/python-pytest-verbose-parametrize/python-pytest-verbose-parametrize-no-six.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
Index: pytest-verbose-parametrize-1.7.0/pytest_verbose_parametrize.py | ||
=================================================================== | ||
--- pytest-verbose-parametrize-1.7.0.orig/pytest_verbose_parametrize.py | ||
+++ pytest-verbose-parametrize-1.7.0/pytest_verbose_parametrize.py | ||
@@ -4,14 +4,13 @@ except ImportError: | ||
from collections import Iterable | ||
except ModuleNotFoundError: | ||
from collections import Iterable | ||
-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 | ||
@@ -34,7 +33,7 @@ def pytest_generate_tests(metafunc): | ||
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: |
8 changes: 8 additions & 0 deletions
8
packages/p/python-pytest-verbose-parametrize/python-pytest-verbose-parametrize.changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
------------------------------------------------------------------- | ||
Thu Dec 8 13:18:34 UTC 2022 - [email protected] | ||
|
||
- do not require six | ||
- added patches | ||
fix https://github.com/man-group/pytest-plugins/issues/209 | ||
+ python-pytest-verbose-parametrize-no-six.patch | ||
|
||
------------------------------------------------------------------- | ||
Thu Apr 21 20:58:14 UTC 2022 - Ben Greiner <[email protected]> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters