diff options
| author | wrobell <wrobell@riseup.net> | 2025-06-22 01:35:18 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-09-25 09:35:41 +0100 |
| commit | 78aac7cf1a5d0a8a023f17558ffc14f2c5ef5cb8 (patch) | |
| tree | ef250a76695fd84eb4d16e03e464374d83124b6b /gnu/packages/patches/python-dateutil-pytest-compat.patch | |
| parent | 6d464680ec2eb290bf05c8f2c9b6d98f442d2f86 (diff) | |
gnu: python-dateutil: Update to version 2.9.0.
* gnu/packages/time.scm (python-dateutil)[source](patches): Remove
the dateutil patch.
* gnu/packages/patches/python-dateutil-pytest-compat.patch: Drop the
patch as seems not required with pytest 8 anymore.
* gnu/local.mk (dist_patch_DATA): Deregester patch.
Change-Id: I61ef23a2795f6cecc73bbd337759dd4e088d4807
Diffstat (limited to 'gnu/packages/patches/python-dateutil-pytest-compat.patch')
| -rw-r--r-- | gnu/packages/patches/python-dateutil-pytest-compat.patch | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/gnu/packages/patches/python-dateutil-pytest-compat.patch b/gnu/packages/patches/python-dateutil-pytest-compat.patch deleted file mode 100644 index 5cff57e94c2..00000000000 --- a/gnu/packages/patches/python-dateutil-pytest-compat.patch +++ /dev/null @@ -1,43 +0,0 @@ -Add compatibility with newer versions of pytest. - -Taken from upstream: - - https://github.com/dateutil/dateutil/commit/2bdd63158b7f981fc6d70a869680451bdfd8d848 - -diff --git a/dateutil/test/test_internals.py b/dateutil/test/test_internals.py -index 53081314..b32e6723 100644 ---- a/dateutil/test/test_internals.py -+++ b/dateutil/test/test_internals.py -@@ -9,6 +9,7 @@ - - import sys - import pytest -+import warnings - - from dateutil.parser._parser import _ymd - from dateutil import tz -@@ -65,18 +66,17 @@ def test_parser_parser_private_not_warns(): - from dateutil.parser._parser import _timelex, _tzparser - from dateutil.parser._parser import _parsetz - -- with pytest.warns(None) as recorder: -+ with warnings.catch_warnings(): -+ warnings.simplefilter("error") - _tzparser() -- assert len(recorder) == 0 - -- with pytest.warns(None) as recorder: -+ with warnings.catch_warnings(): -+ warnings.simplefilter("error") - _timelex('2014-03-03') - -- assert len(recorder) == 0 -- -- with pytest.warns(None) as recorder: -+ with warnings.catch_warnings(): -+ warnings.simplefilter("error") - _parsetz('+05:00') -- assert len(recorder) == 0 - - - @pytest.mark.tzstr |
