Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-unittest-xml-reporting for
openSUSE:Factory checked in at 2026-02-20 17:44:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-unittest-xml-reporting (Old)
and /work/SRC/openSUSE:Factory/.python-unittest-xml-reporting.new.1977
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-unittest-xml-reporting"
Fri Feb 20 17:44:17 2026 rev:24 rq:1334092 version:4.0.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-unittest-xml-reporting/python-unittest-xml-reporting.changes
2024-03-18 16:45:50.597801298 +0100
+++
/work/SRC/openSUSE:Factory/.python-unittest-xml-reporting.new.1977/python-unittest-xml-reporting.changes
2026-02-20 17:52:37.160523522 +0100
@@ -1,0 +2,10 @@
+Fri Feb 20 01:40:08 UTC 2026 - Steve Kowalik <[email protected]>
+
+- Update to 4.0.0:
+ * Switch to setuptools_scm, and pyproject.toml.
+ * Support Python 3.10+.
+- Drop patches:
+ * python-311.patch
+ * python-312.patch
+
+-------------------------------------------------------------------
Old:
----
3.2.0.tar.gz
python-311.patch
python-312.patch
New:
----
4.0.0.tar.gz
----------(Old B)----------
Old:- Drop patches:
* python-311.patch
* python-312.patch
Old: * python-311.patch
* python-312.patch
----------(Old E)----------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-unittest-xml-reporting.spec ++++++
--- /var/tmp/diff_new_pack.TXpyvs/_old 2026-02-20 17:52:38.204567258 +0100
+++ /var/tmp/diff_new_pack.TXpyvs/_new 2026-02-20 17:52:38.208567427 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-unittest-xml-reporting
#
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2026 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,19 +17,17 @@
Name: python-unittest-xml-reporting
-Version: 3.2.0
+Version: 4.0.0
Release: 0
Summary: PyUnit-based test runner with JUnit like XML reporting
License: LGPL-3.0-or-later
URL: https://github.com/xmlrunner/unittest-xml-reporting
Source:
https://github.com/xmlrunner/unittest-xml-reporting/archive/%{version}.tar.gz
-# PATCH-FIX-UPSTREAM python-311.patch gh#xmlrunner/unittest-xml-reporting#274
-Patch0: python-311.patch
-# PATCH-FIX-OPENSUSE Add one to the refcount for Python 3.12
-Patch1: python-312.patch
+BuildRequires: %{python_module base >= 3.10}
BuildRequires: %{python_module lxml}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
+BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
@@ -46,10 +44,9 @@
%prep
%autosetup -p1 -n unittest-xml-reporting-%{version}
-# Do not install the LICENSE for us.
-sed -i '/data_files =/d' setup.py
%build
+export SETUPTOOLS_SCM_PRETEND_VERSION="%{version}"
%pyproject_wheel
%install
++++++ 3.2.0.tar.gz -> 4.0.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/unittest-xml-reporting-3.2.0/.coveragerc
new/unittest-xml-reporting-4.0.0/.coveragerc
--- old/unittest-xml-reporting-3.2.0/.coveragerc 2022-01-20
20:08:29.000000000 +0100
+++ new/unittest-xml-reporting-4.0.0/.coveragerc 2026-01-07
16:26:08.000000000 +0100
@@ -1,5 +1,4 @@
[report]
include =
- setup.py
tests/*
xmlrunner/*
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/unittest-xml-reporting-3.2.0/.github/ISSUE_TEMPLATE/bug_report.md
new/unittest-xml-reporting-4.0.0/.github/ISSUE_TEMPLATE/bug_report.md
--- old/unittest-xml-reporting-3.2.0/.github/ISSUE_TEMPLATE/bug_report.md
1970-01-01 01:00:00.000000000 +0100
+++ new/unittest-xml-reporting-4.0.0/.github/ISSUE_TEMPLATE/bug_report.md
2026-01-07 16:26:08.000000000 +0100
@@ -0,0 +1,45 @@
+<!--
+Thank you for your contribution and taking the time to report the issue!
+Note: Please search to see if an issue already exists for the bug you
encountered.
+-->
+
+---
+name: 🐞 Bug
+about: File a bug/issue
+title: '[BUG] <title>'
+labels: Bug, Needs Triage
+assignees: ''
+
+---
+
+
+### Current Behavior:
+<!-- A concise description of what you're experiencing. -->
+
+### Expected Behavior:
+<!-- A concise description of what you expected to happen. -->
+
+### Steps To Reproduce:
+<!--
+Example: steps to reproduce the behavior:
+1. In this environment...
+1. With this config...
+1. Run '...'
+1. See error...
+
+or a minimal example
+-->
+
+### Environment:
+<!--
+Example:
+- OS: Ubuntu 20.04
+- Python: 3.14.0
+- xmlrunner: 4.0.0
+output of `pip list`
+-->
+
+### Anything else:
+<!--
+Links? References? Anything that will give us more context about the issue
that you are encountering!
+-->
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/unittest-xml-reporting-3.2.0/.github/ISSUE_TEMPLATE/feature_request.md
new/unittest-xml-reporting-4.0.0/.github/ISSUE_TEMPLATE/feature_request.md
--- old/unittest-xml-reporting-3.2.0/.github/ISSUE_TEMPLATE/feature_request.md
1970-01-01 01:00:00.000000000 +0100
+++ new/unittest-xml-reporting-4.0.0/.github/ISSUE_TEMPLATE/feature_request.md
2026-01-07 16:26:08.000000000 +0100
@@ -0,0 +1,55 @@
+<!--
+Thank you for your contribution and taking the time to report the issue!
+Note: Please search to see if an issue already exists for the bug you
encountered.
+-->
+
+---
+name: 🚀 Feature Request
+about: File a feature request
+title: '[Feature] <title>'
+labels: Feature, Needs Triage
+assignees: ''
+
+---
+
+
+### Current Behavior:
+<!--
+Explain why the current behavior has shortcomings.
+-->
+
+### Feature Behavior:
+<!--
+A detailed description of the feature.
+Explain the pros/cons of this approach.
+Explain the target audience for this feature,
+e.g. is it for a very niche use case? or will everybody use it?
+-->
+
+### Test Plan for the feature
+<!--
+How to test the new feature and ensure it plays nice with other existing
features.
+How to verify that it works?
+Ideas for unit tests?
+-->
+
+### Alternative solutions:
+<!--
+Explain how you are currently achieving the results a different way.
+Explain the pros/cons of the alternative solutions.
+-->
+
+### Environment:
+<!--
+Example:
+- OS: Ubuntu 20.04
+- Python: 3.14.0
+- xmlrunner: 4.0.0
+output of `pip list`
+-->
+
+### Anything else:
+<!--
+Links? References?
+Anything that will give us more context about the feature request!
+-->
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/unittest-xml-reporting-3.2.0/.github/pull_request_template.md
new/unittest-xml-reporting-4.0.0/.github/pull_request_template.md
--- old/unittest-xml-reporting-3.2.0/.github/pull_request_template.md
1970-01-01 01:00:00.000000000 +0100
+++ new/unittest-xml-reporting-4.0.0/.github/pull_request_template.md
2026-01-07 16:26:08.000000000 +0100
@@ -0,0 +1,13 @@
+<!--
+Thank you for submitting a PR and your contribution!
+
+Quick checklist
+
+- [ ] Include unit tests when applicable
+- [ ] Documentation and comments
+- [ ] Reference existing issues, e.g. `see issue #123`, `closes #123`
+- [ ] Reference existing pull requests, e.g. `supersedes PR #123`
+
+See the [github
docs](https://help.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword)
for more information.
+
+-->
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/unittest-xml-reporting-3.2.0/.github/workflows/tests.yml
new/unittest-xml-reporting-4.0.0/.github/workflows/tests.yml
--- old/unittest-xml-reporting-3.2.0/.github/workflows/tests.yml
2022-01-20 20:08:29.000000000 +0100
+++ new/unittest-xml-reporting-4.0.0/.github/workflows/tests.yml
2026-01-07 16:26:08.000000000 +0100
@@ -11,21 +11,29 @@
runs-on: ubuntu-latest
strategy:
matrix:
+ name: [
+ "py310",
+ "py311",
+ "py312",
+ "py313",
+ "py314",
+ ]
include:
- - python-version: 3.7
- toxenv: py37
- - python-version: 3.8
- toxenv: py38
- - python-version: 3.8
- toxenv: py38-djangolts
- - python-version: 3.8
- toxenv: py38-djangocurr
- - python-version: 3.8
- toxenv: py38-quality
- - python-version: 3.9
- toxenv: py39
- - python-version: "3.10"
- toxenv: py310
+ - name: py310
+ python-version: "3.10"
+ tox_env: py310
+ - name: py311
+ python-version: "3.11"
+ tox_env: py311
+ - name: py312
+ python-version: "3.12"
+ tox_env: py312
+ - name: py313
+ python-version: "3.13"
+ tox_env: py313
+ - name: py314
+ python-version: "3.14"
+ tox_env: py314
steps:
- name: Checkout
uses: actions/checkout@v2
@@ -40,19 +48,21 @@
lsb_release -a
- name: Install
env:
- TOXENV: ${{ matrix.toxenv }}
+ TOXENV: ${{ matrix.tox_env }}
run: |
pip install tox-gh-actions codecov coveralls
pip --version
tox --version
- name: Script
run: |
- tox -v
- env:
- CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
+ tox run -v
- name: After Failure
if: ${{ failure() }}
run: |
more .tox/log/* | cat
more .tox/*/log/* | cat
+ - name: Upload to Codecov
+ run: |
+ tox -e uploadcodecov
+ env:
+ CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/unittest-xml-reporting-3.2.0/.gitignore
new/unittest-xml-reporting-4.0.0/.gitignore
--- old/unittest-xml-reporting-3.2.0/.gitignore 2022-01-20 20:08:29.000000000
+0100
+++ new/unittest-xml-reporting-4.0.0/.gitignore 2026-01-07 16:26:08.000000000
+0100
@@ -12,3 +12,6 @@
.tox
.coverage
htmlcov/
+
+# autogenerated
+xmlrunner/version.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/unittest-xml-reporting-3.2.0/Makefile
new/unittest-xml-reporting-4.0.0/Makefile
--- old/unittest-xml-reporting-3.2.0/Makefile 2022-01-20 20:08:29.000000000
+0100
+++ new/unittest-xml-reporting-4.0.0/Makefile 2026-01-07 16:26:08.000000000
+0100
@@ -12,8 +12,7 @@
git show-ref --tags | grep -q $$(git log -1 --pretty=%H) || (echo "DID
NOT TAG VERSION"; exit 1)
dist: checkversion build/publish/bin
- build/publish/bin/python setup.py sdist
- build/publish/bin/python setup.py bdist_wheel
+ build/publish/bin/python -m build
publish: dist/ build/publish/bin
build/publish/bin/twine upload dist/*
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/unittest-xml-reporting-3.2.0/README.md
new/unittest-xml-reporting-4.0.0/README.md
--- old/unittest-xml-reporting-3.2.0/README.md 2022-01-20 20:08:29.000000000
+0100
+++ new/unittest-xml-reporting-4.0.0/README.md 2026-01-07 16:26:08.000000000
+0100
@@ -5,7 +5,7 @@
[](https://codecov.io/github/xmlrunner/unittest-xml-reporting?branch=master)
[](https://coveralls.io/github/xmlrunner/unittest-xml-reporting?branch=master)
-[](https://requires.io/github/xmlrunner/unittest-xml-reporting/requirements/?branch=master)
+
# unittest-xml-reporting (aka xmlrunner)
@@ -14,9 +14,21 @@
and continuous integration servers.
+## Contributing
+
+We are always looking for good contributions, so please just fork the
+repository and send pull requests (with tests please!).
+
+If you would like write access to the repository, or become a maintainer,
+feel free to get in touch.
+
+
## Requirements
-* Python 3.7+
+See [Status of Python versions](https://devguide.python.org/versions/) for
python EOL information.
+
+* Python 3.10+
+* Last version supporting Python 3.7 - 3.9 was 3.2.0
* Please note Python 3.6 end-of-life was in Dec 2021, last version supporting
3.6 was 3.1.0
* Please note Python 3.5 end-of-life was in Sep 2020, last version supporting
3.5 was 3.1.0
* Please note Python 2.7 end-of-life was in Jan 2020, last version supporting
2.7 was 2.5.2
@@ -106,7 +118,7 @@
````bash
$ git clone https://github.com/xmlrunner/unittest-xml-reporting.git
$ cd unittest-xml-reporting
-$ sudo python setup.py install
+$ sudo python -m pip install .
````
Or get the latest *development* version as a tarball:
@@ -115,7 +127,7 @@
$ wget https://github.com/xmlrunner/unittest-xml-reporting/archive/master.zip
$ unzip master.zip
$ cd unittest-xml-reporting
-$ sudo python setup.py install
+$ sudo python -m pip install .
````
Or you can manually download the latest released version from
@@ -242,15 +254,6 @@
|`TEST_OUTPUT_FILE_NAME`|`None`|`<str>`|Tells the test runner to output a
single XML report with this filename under `os.path.join(TEST_OUTPUT_DIR,
TEST_OUTPUT_FILE_NAME)`.<br>Please note that for long running tests, this will
keep the results in memory for a longer time than multiple reports, and may use
up more resources.|
-## Contributing
-
-We are always looking for good contributions, so please just fork the
-repository and send pull requests (with tests!).
-
-If you would like write access to the repository, or become a maintainer,
-feel free to get in touch.
-
-
### Testing changes with `tox`
Please use `tox` to test your changes before sending a pull request.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/unittest-xml-reporting-3.2.0/pyproject.toml
new/unittest-xml-reporting-4.0.0/pyproject.toml
--- old/unittest-xml-reporting-3.2.0/pyproject.toml 1970-01-01
01:00:00.000000000 +0100
+++ new/unittest-xml-reporting-4.0.0/pyproject.toml 2026-01-07
16:26:08.000000000 +0100
@@ -0,0 +1,61 @@
+[build-system]
+build-backend = "setuptools.build_meta"
+requires = [
+ "setuptools>=77",
+ "setuptools-scm[toml]>=6.2.3",
+]
+
+
+[project]
+name = "unittest-xml-reporting"
+license = "BSD-2-Clause"
+license-files = [ "LICENSE" ]
+dynamic = [
+ "version",
+]
+description = "unittest-based test runner with Ant/JUnit like XML reporting."
+keywords = [
+ "pyunit",
+ "unittest",
+ "junit xml",
+ "xunit",
+ "report",
+ "testrunner",
+ "xmlrunner",
+]
+readme = "README.md"
+authors = [
+ {name = "Daniel Fernandes Martins"},
+ {name = "Damien Nozay"},
+]
+classifiers = [
+ "Development Status :: 5 - Production/Stable",
+ "Intended Audience :: Developers",
+ "Natural Language :: English",
+ "Operating System :: OS Independent",
+ "Programming Language :: Python :: 3 :: Only",
+ "Programming Language :: Python :: 3.10",
+ "Programming Language :: Python :: 3.11",
+ "Programming Language :: Python :: 3.12",
+ "Programming Language :: Python :: 3.13",
+ "Programming Language :: Python :: 3.14",
+ "Programming Language :: Python :: Implementation :: CPython",
+ "Programming Language :: Python :: Implementation :: PyPy",
+ "Topic :: Software Development :: Libraries :: Python Modules",
+ "Topic :: Software Development :: Testing",
+]
+requires-python = ">=3.10"
+dependencies = [
+ "lxml",
+]
+
+[project.urls]
+Homepage = "http://github.com/xmlrunner/unittest-xml-reporting/tree/master/"
+
+
+[tool.setuptools_scm]
+write_to = "xmlrunner/version.py"
+
+[tool.distutils.bdist_wheel]
+universal = 1
+python-tag = "py3"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/unittest-xml-reporting-3.2.0/setup.cfg
new/unittest-xml-reporting-4.0.0/setup.cfg
--- old/unittest-xml-reporting-3.2.0/setup.cfg 2022-01-20 20:08:29.000000000
+0100
+++ new/unittest-xml-reporting-4.0.0/setup.cfg 1970-01-01 01:00:00.000000000
+0100
@@ -1,3 +0,0 @@
-[bdist_wheel]
-universal = 1
-python-tag = py3
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/unittest-xml-reporting-3.2.0/setup.py
new/unittest-xml-reporting-4.0.0/setup.py
--- old/unittest-xml-reporting-3.2.0/setup.py 2022-01-20 20:08:29.000000000
+0100
+++ new/unittest-xml-reporting-4.0.0/setup.py 1970-01-01 01:00:00.000000000
+0100
@@ -1,61 +0,0 @@
-#!/usr/bin/env python
-
-from setuptools import setup, find_packages
-from distutils.util import convert_path
-import codecs
-
-# Load version information
-main_ns = {}
-ver_path = convert_path('xmlrunner/version.py')
-with codecs.open(ver_path, 'rb', 'utf8') as ver_file:
- exec(ver_file.read(), main_ns)
-
-# Load README.md
-readme_path = convert_path('README.md')
-with codecs.open(readme_path, 'rb', 'utf8') as readme_file:
- long_description = readme_file.read()
-
-# this is for sdist to work.
-import sys
-if sys.version_info < (3, 7):
- raise RuntimeError('This version requires Python 3.7+') # pragma: no cover
-
-setup(
- name = 'unittest-xml-reporting',
- version = main_ns['__version__'],
- author = 'Daniel Fernandes Martins, Damien Nozay',
- description = 'unittest-based test runner with Ant/JUnit like XML
reporting.',
- long_description = long_description,
- long_description_content_type = 'text/markdown',
- data_files = [('', ['LICENSE'])],
- install_requires = ['lxml'],
- license = 'BSD',
- platforms = ['Any'],
- python_requires='>=3.7',
- keywords = [
- 'pyunit', 'unittest', 'junit xml', 'xunit', 'report', 'testrunner',
'xmlrunner'
- ],
- url = 'http://github.com/xmlrunner/unittest-xml-reporting/tree/master/',
- classifiers = [
- 'Development Status :: 5 - Production/Stable',
- 'Intended Audience :: Developers',
- 'License :: OSI Approved :: BSD License',
- 'Natural Language :: English',
- 'Operating System :: OS Independent',
- 'Programming Language :: Python',
- 'Programming Language :: Python :: 3',
- 'Programming Language :: Python :: 3 :: Only',
- 'Programming Language :: Python :: 3.7',
- 'Programming Language :: Python :: 3.8',
- 'Programming Language :: Python :: 3.9',
- 'Programming Language :: Python :: 3.10',
- 'Programming Language :: Python :: Implementation :: CPython',
- 'Programming Language :: Python :: Implementation :: PyPy',
- 'Topic :: Software Development :: Libraries :: Python Modules',
- 'Topic :: Software Development :: Testing'
- ],
- packages = ['xmlrunner', 'xmlrunner.extra'],
- zip_safe = False,
- include_package_data = True,
- test_suite = 'tests'
-)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/unittest-xml-reporting-3.2.0/tests/discovery_test.py
new/unittest-xml-reporting-4.0.0/tests/discovery_test.py
--- old/unittest-xml-reporting-3.2.0/tests/discovery_test.py 1970-01-01
01:00:00.000000000 +0100
+++ new/unittest-xml-reporting-4.0.0/tests/discovery_test.py 2026-01-07
16:26:08.000000000 +0100
@@ -0,0 +1,6 @@
+import unittest
+
+
+class DiscoveryTest(unittest.TestCase):
+ def test_discovery_pass(self):
+ pass
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/unittest-xml-reporting-3.2.0/tests/testsuite.py
new/unittest-xml-reporting-4.0.0/tests/testsuite.py
--- old/unittest-xml-reporting-3.2.0/tests/testsuite.py 2022-01-20
20:08:29.000000000 +0100
+++ new/unittest-xml-reporting-4.0.0/tests/testsuite.py 2026-01-07
16:26:08.000000000 +0100
@@ -796,16 +796,22 @@
testsuite_output = self.stream.getvalue()
self.assertIn('Exception: Massive fail', testsuite_output)
+ @unittest.skipIf(not unittest.BaseTestSuite._cleanup,
+ 'skip - do not cleanup')
@unittest.skipIf(not hasattr(sys, 'getrefcount'),
'skip - PyPy does not have sys.getrefcount.')
@unittest.skipIf((3, 0) <= sys.version_info < (3, 4),
'skip - test not garbage collected. '
'https://bugs.python.org/issue11798.')
def test_xmlrunner_hold_traceback(self):
+ import gc
+
suite = unittest.TestSuite()
suite.addTest(self.DummyRefCountTest('test_fail'))
countBeforeTest = sys.getrefcount(self.DummyRefCountTest.dummy)
runner = self._test_xmlrunner(suite)
+
+ gc.collect()
countAfterTest = sys.getrefcount(self.DummyRefCountTest.dummy)
self.assertEqual(countBeforeTest, countAfterTest)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/unittest-xml-reporting-3.2.0/tox.ini
new/unittest-xml-reporting-4.0.0/tox.ini
--- old/unittest-xml-reporting-3.2.0/tox.ini 2022-01-20 20:08:29.000000000
+0100
+++ new/unittest-xml-reporting-4.0.0/tox.ini 2026-01-07 16:26:08.000000000
+0100
@@ -4,32 +4,55 @@
norecursedirs = tests/django_example
[tox]
-envlist = begin,py{py3,37,38,39,310},pytest,py38-django{lts,curr},end,quality
+envlist =
begin,py{py3,310,311,312,313,314},pytest,py314-django{lts,curr},end,quality
[gh-actions]
python =
- 3.7: py37,pytest
- 3.8: begin,py38,py38-django{lts,curr},end,quality
- 3.9: py39
3.10: py310
+ 3.11: py311
+ 3.12: py312
+ 3.13: py313
+ 3.14: begin,py314,py314-django{tls,curr},end,quality
[testenv]
deps =
coverage
codecov>=1.4.0
coveralls
- djangolts,pytest: django~=3.2.0
- djangocurr: django~=4.0.0
- pytest: pytest
+ djangolts: django~=4.2.0
+ djangocurr: django~=5.2.0
+ pytest
lxml>=3.6.0
commands =
- coverage run --append setup.py test
- coverage report --omit='.tox/*'
- python -m xmlrunner discover -p test_xmlrunner_output
+ python -m coverage run --append -m pytest
+ python -m coverage report --omit='.tox/*'
+ python -m xmlrunner discover -p "discovery_test.py"
+passenv =
+ CI
+ TRAVIS
+ TRAVIS_*
+ CODECOV_TOKEN
+ COVERALLS_REPO_TOKEN
+ COVERALLS_*
+ GITHUB_ACTION
+ GITHUB_HEAD_REF
+ GITHUB_REF
+ GITHUB_REPOSITORY
+ GITHUB_RUN_ID
+ GITHUB_SHA
+ GITHUB_TOKEN
+
+[testenv:uploadcodecov]
+commands =
codecov -e TOXENV
- -coveralls
-passenv = CI TRAVIS_BUILD_ID TRAVIS TRAVIS_BRANCH TRAVIS_JOB_NUMBER
TRAVIS_PULL_REQUEST TRAVIS_JOB_ID TRAVIS_REPO_SLUG TRAVIS_COMMIT CODECOV_TOKEN
COVERALLS_REPO_TOKEN GITHUB_ACTION GITHUB_HEAD_REF GITHUB_REF GITHUB_REPOSITORY
GITHUB_RUN_ID GITHUB_SHA
+[testenv:uploadcoveralls]
+commands =
+ -coveralls --service=github
+
+[testenv:finishcoveralls]
+commands =
+ -coveralls --service=github --finish
[testenv:pytest]
commands = pytest
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/unittest-xml-reporting-3.2.0/xmlrunner/__init__.py
new/unittest-xml-reporting-4.0.0/xmlrunner/__init__.py
--- old/unittest-xml-reporting-3.2.0/xmlrunner/__init__.py 2022-01-20
20:08:29.000000000 +0100
+++ new/unittest-xml-reporting-4.0.0/xmlrunner/__init__.py 2026-01-07
16:26:08.000000000 +0100
@@ -6,7 +6,10 @@
"""
# Allow version to be detected at runtime.
-from .version import __version__
+try:
+ from .version import __version__
+except ImportError:
+ __version__ = "unknown"
from .runner import XMLTestRunner
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/unittest-xml-reporting-3.2.0/xmlrunner/result.py
new/unittest-xml-reporting-4.0.0/xmlrunner/result.py
--- old/unittest-xml-reporting-3.2.0/xmlrunner/result.py 2022-01-20
20:08:29.000000000 +0100
+++ new/unittest-xml-reporting-4.0.0/xmlrunner/result.py 2026-01-07
16:26:08.000000000 +0100
@@ -92,8 +92,14 @@
self._second = second
def flush(self):
- self._first.flush()
- self._second.flush()
+ try:
+ self._first.flush()
+ except ValueError:
+ pass
+ try:
+ self._second.flush()
+ except ValueError:
+ pass
def writable(self):
return True
@@ -188,6 +194,9 @@
"""
return self.test_exception_info
+ def shortDescription(self):
+ return self.test_description
+
class _XMLTestResult(TextTestResult):
"""
@@ -673,3 +682,8 @@
def _exc_info_to_string(self, err, test):
"""Converts a sys.exc_info()-style tuple of values into a string."""
return super(_XMLTestResult, self)._exc_info_to_string(err, test)
+
+ def getDescription(self, test):
+ if isinstance(test, tuple):
+ test = test[0]
+ return super().getDescription(test)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/unittest-xml-reporting-3.2.0/xmlrunner/version.py
new/unittest-xml-reporting-4.0.0/xmlrunner/version.py
--- old/unittest-xml-reporting-3.2.0/xmlrunner/version.py 2022-01-20
20:08:29.000000000 +0100
+++ new/unittest-xml-reporting-4.0.0/xmlrunner/version.py 1970-01-01
01:00:00.000000000 +0100
@@ -1,2 +0,0 @@
-
-__version__ = '3.2.0'