Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-parameterized for
openSUSE:Factory checked in at 2022-04-09 01:43:55
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-parameterized (Old)
and /work/SRC/openSUSE:Factory/.python-parameterized.new.1900 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-parameterized"
Sat Apr 9 01:43:55 2022 rev:10 rq:967529 version:0.8.1
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-parameterized/python-parameterized.changes
2020-10-29 09:45:06.111987008 +0100
+++
/work/SRC/openSUSE:Factory/.python-parameterized.new.1900/python-parameterized.changes
2022-04-09 01:44:06.770690037 +0200
@@ -1,0 +2,24 @@
+Thu Apr 7 12:34:14 UTC 2022 - [email protected]
+
+- version update to 0.8.1
+ 0.8.1 (2021-01-09)
+ * Add README and LICENSE to pypi sdist package
+ (https://github.com/wolever/parameterized/pull/114; thanks @chohner)
+ 0.8.0 (2021-01-04)
+ * Handle camelCase test names. This is an ever-so-slightly backwards
+ incompatible change, as the method for determining which methods are
+ test methods has changed from ``method_name.startswith("test_")`` to
+ ``method_name.startswith("test")``. The latter is the behavior of
+ the ``unittest`` module.
+ (thanks @bobwalker99;
https://github.com/wolever/parameterized/pull/106)
+ * Fix arguments to skip_on_empty helper (thanks @bhavyakjain;
+ https://github.com/wolever/parameterized/pull/104)
+ 0.7.5 (2021-01-04)
+ * Fix crash on Python 2.7 with unicode docstrings
+ (https://github.com/wolever/parameterized/issues/109)
+ * Replace inspect.stack() with faster inspect.currentframe()
+ (https://github.com/wolever/parameterized/issues/107)
+ * Add a __version__ string to the package
+ (https://github.com/wolever/parameterized/issues/103)
+
+-------------------------------------------------------------------
Old:
----
parameterized-0.7.4.tar.gz
New:
----
parameterized-0.8.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-parameterized.spec ++++++
--- /var/tmp/diff_new_pack.fVFlbb/_old 2022-04-09 01:44:07.650679619 +0200
+++ /var/tmp/diff_new_pack.fVFlbb/_new 2022-04-09 01:44:07.658679524 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-parameterized
#
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-parameterized
-Version: 0.7.4
+Version: 0.8.1
Release: 0
Summary: Parameterized testing
License: BSD-2-Clause
@@ -30,7 +30,6 @@
# PATCH-FIX-UPSTREAM remove_nose.patch [email protected]
# Remove nose dependency (patch is not very good, DO NOT SEND UPSTREAM!)
Patch1: remove_nose.patch
-BuildRequires: %{python_module mock}
BuildRequires: %{python_module nose2}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
@@ -55,10 +54,13 @@
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
+# https://github.com/wolever/parameterized/issues/122
+sed -i 's:import mock:from unittest import mock:' parameterized/test.py
export LANG=en_US.UTF8
%{python_expand nose2-%$python_version -v -B --pretty-assert}
%python_exec -m unittest parameterized.test
-%pytest parameterized/test.py
+# https://github.com/wolever/parameterized/issues/122
+%pytest parameterized/test.py -k 'not (test_with_docstring_1_v_l_ or
test_with_docstring_0_value1)'
%files %{python_files}
%doc CHANGELOG.txt README.rst
++++++ parameterized-0.7.4.tar.gz -> parameterized-0.8.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/parameterized-0.7.4/CHANGELOG.txt
new/parameterized-0.8.1/CHANGELOG.txt
--- old/parameterized-0.7.4/CHANGELOG.txt 2020-04-14 19:58:58.000000000
+0200
+++ new/parameterized-0.8.1/CHANGELOG.txt 2021-01-09 21:33:18.000000000
+0100
@@ -1,3 +1,25 @@
+0.8.1 (2021-01-09)
+ * Add README and LICENSE to pypi sdist package
+ (https://github.com/wolever/parameterized/pull/114; thanks @chohner)
+
+0.8.0 (2021-01-04)
+ * Handle camelCase test names. This is an ever-so-slightly backwards
+ incompatible change, as the method for determining which methods are
+ test methods has changed from ``method_name.startswith("test_")`` to
+ ``method_name.startswith("test")``. The latter is the behavior of
+ the ``unittest`` module.
+ (thanks @bobwalker99; https://github.com/wolever/parameterized/pull/106)
+ * Fix arguments to skip_on_empty helper (thanks @bhavyakjain;
+ https://github.com/wolever/parameterized/pull/104)
+
+0.7.5 (2021-01-04)
+ * Fix crash on Python 2.7 with unicode docstrings
+ (https://github.com/wolever/parameterized/issues/109)
+ * Replace inspect.stack() with faster inspect.currentframe()
+ (https://github.com/wolever/parameterized/issues/107)
+ * Add a __version__ string to the package
+ (https://github.com/wolever/parameterized/issues/103)
+
0.7.4 (2020-04-14)
* Add ``class_name_func`` option to ``@parameterized_class``
* Fix arguments being passed to skip_on_empty_helper (thanks @gaf3;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/parameterized-0.7.4/PKG-INFO
new/parameterized-0.8.1/PKG-INFO
--- old/parameterized-0.7.4/PKG-INFO 2020-04-14 19:59:42.000000000 +0200
+++ new/parameterized-0.8.1/PKG-INFO 2021-01-09 21:34:16.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: parameterized
-Version: 0.7.4
+Version: 0.8.1
Summary: Parameterized testing with any Python test framework
Home-page: https://github.com/wolever/parameterized
Author: David Wolever
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/parameterized-0.7.4/parameterized/__init__.py
new/parameterized-0.8.1/parameterized/__init__.py
--- old/parameterized-0.7.4/parameterized/__init__.py 2019-11-19
21:17:12.000000000 +0100
+++ new/parameterized-0.8.1/parameterized/__init__.py 2021-01-09
21:32:11.000000000 +0100
@@ -1 +1,3 @@
from .parameterized import parameterized, param, parameterized_class
+
+__version__ = "0.8.1"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/parameterized-0.7.4/parameterized/parameterized.py
new/parameterized-0.8.1/parameterized/parameterized.py
--- old/parameterized-0.7.4/parameterized/parameterized.py 2020-04-14
19:33:58.000000000 +0200
+++ new/parameterized-0.8.1/parameterized/parameterized.py 2021-01-09
21:31:41.000000000 +0100
@@ -44,6 +44,13 @@
def make_method(func, instance, type):
return MethodType(func, instance, type)
+def to_text(x):
+ if isinstance(x, text_type):
+ return x
+ try:
+ return text_type(x, "utf-8")
+ except UnicodeDecodeError:
+ return text_type(x, "latin1")
CompatArgSpec = namedtuple("CompatArgSpec", "args varargs keywords defaults")
@@ -233,12 +240,7 @@
u"12...89"
"""
- x_repr = repr(x)
- if isinstance(x_repr, bytes_type):
- try:
- x_repr = text_type(x_repr, "utf-8")
- except UnicodeDecodeError:
- x_repr = text_type(x_repr, "latin1")
+ x_repr = to_text(repr(x))
if len(x_repr) > n:
x_repr = x_repr[:n//2] + "..." + x_repr[len(x_repr) - n//2:]
return x_repr
@@ -262,7 +264,10 @@
suffix = "."
first = first[:-1]
args = "%s[with %s]" %(len(first) and " " or "", ", ".join(descs))
- return "".join([first.rstrip(), args, suffix, nl, rest])
+ return "".join(
+ to_text(x)
+ for x in [first.rstrip(), args, suffix, nl, rest]
+ )
def default_name_func(func, num, p):
@@ -490,9 +495,7 @@
name_func = name_func or default_name_func
def parameterized_expand_wrapper(f, instance=None):
- stack = inspect.stack()
- frame = stack[1]
- frame_locals = frame[0].f_locals
+ frame_locals = inspect.currentframe().f_back.f_locals
parameters = cls.input_as_callable(input)()
@@ -503,7 +506,7 @@
"`parameterized.expand([], skip_on_empty=True)` to
skip "
"this test when the input is empty)"
)
- return wraps(f)(lambda: skip_on_empty_helper())
+ return wraps(f)(skip_on_empty_helper)
digits = len(str(len(parameters) - 1))
for num, p in enumerate(parameters):
@@ -609,7 +612,7 @@
# Address this by iterating over the base class and remove all test
# methods.
for method_name in list(base_class.__dict__):
- if method_name.startswith("test_"):
+ if method_name.startswith("test"):
delattr(base_class, method_name)
return base_class
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/parameterized-0.7.4/parameterized/test.py
new/parameterized-0.8.1/parameterized/test.py
--- old/parameterized-0.7.4/parameterized/test.py 2020-04-14
19:26:48.000000000 +0200
+++ new/parameterized-0.8.1/parameterized/test.py 2021-01-09
21:31:41.000000000 +0100
@@ -453,8 +453,10 @@
expect([
"TestParameterizedClass_0_foo:test_method_a('foo', 1, 2)",
"TestParameterizedClass_0_foo:test_method_b('foo', 1, 2)",
+ "TestParameterizedClass_0_foo:testCamelCaseMethodC('foo', 1, 2)",
"TestParameterizedClass_1:test_method_a(0, 1, 2)",
"TestParameterizedClass_1:test_method_b(0, 1, 2)",
+ "TestParameterizedClass_1:testCamelCaseMethodC(0, 1, 2)",
])
def _assertions(self, test_name):
@@ -474,6 +476,9 @@
def test_method_b(self):
self._assertions("test_method_b")
+ def testCamelCaseMethodC(self):
+ self._assertions("testCamelCaseMethodC")
+
@parameterized_class(("a", ), [
(1, ),
@@ -537,3 +542,13 @@
self.foo,
self.bar,
))
+
+
+class TestUnicodeDocstring(object):
+ @parameterized.expand([
+ 'value1',
+ 'v??l??????'
+ ])
+ def test_with_docstring(self, param):
+ """ ?????? ??????-????????????, ???????????????????? ????-ascii
?????????????? """
+ pass
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/parameterized-0.7.4/parameterized.egg-info/PKG-INFO
new/parameterized-0.8.1/parameterized.egg-info/PKG-INFO
--- old/parameterized-0.7.4/parameterized.egg-info/PKG-INFO 2020-04-14
19:59:42.000000000 +0200
+++ new/parameterized-0.8.1/parameterized.egg-info/PKG-INFO 2021-01-09
21:34:16.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: parameterized
-Version: 0.7.4
+Version: 0.8.1
Summary: Parameterized testing with any Python test framework
Home-page: https://github.com/wolever/parameterized
Author: David Wolever
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/parameterized-0.7.4/parameterized.egg-info/pbr.json
new/parameterized-0.8.1/parameterized.egg-info/pbr.json
--- old/parameterized-0.7.4/parameterized.egg-info/pbr.json 2020-04-14
19:59:42.000000000 +0200
+++ new/parameterized-0.8.1/parameterized.egg-info/pbr.json 2021-01-09
21:34:16.000000000 +0100
@@ -1 +1 @@
-{"is_release": false, "git_version": "ff5a1da"}
\ No newline at end of file
+{"is_release": false, "git_version": "80cbc49"}
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/parameterized-0.7.4/setup.cfg
new/parameterized-0.8.1/setup.cfg
--- old/parameterized-0.7.4/setup.cfg 2020-04-14 19:59:42.000000000 +0200
+++ new/parameterized-0.8.1/setup.cfg 2021-01-09 21:34:16.000000000 +0100
@@ -1,6 +1,10 @@
[wheel]
universal = 1
+[metadata]
+description-file = README.rst
+license_file = LICENSE.txt
+
[egg_info]
tag_build =
tag_date = 0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/parameterized-0.7.4/setup.py
new/parameterized-0.8.1/setup.py
--- old/parameterized-0.7.4/setup.py 2020-04-14 19:59:14.000000000 +0200
+++ new/parameterized-0.8.1/setup.py 2021-01-09 21:31:41.000000000 +0100
@@ -6,6 +6,8 @@
from setuptools import setup, find_packages
+import parameterized
+
os.chdir(os.path.dirname(sys.argv[0]) or ".")
try:
@@ -15,7 +17,7 @@
setup(
name="parameterized",
- version="0.7.4",
+ version=parameterized.__version__,
url="https://github.com/wolever/parameterized",
license="FreeBSD",
author="David Wolever",