Hello community,
here is the log from the commit of package python-pytest-subtests for
openSUSE:Factory checked in at 2020-06-10 00:49:10
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-subtests (Old)
and /work/SRC/openSUSE:Factory/.python-pytest-subtests.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pytest-subtests"
Wed Jun 10 00:49:10 2020 rev:3 rq:812805 version:0.3.1
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-pytest-subtests/python-pytest-subtests.changes
2020-02-20 14:57:53.870584444 +0100
+++
/work/SRC/openSUSE:Factory/.python-pytest-subtests.new.3606/python-pytest-subtests.changes
2020-06-10 00:49:13.927073062 +0200
@@ -1,0 +2,6 @@
+Tue Jun 9 07:43:33 UTC 2020 - Tomáš Chvátal <[email protected]>
+
+- Update to 0.3.1:
+ * Fix pytest 5.4 support.
+
+-------------------------------------------------------------------
Old:
----
pytest-subtests-0.3.0.tar.gz
New:
----
pytest-subtests-0.3.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pytest-subtests.spec ++++++
--- /var/tmp/diff_new_pack.kMNsZ3/_old 2020-06-10 00:49:14.535074652 +0200
+++ /var/tmp/diff_new_pack.kMNsZ3/_new 2020-06-10 00:49:14.539074662 +0200
@@ -19,7 +19,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-pytest-subtests
-Version: 0.3.0
+Version: 0.3.1
Release: 0
Summary: Python unittest subTest() support and subtests fixture
License: MIT
++++++ pytest-subtests-0.3.0.tar.gz -> pytest-subtests-0.3.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-subtests-0.3.0/.github/workflows/main.yml
new/pytest-subtests-0.3.1/.github/workflows/main.yml
--- old/pytest-subtests-0.3.0/.github/workflows/main.yml 2020-01-23
01:01:31.000000000 +0100
+++ new/pytest-subtests-0.3.1/.github/workflows/main.yml 2020-05-20
22:42:14.000000000 +0200
@@ -15,11 +15,13 @@
"windows-py36",
"windows-py37",
"windows-py38",
+ "windows-py38-pytest53",
"ubuntu-py35",
"ubuntu-py36",
"ubuntu-py37",
"ubuntu-py38",
+ "ubuntu-py38-pytest53",
"linting",
]
@@ -41,6 +43,10 @@
python: "3.8"
os: windows-latest
tox_env: "py38"
+ - name: "windows-py38-pytest53"
+ python: "3.8"
+ os: windows-latest
+ tox_env: "py38-pytest53"
- name: "ubuntu-py35"
python: "3.5"
@@ -58,6 +64,10 @@
python: "3.8"
os: ubuntu-latest
tox_env: "py38"
+ - name: "ubuntu-py38-pytest53"
+ python: "3.8"
+ os: ubuntu-latest
+ tox_env: "py38-pytest53"
- name: "linting"
python: "3.7"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-subtests-0.3.0/CHANGELOG.rst
new/pytest-subtests-0.3.1/CHANGELOG.rst
--- old/pytest-subtests-0.3.0/CHANGELOG.rst 2020-01-23 01:01:31.000000000
+0100
+++ new/pytest-subtests-0.3.1/CHANGELOG.rst 2020-05-20 22:42:14.000000000
+0200
@@ -1,6 +1,11 @@
CHANGELOG
=========
+0.3.1 (2020-05-20)
+------------------
+
+* Fix pytest 5.4 support.
+
0.3.0 (2020-01-22)
------------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-subtests-0.3.0/PKG-INFO
new/pytest-subtests-0.3.1/PKG-INFO
--- old/pytest-subtests-0.3.0/PKG-INFO 2020-01-23 01:01:44.000000000 +0100
+++ new/pytest-subtests-0.3.1/PKG-INFO 2020-05-20 22:42:20.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 1.2
Name: pytest-subtests
-Version: 0.3.0
+Version: 0.3.1
Summary: unittest subTest() support and subtests fixture
Home-page: https://github.com/pytest-dev/pytest-subtests
Author: Bruno Oliveira
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pytest-subtests-0.3.0/pytest_subtests.egg-info/PKG-INFO
new/pytest-subtests-0.3.1/pytest_subtests.egg-info/PKG-INFO
--- old/pytest-subtests-0.3.0/pytest_subtests.egg-info/PKG-INFO 2020-01-23
01:01:42.000000000 +0100
+++ new/pytest-subtests-0.3.1/pytest_subtests.egg-info/PKG-INFO 2020-05-20
22:42:20.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 1.2
Name: pytest-subtests
-Version: 0.3.0
+Version: 0.3.1
Summary: unittest subTest() support and subtests fixture
Home-page: https://github.com/pytest-dev/pytest-subtests
Author: Bruno Oliveira
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-subtests-0.3.0/pytest_subtests.py
new/pytest-subtests-0.3.1/pytest_subtests.py
--- old/pytest-subtests-0.3.0/pytest_subtests.py 2020-01-23
01:01:31.000000000 +0100
+++ new/pytest-subtests-0.3.1/pytest_subtests.py 2020-05-20
22:42:14.000000000 +0200
@@ -117,7 +117,13 @@
option = self.request.config.getoption("capture", None)
# capsys or capfd are active, subtest should not capture
- capture_fixture_active = hasattr(self.request.node, "_capture_fixture")
+
+ # pytest<5.4 support: node holds the active fixture
+ capture_fixture_active = getattr(self.request.node,
"_capture_fixture", None)
+ if capture_fixture_active is None:
+ # pytest>=5.4 support: capture manager plugin holds the active
fixture
+ capman =
self.request.config.pluginmanager.getplugin("capturemanager")
+ capture_fixture_active = getattr(capman, "_capture_fixture", None)
if option == "sys" and not capture_fixture_active:
fixture = CaptureFixture(SysCapture, self.request)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-subtests-0.3.0/tox.ini
new/pytest-subtests-0.3.1/tox.ini
--- old/pytest-subtests-0.3.0/tox.ini 2020-01-23 01:01:31.000000000 +0100
+++ new/pytest-subtests-0.3.1/tox.ini 2020-05-20 22:42:14.000000000 +0200
@@ -1,10 +1,12 @@
[tox]
-envlist = py34,py35,py36,py37,pypy3,linting
+envlist = py35,py36,py37,py38,py38-pytest53,pypy3,linting
[testenv]
passenv = USER USERNAME TRAVIS PYTEST_ADDOPTS
deps =
pytest-xdist>=1.28
+ pytest53: pytest ==5.3.5
+
commands =
pytest {posargs:tests}