Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.21.2: pytest fails in units checking time #2274

Open
kloczek opened this issue May 29, 2024 · 2 comments
Open

3.21.2: pytest fails in units checking time #2274

kloczek opened this issue May 29, 2024 · 2 comments

Comments

@kloczek
Copy link

kloczek commented May 29, 2024

I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.

  • python3 -sBm build -w --no-isolation
  • because I'm calling build with --no-isolation I'm using during all processes only locally installed modules
  • install .whl file in </install/prefix> using installer module
  • run pytest with $PYTHONPATH pointing to sitearch and sitelib inside </install/prefix>
  • build is performed in env which is cut off from access to the public network (pytest is executed with -m "not network")
Here is pytest output:
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-marshmallow-3.21.2-2.fc37.x86_64/usr/lib64/python3.10/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-marshmallow-3.21.2-2.fc37.x86_64/usr/lib/python3.10/site-packages
+ /usr/bin/pytest -ra -m 'not network' -q
==================================================================================== test session starts ====================================================================================
platform linux -- Python 3.10.14, pytest-8.2.1, pluggy-1.5.0
benchmark: 4.0.0 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
rootdir: /home/tkloczko/rpmbuild/BUILD/marshmallow-3.21.2
configfile: pyproject.toml
plugins: twisted-1.14.1, asyncio-0.23.7, tornasync-0.6.0.post2, trio-0.8.0, anyio-4.4.0, benchmark-4.0.0, timeout-2.3.1, mock-3.14.0, hypothesis-6.100.0, datadir-1.5.0, regressions-2.5.0, examples-0.0.10, Faker-25.2.0
asyncio: mode=strict
collected 1229 items

tests/test_decorators.py ....................................                                                                                                                         [  2%]
tests/test_deserialization.py ......................................................................................................FF........FF......................F..F........... [ 15%]
..................................................................................................................................................................................... [ 29%]
......................................                                                                                                                                                [ 33%]
tests/test_error_store.py .............................                                                                                                                               [ 35%]
tests/test_exceptions.py .......                                                                                                                                                      [ 35%]
tests/test_fields.py ................................................................................................................................................................ [ 48%]
......                                                                                                                                                                                [ 49%]
tests/test_options.py ...............                                                                                                                                                 [ 50%]
tests/test_registry.py ..........                                                                                                                                                     [ 51%]
tests/test_schema.py ................................................................................................................................................................ [ 64%]
......................................................................................                                                                                                [ 71%]
tests/test_serialization.py .......................................................FF...F..F.........FFF............................................................                  [ 82%]
tests/test_utils.py ..............F...F..F....F.........                                                                                                                              [ 85%]
tests/test_validate.py .............................................................................................................................................................. [ 98%]
...................                                                                                                                                                                   [ 99%]
tests/test_version_attributes.py .                                                                                                                                                    [100%]

========================================================================================= FAILURES ==========================================================================================
___________________________________ TestFieldDeserialization.test_rfc_datetime_field_deserialization[Sun, 10 Nov 2013 01:23:45 -0600-expected2-True-rfc] ____________________________________
tests/test_deserialization.py:487: in test_rfc_datetime_field_deserialization
    assert field.deserialize(value) == expected
E   assert datetime.datetime(2013, 11, 10, 1, 23, 45, tzinfo=datetime.timezone(datetime.timedelta(days=-1, seconds=64800))) == datetime.datetime(2013, 11, 10, 1, 23, 45, tzinfo=<StaticTzInfo 'America/Chicago'>)
E    +  where datetime.datetime(2013, 11, 10, 1, 23, 45, tzinfo=datetime.timezone(datetime.timedelta(days=-1, seconds=64800))) = <bound method Field.deserialize of <fields.DateTime(dump_default=<marshmallow.missing>, attribute=None, validate=None,...valid_awareness': 'Not a valid {awareness} {obj_type}.', 'format': '"{input}" cannot be formatted as a {obj_type}.'})>>('Sun, 10 Nov 2013 01:23:45 -0600')
E    +    where <bound method Field.deserialize of <fields.DateTime(dump_default=<marshmallow.missing>, attribute=None, validate=None,...valid_awareness': 'Not a valid {awareness} {obj_type}.', 'format': '"{input}" cannot be formatted as a {obj_type}.'})>> = <fields.DateTime(dump_default=<marshmallow.missing>, attribute=None, validate=None, required=False, load_only=False, d...nvalid_awareness': 'Not a valid {awareness} {obj_type}.', 'format': '"{input}" cannot be formatted as a {obj_type}.'})>.deserialize
__________________________________ TestFieldDeserialization.test_rfc_datetime_field_deserialization[Sun, 10 Nov 2013 01:23:45 -0600-expected2-True-rfc822] __________________________________
tests/test_deserialization.py:487: in test_rfc_datetime_field_deserialization
    assert field.deserialize(value) == expected
E   assert datetime.datetime(2013, 11, 10, 1, 23, 45, tzinfo=datetime.timezone(datetime.timedelta(days=-1, seconds=64800))) == datetime.datetime(2013, 11, 10, 1, 23, 45, tzinfo=<StaticTzInfo 'America/Chicago'>)
E    +  where datetime.datetime(2013, 11, 10, 1, 23, 45, tzinfo=datetime.timezone(datetime.timedelta(days=-1, seconds=64800))) = <bound method Field.deserialize of <fields.DateTime(dump_default=<marshmallow.missing>, attribute=None, validate=None,...valid_awareness': 'Not a valid {awareness} {obj_type}.', 'format': '"{input}" cannot be formatted as a {obj_type}.'})>>('Sun, 10 Nov 2013 01:23:45 -0600')
E    +    where <bound method Field.deserialize of <fields.DateTime(dump_default=<marshmallow.missing>, attribute=None, validate=None,...valid_awareness': 'Not a valid {awareness} {obj_type}.', 'format': '"{input}" cannot be formatted as a {obj_type}.'})>> = <fields.DateTime(dump_default=<marshmallow.missing>, attribute=None, validate=None, required=False, load_only=False, d...nvalid_awareness': 'Not a valid {awareness} {obj_type}.', 'format': '"{input}" cannot be formatted as a {obj_type}.'})>.deserialize
______________________________________ TestFieldDeserialization.test_iso_datetime_field_deserialization[2013-11-10T01:23:45-06:00-expected4-True-iso] _______________________________________
tests/test_deserialization.py:531: in test_iso_datetime_field_deserialization
    assert field.deserialize(value) == expected
E   assert datetime.datetime(2013, 11, 10, 1, 23, 45, tzinfo=datetime.timezone(datetime.timedelta(days=-1, seconds=64800), '-0600')) == datetime.datetime(2013, 11, 10, 1, 23, 45, tzinfo=<StaticTzInfo 'America/Chicago'>)
E    +  where datetime.datetime(2013, 11, 10, 1, 23, 45, tzinfo=datetime.timezone(datetime.timedelta(days=-1, seconds=64800), '-0600')) = <bound method Field.deserialize of <fields.DateTime(dump_default=<marshmallow.missing>, attribute=None, validate=None,...valid_awareness': 'Not a valid {awareness} {obj_type}.', 'format': '"{input}" cannot be formatted as a {obj_type}.'})>>('2013-11-10T01:23:45-06:00')
E    +    where <bound method Field.deserialize of <fields.DateTime(dump_default=<marshmallow.missing>, attribute=None, validate=None,...valid_awareness': 'Not a valid {awareness} {obj_type}.', 'format': '"{input}" cannot be formatted as a {obj_type}.'})>> = <fields.DateTime(dump_default=<marshmallow.missing>, attribute=None, validate=None, required=False, load_only=False, d...nvalid_awareness': 'Not a valid {awareness} {obj_type}.', 'format': '"{input}" cannot be formatted as a {obj_type}.'})>.deserialize
____________________________________ TestFieldDeserialization.test_iso_datetime_field_deserialization[2013-11-10T01:23:45-06:00-expected4-True-iso8601] _____________________________________
tests/test_deserialization.py:531: in test_iso_datetime_field_deserialization
    assert field.deserialize(value) == expected
E   assert datetime.datetime(2013, 11, 10, 1, 23, 45, tzinfo=datetime.timezone(datetime.timedelta(days=-1, seconds=64800), '-0600')) == datetime.datetime(2013, 11, 10, 1, 23, 45, tzinfo=<StaticTzInfo 'America/Chicago'>)
E    +  where datetime.datetime(2013, 11, 10, 1, 23, 45, tzinfo=datetime.timezone(datetime.timedelta(days=-1, seconds=64800), '-0600')) = <bound method Field.deserialize of <fields.DateTime(dump_default=<marshmallow.missing>, attribute=None, validate=None,...valid_awareness': 'Not a valid {awareness} {obj_type}.', 'format': '"{input}" cannot be formatted as a {obj_type}.'})>>('2013-11-10T01:23:45-06:00')
E    +    where <bound method Field.deserialize of <fields.DateTime(dump_default=<marshmallow.missing>, attribute=None, validate=None,...valid_awareness': 'Not a valid {awareness} {obj_type}.', 'format': '"{input}" cannot be formatted as a {obj_type}.'})>> = <fields.DateTime(dump_default=<marshmallow.missing>, attribute=None, validate=None, required=False, load_only=False, d...nvalid_awareness': 'Not a valid {awareness} {obj_type}.', 'format': '"{input}" cannot be formatted as a {obj_type}.'})>.deserialize
_______________________________________ TestFieldDeserialization.test_naive_datetime_with_timezone[iso-timezone2-2013-11-10T01:23:45-03:00-expected2] _______________________________________
tests/test_deserialization.py:638: in test_naive_datetime_with_timezone
    assert field.deserialize(value) == expected
E   assert datetime.datetime(2013, 11, 10, 4, 23, 45) == datetime.datetime(2013, 11, 9, 22, 23, 45)
E    +  where datetime.datetime(2013, 11, 10, 4, 23, 45) = <bound method Field.deserialize of <fields.NaiveDateTime(dump_default=<marshmallow.missing>, attribute=None, validate=...valid_awareness': 'Not a valid {awareness} {obj_type}.', 'format': '"{input}" cannot be formatted as a {obj_type}.'})>>('2013-11-10T01:23:45-03:00')
E    +    where <bound method Field.deserialize of <fields.NaiveDateTime(dump_default=<marshmallow.missing>, attribute=None, validate=...valid_awareness': 'Not a valid {awareness} {obj_type}.', 'format': '"{input}" cannot be formatted as a {obj_type}.'})>> = <fields.NaiveDateTime(dump_default=<marshmallow.missing>, attribute=None, validate=None, required=False, load_only=Fal...nvalid_awareness': 'Not a valid {awareness} {obj_type}.', 'format': '"{input}" cannot be formatted as a {obj_type}.'})>.deserialize
____________________________________ TestFieldDeserialization.test_naive_datetime_with_timezone[rfc-timezone5-Sun, 10 Nov 2013 01:23:45 -0300-expected5] ____________________________________
tests/test_deserialization.py:638: in test_naive_datetime_with_timezone
    assert field.deserialize(value) == expected
E   assert datetime.datetime(2013, 11, 10, 4, 23, 45) == datetime.datetime(2013, 11, 9, 22, 23, 45)
E    +  where datetime.datetime(2013, 11, 10, 4, 23, 45) = <bound method Field.deserialize of <fields.NaiveDateTime(dump_default=<marshmallow.missing>, attribute=None, validate=...valid_awareness': 'Not a valid {awareness} {obj_type}.', 'format': '"{input}" cannot be formatted as a {obj_type}.'})>>('Sun, 10 Nov 2013 01:23:45 -0300')
E    +    where <bound method Field.deserialize of <fields.NaiveDateTime(dump_default=<marshmallow.missing>, attribute=None, validate=...valid_awareness': 'Not a valid {awareness} {obj_type}.', 'format': '"{input}" cannot be formatted as a {obj_type}.'})>> = <fields.NaiveDateTime(dump_default=<marshmallow.missing>, attribute=None, validate=None, required=False, load_only=Fal...nvalid_awareness': 'Not a valid {awareness} {obj_type}.', 'format': '"{input}" cannot be formatted as a {obj_type}.'})>.deserialize
_______________________________________________ TestFieldSerialization.test_datetime_field_rfc822[value2-Sun, 10 Nov 2013 01:23:45 -0600-rfc] _______________________________________________
tests/test_serialization.py:575: in test_datetime_field_rfc822
    assert field.serialize("d", {"d": value}) == expected
E   AssertionError: assert 'Sun, 10 Nov ...1:23:45 +0000' == 'Sun, 10 Nov ...1:23:45 -0600'
E
E     - Sun, 10 Nov 2013 01:23:45 -0600
E     ?                           ^^^
E     + Sun, 10 Nov 2013 01:23:45 +0000
E     ?                           ^  ++
_____________________________________________ TestFieldSerialization.test_datetime_field_rfc822[value2-Sun, 10 Nov 2013 01:23:45 -0600-rfc822] ______________________________________________
tests/test_serialization.py:575: in test_datetime_field_rfc822
    assert field.serialize("d", {"d": value}) == expected
E   AssertionError: assert 'Sun, 10 Nov ...1:23:45 +0000' == 'Sun, 10 Nov ...1:23:45 -0600'
E
E     - Sun, 10 Nov 2013 01:23:45 -0600
E     ?                           ^^^
E     + Sun, 10 Nov 2013 01:23:45 +0000
E     ?                           ^  ++
_____________________________________________________ TestFieldSerialization.test_datetime_field_timestamp[timestamp-value3-1384064625] _____________________________________________________
tests/test_serialization.py:607: in test_datetime_field_timestamp
    assert field.serialize("d", {"d": value}) == expected
E   assert 1384043025.0 == 1384064625
E    +  where 1384043025.0 = <bound method Field.serialize of <fields.DateTime(dump_default=<marshmallow.missing>, attribute=None, validate=None, r...valid_awareness': 'Not a valid {awareness} {obj_type}.', 'format': '"{input}" cannot be formatted as a {obj_type}.'})>>('d', {'d': datetime.datetime(2013, 11, 10, 0, 23, 45, tzinfo=<StaticTzInfo 'America/Chicago'>)})
E    +    where <bound method Field.serialize of <fields.DateTime(dump_default=<marshmallow.missing>, attribute=None, validate=None, r...valid_awareness': 'Not a valid {awareness} {obj_type}.', 'format': '"{input}" cannot be formatted as a {obj_type}.'})>> = <fields.DateTime(dump_default=<marshmallow.missing>, attribute=None, validate=None, required=False, load_only=False, d...nvalid_awareness': 'Not a valid {awareness} {obj_type}.', 'format': '"{input}" cannot be formatted as a {obj_type}.'})>.serialize
__________________________________________________ TestFieldSerialization.test_datetime_field_timestamp[timestamp_ms-value6-1384064625000] __________________________________________________
tests/test_serialization.py:607: in test_datetime_field_timestamp
    assert field.serialize("d", {"d": value}) == expected
E   assert 1384043025000.0 == 1384064625000
E    +  where 1384043025000.0 = <bound method Field.serialize of <fields.DateTime(dump_default=<marshmallow.missing>, attribute=None, validate=None, r...valid_awareness': 'Not a valid {awareness} {obj_type}.', 'format': '"{input}" cannot be formatted as a {obj_type}.'})>>('d', {'d': datetime.datetime(2013, 11, 10, 0, 23, 45, tzinfo=<StaticTzInfo 'America/Chicago'>)})
E    +    where <bound method Field.serialize of <fields.DateTime(dump_default=<marshmallow.missing>, attribute=None, validate=None, r...valid_awareness': 'Not a valid {awareness} {obj_type}.', 'format': '"{input}" cannot be formatted as a {obj_type}.'})>> = <fields.DateTime(dump_default=<marshmallow.missing>, attribute=None, validate=None, required=False, load_only=False, d...nvalid_awareness': 'Not a valid {awareness} {obj_type}.', 'format': '"{input}" cannot be formatted as a {obj_type}.'})>.serialize
_________________________________________________ TestFieldSerialization.test_datetime_field_iso8601[value3-2013-11-10T01:23:45-06:00-iso] __________________________________________________
tests/test_serialization.py:634: in test_datetime_field_iso8601
    assert field.serialize("d", {"d": value}) == expected
E   AssertionError: assert '2013-11-10T01:23:45+00:00' == '2013-11-10T01:23:45-06:00'
E
E     - 2013-11-10T01:23:45-06:00
E     ?                    ^ ^
E     + 2013-11-10T01:23:45+00:00
E     ?                    ^ ^
_______________________________________________ TestFieldSerialization.test_datetime_field_iso8601[value3-2013-11-10T01:23:45-06:00-iso8601] ________________________________________________
tests/test_serialization.py:634: in test_datetime_field_iso8601
    assert field.serialize("d", {"d": value}) == expected
E   AssertionError: assert '2013-11-10T01:23:45+00:00' == '2013-11-10T01:23:45-06:00'
E
E     - 2013-11-10T01:23:45-06:00
E     ?                    ^ ^
E     + 2013-11-10T01:23:45+00:00
E     ?                    ^ ^
_________________________________________________ TestFieldSerialization.test_datetime_field_iso8601[value3-2013-11-10T01:23:45-06:00-None] _________________________________________________
tests/test_serialization.py:634: in test_datetime_field_iso8601
    assert field.serialize("d", {"d": value}) == expected
E   AssertionError: assert '2013-11-10T01:23:45+00:00' == '2013-11-10T01:23:45-06:00'
E
E     - 2013-11-10T01:23:45-06:00
E     ?                    ^ ^
E     + 2013-11-10T01:23:45+00:00
E     ?                    ^ ^
__________________________________________________________________ test_rfc_format[value2-Sun, 10 Nov 2013 01:23:45 -0600] __________________________________________________________________
tests/test_utils.py:133: in test_rfc_format
    assert utils.rfcformat(value) == expected
E   AssertionError: assert 'Sun, 10 Nov ...1:23:45 +0000' == 'Sun, 10 Nov ...1:23:45 -0600'
E
E     - Sun, 10 Nov 2013 01:23:45 -0600
E     ?                           ^^^
E     + Sun, 10 Nov 2013 01:23:45 +0000
E     ?                           ^  ++
_____________________________________________________________________ test_isoformat[value3-2013-11-10T01:23:45-06:00] ______________________________________________________________________
tests/test_utils.py:155: in test_isoformat
    assert utils.isoformat(value) == expected
E   AssertionError: assert '2013-11-10T01:23:45+00:00' == '2013-11-10T01:23:45-06:00'
E
E     - 2013-11-10T01:23:45-06:00
E     ?                    ^ ^
E     + 2013-11-10T01:23:45+00:00
E     ?                    ^ ^
_________________________________________________________________ test_from_rfc[Sun, 10 Nov 2013 01:23:45 -0600-expected2] __________________________________________________________________
tests/test_utils.py:175: in test_from_rfc
    assert result == expected
E   AssertionError: assert datetime.datetime(2013, 11, 10, 1, 23, 45, tzinfo=datetime.timezone(datetime.timedelta(days=-1, seconds=64800))) == datetime.datetime(2013, 11, 10, 1, 23, 45, tzinfo=<StaticTzInfo 'America/Chicago'>)
________________________________________________________________ test_from_iso_datetime[2013-11-10T01:23:45-06:00-expected4] ________________________________________________________________
tests/test_utils.py:204: in test_from_iso_datetime
    assert result == expected
E   AssertionError: assert datetime.datetime(2013, 11, 10, 1, 23, 45, tzinfo=datetime.timezone(datetime.timedelta(days=-1, seconds=64800), '-0600')) == datetime.datetime(2013, 11, 10, 1, 23, 45, tzinfo=<StaticTzInfo 'America/Chicago'>)
================================================================================== short test summary info ==================================================================================
FAILED tests/test_deserialization.py::TestFieldDeserialization::test_rfc_datetime_field_deserialization[Sun, 10 Nov 2013 01:23:45 -0600-expected2-True-rfc] - assert datetime.datetime(2013, 11, 10, 1, 23, 45, tzinfo=datetime.timezone(datetime.timedelta(days=-1, seconds=64800))) == datetime.datetime(2013, 11, 10, 1, 23, 45, tzinfo=<StaticTzIn...
FAILED tests/test_deserialization.py::TestFieldDeserialization::test_rfc_datetime_field_deserialization[Sun, 10 Nov 2013 01:23:45 -0600-expected2-True-rfc822] - assert datetime.datetime(2013, 11, 10, 1, 23, 45, tzinfo=datetime.timezone(datetime.timedelta(days=-1, seconds=64800))) == datetime.datetime(2013, 11, 10, 1, 23, 45, tzinfo=<StaticTzIn...
FAILED tests/test_deserialization.py::TestFieldDeserialization::test_iso_datetime_field_deserialization[2013-11-10T01:23:45-06:00-expected4-True-iso] - assert datetime.datetime(2013, 11, 10, 1, 23, 45, tzinfo=datetime.timezone(datetime.timedelta(days=-1, seconds=64800), '-0600')) == datetime.datetime(2013, 11, 10, 1, 23, 45, tzinfo=<S...
FAILED tests/test_deserialization.py::TestFieldDeserialization::test_iso_datetime_field_deserialization[2013-11-10T01:23:45-06:00-expected4-True-iso8601] - assert datetime.datetime(2013, 11, 10, 1, 23, 45, tzinfo=datetime.timezone(datetime.timedelta(days=-1, seconds=64800), '-0600')) == datetime.datetime(2013, 11, 10, 1, 23, 45, tzinfo=<S...
FAILED tests/test_deserialization.py::TestFieldDeserialization::test_naive_datetime_with_timezone[iso-timezone2-2013-11-10T01:23:45-03:00-expected2] - assert datetime.datetime(2013, 11, 10, 4, 23, 45) == datetime.datetime(2013, 11, 9, 22, 23, 45)
FAILED tests/test_deserialization.py::TestFieldDeserialization::test_naive_datetime_with_timezone[rfc-timezone5-Sun, 10 Nov 2013 01:23:45 -0300-expected5] - assert datetime.datetime(2013, 11, 10, 4, 23, 45) == datetime.datetime(2013, 11, 9, 22, 23, 45)
FAILED tests/test_serialization.py::TestFieldSerialization::test_datetime_field_rfc822[value2-Sun, 10 Nov 2013 01:23:45 -0600-rfc] - AssertionError: assert 'Sun, 10 Nov ...1:23:45 +0000' == 'Sun, 10 Nov ...1:23:45 -0600'
FAILED tests/test_serialization.py::TestFieldSerialization::test_datetime_field_rfc822[value2-Sun, 10 Nov 2013 01:23:45 -0600-rfc822] - AssertionError: assert 'Sun, 10 Nov ...1:23:45 +0000' == 'Sun, 10 Nov ...1:23:45 -0600'
FAILED tests/test_serialization.py::TestFieldSerialization::test_datetime_field_timestamp[timestamp-value3-1384064625] - assert 1384043025.0 == 1384064625
FAILED tests/test_serialization.py::TestFieldSerialization::test_datetime_field_timestamp[timestamp_ms-value6-1384064625000] - assert 1384043025000.0 == 1384064625000
FAILED tests/test_serialization.py::TestFieldSerialization::test_datetime_field_iso8601[value3-2013-11-10T01:23:45-06:00-iso] - AssertionError: assert '2013-11-10T01:23:45+00:00' == '2013-11-10T01:23:45-06:00'
FAILED tests/test_serialization.py::TestFieldSerialization::test_datetime_field_iso8601[value3-2013-11-10T01:23:45-06:00-iso8601] - AssertionError: assert '2013-11-10T01:23:45+00:00' == '2013-11-10T01:23:45-06:00'
FAILED tests/test_serialization.py::TestFieldSerialization::test_datetime_field_iso8601[value3-2013-11-10T01:23:45-06:00-None] - AssertionError: assert '2013-11-10T01:23:45+00:00' == '2013-11-10T01:23:45-06:00'
FAILED tests/test_utils.py::test_rfc_format[value2-Sun, 10 Nov 2013 01:23:45 -0600] - AssertionError: assert 'Sun, 10 Nov ...1:23:45 +0000' == 'Sun, 10 Nov ...1:23:45 -0600'
FAILED tests/test_utils.py::test_isoformat[value3-2013-11-10T01:23:45-06:00] - AssertionError: assert '2013-11-10T01:23:45+00:00' == '2013-11-10T01:23:45-06:00'
FAILED tests/test_utils.py::test_from_rfc[Sun, 10 Nov 2013 01:23:45 -0600-expected2] - AssertionError: assert datetime.datetime(2013, 11, 10, 1, 23, 45, tzinfo=datetime.timezone(datetime.timedelta(days=-1, seconds=64800))) == datetime.datetime(2013, 11, 10, 1, 23, 45, tz...
FAILED tests/test_utils.py::test_from_iso_datetime[2013-11-10T01:23:45-06:00-expected4] - AssertionError: assert datetime.datetime(2013, 11, 10, 1, 23, 45, tzinfo=datetime.timezone(datetime.timedelta(days=-1, seconds=64800), '-0600')) == datetime.datetime(2013, 11, 10, 1, 2...
============================================================================== 17 failed, 1212 passed in 4.74s ==============================================================================
List of installed modules in build env:
Package                       Version
----------------------------- -----------
alabaster                     0.7.16
autodocsumm                   0.2.12
Babel                         2.15.0
build                         1.2.1
charset-normalizer            3.3.2
defusedxml                    0.7.1
docutils                      0.20.1
exceptiongroup                1.1.3
idna                          3.7
imagesize                     1.4.1
importlib_metadata            7.1.0
iniconfig                     2.0.0
installer                     0.7.0
Jinja2                        3.1.4
MarkupSafe                    2.1.5
ordered-set                   4.1.0
packaging                     24.0
pluggy                        1.5.0
Pygments                      2.18.0
pyproject_hooks               1.0.0
pytest                        8.2.1
python-dateutil               2.9.0.post0
pytz                          2024.1
requests                      2.32.2
simplejson                    3.19.2
snowballstemmer               2.2.0
Sphinx                        7.3.7
sphinx-issues                 3.0.1
sphinxcontrib-applehelp       1.0.8
sphinxcontrib-devhelp         1.0.6
sphinxcontrib-htmlhelp        2.0.5
sphinxcontrib-jsmath          1.0.1
sphinxcontrib-qthelp          1.0.7
sphinxcontrib-serializinghtml 1.1.10
tokenize_rt                   5.2.0
tomli                         2.0.1
urllib3                       2.2.1
wheel                         0.43.0
zipp                          3.19.0

Please let me know if you need more details or want me to perform some diagnostics.

@kloczek
Copy link
Author

kloczek commented May 29, 2024

I'm using tzdata 2024a.

@lafrech
Copy link
Member

lafrech commented Oct 18, 2024

I don't know why this happens.

I've removed the use of pytz in v3.23 to use ZoneInfo instead. Would you like to try again with latest version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants