python/time-machine: update to 2.14.1
| | |
| | | include ../../../make-rules/shared-macros.mk |
| | | |
| | | COMPONENT_NAME = time-machine |
| | | HUMAN_VERSION = 2.14.0 |
| | | HUMAN_VERSION = 2.14.1 |
| | | COMPONENT_SUMMARY = time-machine - Travel through time in your tests. |
| | | COMPONENT_ARCHIVE_URL = \ |
| | | https://github.com/adamchainz/time-machine/archive/refs/tags/$(HUMAN_VERSION).tar.gz |
| | | COMPONENT_ARCHIVE_HASH = \ |
| | | sha256:96d4d0d9af39004f74b705650bd5079c9208ba2c94428621863982e914ed0884 |
| | | sha256:a57bfadf961318fca2ba840d15116176e253aa8689d88c830480b46f0ea5dcdf |
| | | COMPONENT_LICENSE = MIT |
| | | COMPONENT_LICENSE_FILE = LICENSE |
| | | |
| | |
| | | --- time-machine-2.14.0/tests/test_time_machine.py.orig |
| | | +++ time-machine-2.14.0/tests/test_time_machine.py |
| | | @@ -380,6 +380,7 @@ |
| | | --- time-machine-2.14.1/tests/test_time_machine.py.orig |
| | | +++ time-machine-2.14.1/tests/test_time_machine.py |
| | | @@ -382,6 +382,7 @@ |
| | | assert time.time() == EPOCH + 21600.0 |
| | | |
| | | |
| | |
| | | def test_destination_datetime_tzinfo_zoneinfo(): |
| | | orig_timezone = time.timezone |
| | | orig_altzone = time.altzone |
| | | @@ -413,6 +414,7 @@ |
| | | @@ -415,6 +416,7 @@ |
| | | assert time.daylight == orig_daylight |
| | | |
| | | |
| | |
| | | def test_destination_datetime_tzinfo_zoneinfo_nested(): |
| | | orig_tzname = time.tzname |
| | | |
| | | @@ -429,6 +431,7 @@ |
| | | @@ -431,6 +433,7 @@ |
| | | assert time.tzname == orig_tzname |
| | | |
| | | |
| | |
| | | def test_destination_datetime_tzinfo_zoneinfo_no_orig_tz(): |
| | | with change_local_timezone(None): |
| | | orig_tzname = time.tzname |
| | | @@ -698,6 +701,7 @@ |
| | | @@ -719,6 +722,7 @@ |
| | | assert time.time() == EPOCH |
| | | |
| | | |
| | |
| | | --- time-machine-2.14.0/tox.ini.orig |
| | | +++ time-machine-2.14.0/tox.ini |
| | | --- time-machine-2.14.1/tox.ini.orig |
| | | +++ time-machine-2.14.1/tox.ini |
| | | @@ -7,7 +7,7 @@ |
| | | [testenv] |
| | | package = wheel |
| | |
| | | cachedir: .tox/py$(PYV)/.pytest_cache |
| | | rootdir: $(@D) |
| | | configfile: pyproject.toml |
| | | collecting ... collected 97 items |
| | | collecting ... collected 98 items |
| | | |
| | | tests/test_time_machine.py::ClassDecoratorInheritanceTests::test_ineheritance_correctly_rebound PASSED |
| | | tests/test_time_machine.py::TestEscapeHatch::test_datetime_now PASSED |
| | |
| | | tests/test_time_machine.py::test_destination_string_naive[1970-01-01-US/Eastern-18000] PASSED |
| | | tests/test_time_machine.py::test_destination_string_naive[1970-01-01-UTC-0] PASSED |
| | | tests/test_time_machine.py::test_destination_timedelta PASSED |
| | | tests/test_time_machine.py::test_destination_timedelta_first_travel_in_process PASSED |
| | | tests/test_time_machine.py::test_destination_timedelta_negative PASSED |
| | | tests/test_time_machine.py::test_destination_timedelta_nested PASSED |
| | | tests/test_time_machine.py::test_exceptions_dont_break_it PASSED |
| | |
| | | tests/test_time_machine.py::test_unsupported_type PASSED |
| | | tests/test_time_machine.py::test_uuid1 PASSED |
| | | |
| | | ======== 92 passed, 5 skipped ======== |
| | | ======== 93 passed, 5 skipped ======== |
| | | $(PYTHON_DIR)/vendor-packages/coverage/inorout.py:503: CoverageWarning: Module src/_time_machine.c was never imported. (module-not-imported) |
| | | self.warn(f"Module {pkg} was never imported.", slug="module-not-imported") |
| | | py$(PYV): OK |