Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 874380 Details for
Bug 912709
dev-python/time-machine-2.11.0: test failures on hppa (timeouts?)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
alpha build.log
file_912709.txt (text/plain), 32.97 KB, created by
matoro
on 2023-11-09 16:32:19 UTC
(
hide
)
Description:
alpha build.log
Filename:
MIME Type:
Creator:
matoro
Created:
2023-11-09 16:32:19 UTC
Size:
32.97 KB
patch
obsolete
> * Package: dev-python/time-machine-2.13.0:0 > * Repository: gentoo > * Maintainer: python@gentoo.org > * USE: alpha elibc_glibc kernel_linux python_targets_python3_11 test > * FEATURES: keeptemp network-sandbox preserve-libs sandbox test userpriv usersandbox >>>> Unpacking source... >>>> Unpacking time-machine-2.13.0.gh.tar.gz to /var/tmp/portage/dev-python/time-machine-2.13.0/work >>>> Source unpacked in /var/tmp/portage/dev-python/time-machine-2.13.0/work >>>> Preparing source in /var/tmp/portage/dev-python/time-machine-2.13.0/work/time-machine-2.13.0 ... > * Build system packages: > * dev-python/gpep517 : 15 > * dev-python/installer : 0.7.0 > * dev-python/cython : 3.0.5 > * dev-python/setuptools : 68.2.2 > * dev-python/setuptools-rust : > * dev-python/setuptools-scm : 8.0.4 > * dev-python/wheel : 0.41.3 >>>> Source prepared. >>>> Configuring source in /var/tmp/portage/dev-python/time-machine-2.13.0/work/time-machine-2.13.0 ... >>>> Source configured. >>>> Compiling source in /var/tmp/portage/dev-python/time-machine-2.13.0/work/time-machine-2.13.0 ... > * python3_11: running distutils-r1_run_phase distutils-r1_python_compile > * Building the wheel for time-machine-2.13.0 via setuptools.build_meta >gpep517 build-wheel --prefix=/usr --backend setuptools.build_meta --output-fd 3 --wheel-dir /var/tmp/portage/dev-python/time-machine-2.13.0/work/time-machine-2.13.0-python3_11/wheel >2023-11-09 16:05:37,571 gpep517 INFO Building wheel via backend setuptools.build_meta >[11/09/23 16:05:40] WARNING pyproject.toml does not contain a tool.setuptools_scm section setuptools.py:119 >2023-11-09 16:05:40,727 root INFO running bdist_wheel >2023-11-09 16:05:41,959 root INFO running build >2023-11-09 16:05:41,960 root INFO running build_py >2023-11-09 16:05:42,117 root INFO creating /var/tmp/portage/dev-python/time-machine-2.13.0/work/time-machine-2.13.0-python3_11/build >2023-11-09 16:05:42,120 root INFO creating /var/tmp/portage/dev-python/time-machine-2.13.0/work/time-machine-2.13.0-python3_11/build/lib.linux-alpha-cpython-311 >2023-11-09 16:05:42,123 root INFO creating /var/tmp/portage/dev-python/time-machine-2.13.0/work/time-machine-2.13.0-python3_11/build/lib.linux-alpha-cpython-311/time_machine >2023-11-09 16:05:42,130 root INFO copying src/time_machine/__init__.py -> /var/tmp/portage/dev-python/time-machine-2.13.0/work/time-machine-2.13.0-python3_11/build/lib.linux-alpha-cpython-311/time_machine >2023-11-09 16:05:42,134 root INFO running egg_info >2023-11-09 16:05:42,135 root INFO creating src/time_machine.egg-info >2023-11-09 16:05:42,261 root INFO writing src/time_machine.egg-info/PKG-INFO >2023-11-09 16:05:42,269 root INFO writing dependency_links to src/time_machine.egg-info/dependency_links.txt >2023-11-09 16:05:42,277 root INFO writing entry points to src/time_machine.egg-info/entry_points.txt >2023-11-09 16:05:42,281 root INFO writing requirements to src/time_machine.egg-info/requires.txt >2023-11-09 16:05:42,285 root INFO writing top-level names to src/time_machine.egg-info/top_level.txt >2023-11-09 16:05:42,288 root INFO writing manifest file 'src/time_machine.egg-info/SOURCES.txt' >[11/09/23 16:05:42] ERROR listing git files failed - pretending there aren't any git.py:24 >2023-11-09 16:05:42,754 root INFO reading manifest file 'src/time_machine.egg-info/SOURCES.txt' >2023-11-09 16:05:42,760 root INFO reading manifest template 'MANIFEST.in' >2023-11-09 16:05:42,772 root INFO adding license file 'LICENSE' >2023-11-09 16:05:42,781 root INFO writing manifest file 'src/time_machine.egg-info/SOURCES.txt' >2023-11-09 16:05:42,790 root INFO copying src/time_machine/py.typed -> /var/tmp/portage/dev-python/time-machine-2.13.0/work/time-machine-2.13.0-python3_11/build/lib.linux-alpha-cpython-311/time_machine >2023-11-09 16:05:42,796 root WARNING warning: build_py: byte-compiling is disabled, skipping. > >2023-11-09 16:05:42,797 root INFO running build_ext >2023-11-09 16:05:45,330 root INFO building '_time_machine' extension >2023-11-09 16:05:45,331 root INFO creating /var/tmp/portage/dev-python/time-machine-2.13.0/work/time-machine-2.13.0-python3_11/build/temp.linux-alpha-cpython-311 >2023-11-09 16:05:45,338 root INFO creating /var/tmp/portage/dev-python/time-machine-2.13.0/work/time-machine-2.13.0-python3_11/build/temp.linux-alpha-cpython-311/src >2023-11-09 16:05:45,341 root INFO alpha-unknown-linux-gnu-gcc -Wsign-compare -mieee -DNDEBUG -mieee -pipe -O2 -mcpu=ev4 -DNDEBUG -fPIC -I/usr/include/python3.11 -c src/_time_machine.c -o /var/tmp/portage/dev-python/time-machine-2.13.0/work/time-machine-2.13.0-python3_11/build/temp.linux-alpha-cpython-311/src/_time_machine.o >2023-11-09 16:05:47,551 root INFO alpha-unknown-linux-gnu-gcc -shared -Wl,-O1 -Wl,--as-needed -mieee -pipe -O2 -mcpu=ev4 -DNDEBUG /var/tmp/portage/dev-python/time-machine-2.13.0/work/time-machine-2.13.0-python3_11/build/temp.linux-alpha-cpython-311/src/_time_machine.o -L/usr/lib -o /var/tmp/portage/dev-python/time-machine-2.13.0/work/time-machine-2.13.0-python3_11/build/lib.linux-alpha-cpython-311/_time_machine.cpython-311-alpha-linux-gnu.so >2023-11-09 16:05:47,931 wheel INFO installing to /var/tmp/portage/dev-python/time-machine-2.13.0/work/time-machine-2.13.0-python3_11/build/bdist.linux-alpha/wheel >2023-11-09 16:05:47,931 root INFO running install >2023-11-09 16:05:48,063 root INFO running install_lib >2023-11-09 16:05:48,190 root INFO creating /var/tmp/portage/dev-python/time-machine-2.13.0/work/time-machine-2.13.0-python3_11/build/bdist.linux-alpha >2023-11-09 16:05:48,194 root INFO creating /var/tmp/portage/dev-python/time-machine-2.13.0/work/time-machine-2.13.0-python3_11/build/bdist.linux-alpha/wheel >2023-11-09 16:05:48,197 root INFO copying /var/tmp/portage/dev-python/time-machine-2.13.0/work/time-machine-2.13.0-python3_11/build/lib.linux-alpha-cpython-311/_time_machine.cpython-311-alpha-linux-gnu.so -> /var/tmp/portage/dev-python/time-machine-2.13.0/work/time-machine-2.13.0-python3_11/build/bdist.linux-alpha/wheel >2023-11-09 16:05:48,205 root INFO creating /var/tmp/portage/dev-python/time-machine-2.13.0/work/time-machine-2.13.0-python3_11/build/bdist.linux-alpha/wheel/time_machine >2023-11-09 16:05:48,209 root INFO copying /var/tmp/portage/dev-python/time-machine-2.13.0/work/time-machine-2.13.0-python3_11/build/lib.linux-alpha-cpython-311/time_machine/py.typed -> /var/tmp/portage/dev-python/time-machine-2.13.0/work/time-machine-2.13.0-python3_11/build/bdist.linux-alpha/wheel/time_machine >2023-11-09 16:05:48,214 root INFO copying /var/tmp/portage/dev-python/time-machine-2.13.0/work/time-machine-2.13.0-python3_11/build/lib.linux-alpha-cpython-311/time_machine/__init__.py -> /var/tmp/portage/dev-python/time-machine-2.13.0/work/time-machine-2.13.0-python3_11/build/bdist.linux-alpha/wheel/time_machine >2023-11-09 16:05:48,219 root WARNING warning: install_lib: byte-compiling is disabled, skipping. > >2023-11-09 16:05:48,222 root INFO running install_egg_info >2023-11-09 16:05:48,355 root INFO Copying src/time_machine.egg-info to /var/tmp/portage/dev-python/time-machine-2.13.0/work/time-machine-2.13.0-python3_11/build/bdist.linux-alpha/wheel/time_machine-2.13.0-py3.11.egg-info >2023-11-09 16:05:48,377 root INFO running install_scripts >2023-11-09 16:05:48,419 wheel INFO creating /var/tmp/portage/dev-python/time-machine-2.13.0/work/time-machine-2.13.0-python3_11/build/bdist.linux-alpha/wheel/time_machine-2.13.0.dist-info/WHEEL >2023-11-09 16:05:48,426 wheel INFO creating '/var/tmp/portage/dev-python/time-machine-2.13.0/work/time-machine-2.13.0-python3_11/wheel/.tmp-ecaumy58/time_machine-2.13.0-cp311-cp311-linux_alpha.whl' and adding '/var/tmp/portage/dev-python/time-machine-2.13.0/work/time-machine-2.13.0-python3_11/build/bdist.linux-alpha/wheel' to it >2023-11-09 16:05:48,436 wheel INFO adding '_time_machine.cpython-311-alpha-linux-gnu.so' >2023-11-09 16:05:48,443 wheel INFO adding 'time_machine/__init__.py' >2023-11-09 16:05:48,448 wheel INFO adding 'time_machine/py.typed' >2023-11-09 16:05:48,456 wheel INFO adding 'time_machine-2.13.0.dist-info/LICENSE' >2023-11-09 16:05:48,461 wheel INFO adding 'time_machine-2.13.0.dist-info/METADATA' >2023-11-09 16:05:48,465 wheel INFO adding 'time_machine-2.13.0.dist-info/WHEEL' >2023-11-09 16:05:48,470 wheel INFO adding 'time_machine-2.13.0.dist-info/entry_points.txt' >2023-11-09 16:05:48,476 wheel INFO adding 'time_machine-2.13.0.dist-info/top_level.txt' >2023-11-09 16:05:48,480 wheel INFO adding 'time_machine-2.13.0.dist-info/RECORD' >2023-11-09 16:05:48,483 wheel INFO removing /var/tmp/portage/dev-python/time-machine-2.13.0/work/time-machine-2.13.0-python3_11/build/bdist.linux-alpha/wheel >2023-11-09 16:05:48,493 gpep517 INFO The backend produced /var/tmp/portage/dev-python/time-machine-2.13.0/work/time-machine-2.13.0-python3_11/wheel/time_machine-2.13.0-cp311-cp311-linux_alpha.whl > * Installing time_machine-2.13.0-cp311-cp311-linux_alpha.whl to /var/tmp/portage/dev-python/time-machine-2.13.0/work/time-machine-2.13.0-python3_11/install >gpep517 install-wheel --destdir=/var/tmp/portage/dev-python/time-machine-2.13.0/work/time-machine-2.13.0-python3_11/install --interpreter=/usr/bin/python3.11 --prefix=/usr --optimize=all /var/tmp/portage/dev-python/time-machine-2.13.0/work/time-machine-2.13.0-python3_11/wheel/time_machine-2.13.0-cp311-cp311-linux_alpha.whl >2023-11-09 16:05:49,924 gpep517 INFO Installing /var/tmp/portage/dev-python/time-machine-2.13.0/work/time-machine-2.13.0-python3_11/wheel/time_machine-2.13.0-cp311-cp311-linux_alpha.whl into /var/tmp/portage/dev-python/time-machine-2.13.0/work/time-machine-2.13.0-python3_11/install >2023-11-09 16:05:50,117 gpep517 INFO Installation complete >>>> Source compiled. >>>> Test phase: dev-python/time-machine-2.13.0 > * python3_11: running distutils-r1_run_phase python_test >python3.11 -m pytest -vv -ra -l -Wdefault --color=yes -o console_output_style=count -p no:cov -p no:flake8 -p no:flakes -p no:pylint -p no:markdown -p no:sugar -p no:xvfb -p no:pytest-describe -p no:plus -p no:tavern >============================================================= test session starts ============================================================= >platform linux -- Python 3.11.6, pytest-7.4.3, pluggy-1.3.0 -- /var/tmp/portage/dev-python/time-machine-2.13.0/work/time-machine-2.13.0-python3_11/install/usr/bin/python3.11 >cachedir: .pytest_cache >hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase(PosixPath('/var/tmp/portage/dev-python/time-machine-2.13.0/work/time-machine-2.13.0/.hypothesis/examples')) >rootdir: /var/tmp/portage/dev-python/time-machine-2.13.0/work/time-machine-2.13.0 >configfile: pyproject.toml >plugins: time-machine-2.13.0, hypothesis-6.88.3, regressions-2.5.0, typeguard-4.1.5, asyncio-0.21.1, xdist-3.3.1, mock-3.12.0, rerunfailures-12.0, datadir-1.5.0 >asyncio: mode=Mode.STRICT >collecting ... collected 96 items > >tests/test_time_machine.py::test_import_without_clock_realtime PASSED [ 1/96] >tests/test_time_machine.py::test_datetime_now_no_args PASSED [ 2/96] >tests/test_time_machine.py::test_datetime_now_no_args_no_tick PASSED [ 3/96] >tests/test_time_machine.py::test_datetime_now_arg PASSED [ 4/96] >tests/test_time_machine.py::test_datetime_utcnow PASSED [ 5/96] >tests/test_time_machine.py::test_datetime_utcnow_no_tick PASSED [ 6/96] >tests/test_time_machine.py::test_date_today PASSED [ 7/96] >tests/test_time_machine.py::test_time_clock_gettime_realtime PASSED [ 8/96] >tests/test_time_machine.py::test_time_clock_gettime_monotonic_unaffected FAILED [ 9/96] >tests/test_time_machine.py::test_time_clock_gettime_ns_realtime FAILED [10/96] >tests/test_time_machine.py::test_time_clock_gettime_ns_monotonic_unaffected FAILED [11/96] >tests/test_time_machine.py::test_time_gmtime_no_args PASSED [12/96] >tests/test_time_machine.py::test_time_gmtime_no_args_no_tick PASSED [13/96] >tests/test_time_machine.py::test_time_gmtime_arg PASSED [14/96] >tests/test_time_machine.py::test_time_localtime PASSED [15/96] >tests/test_time_machine.py::test_time_localtime_no_tick PASSED [16/96] >tests/test_time_machine.py::test_time_localtime_arg PASSED [17/96] >tests/test_time_machine.py::test_time_montonic PASSED [18/96] >tests/test_time_machine.py::test_time_monotonic_ns PASSED [19/96] >tests/test_time_machine.py::test_time_strftime_format PASSED [20/96] >tests/test_time_machine.py::test_time_strftime_format_no_tick PASSED [21/96] >tests/test_time_machine.py::test_time_strftime_format_t PASSED [22/96] >tests/test_time_machine.py::test_time_time PASSED [23/96] >tests/test_time_machine.py::test_time_time_windows FAILED [24/96] >tests/test_time_machine.py::test_time_time_no_tick PASSED [25/96] >tests/test_time_machine.py::test_time_time_ns FAILED [26/96] >tests/test_time_machine.py::test_time_time_ns_no_tick PASSED [27/96] >tests/test_time_machine.py::test_nestable PASSED [28/96] >tests/test_time_machine.py::test_unsupported_type PASSED [29/96] >tests/test_time_machine.py::test_exceptions_dont_break_it PASSED [30/96] >tests/test_time_machine.py::test_destination_datetime PASSED [31/96] >tests/test_time_machine.py::test_destination_datetime_tzinfo_non_zoneinfo PASSED [32/96] >tests/test_time_machine.py::test_destination_datetime_tzinfo_zoneinfo PASSED [33/96] >tests/test_time_machine.py::test_destination_datetime_tzinfo_zoneinfo_nested PASSED [34/96] >tests/test_time_machine.py::test_destination_datetime_tzinfo_zoneinfo_no_orig_tz PASSED [35/96] >tests/test_time_machine.py::test_destination_datetime_tzinfo_zoneinfo_windows PASSED [36/96] >tests/test_time_machine.py::test_destination_int PASSED [37/96] >tests/test_time_machine.py::test_destination_datetime_naive PASSED [38/96] >tests/test_time_machine.py::test_destination_date PASSED [39/96] >tests/test_time_machine.py::test_destination_timedelta PASSED [40/96] >tests/test_time_machine.py::test_destination_timedelta_negative PASSED [41/96] >tests/test_time_machine.py::test_destination_timedelta_nested PASSED [42/96] >tests/test_time_machine.py::test_destination_string PASSED [43/96] >tests/test_time_machine.py::test_destination_string_naive[1970-01-01 00:00-UTC-0] PASSED [44/96] >tests/test_time_machine.py::test_destination_string_naive[1970-01-01 00:00-Europe/Amsterdam--3600] PASSED [45/96] >tests/test_time_machine.py::test_destination_string_naive[1970-01-01 00:00-US/Eastern-18000] PASSED [46/96] >tests/test_time_machine.py::test_destination_string_naive[1970-01-01-UTC-0] PASSED [47/96] >tests/test_time_machine.py::test_destination_string_naive[1970-01-01-Europe/Amsterdam--3600] PASSED [48/96] >tests/test_time_machine.py::test_destination_string_naive[1970-01-01-US/Eastern-18000] PASSED [49/96] >tests/test_time_machine.py::test_destination_callable_lambda_float PASSED [50/96] >tests/test_time_machine.py::test_destination_callable_lambda_string PASSED [51/96] >tests/test_time_machine.py::test_destination_generator PASSED [52/96] >tests/test_time_machine.py::test_traveller_object PASSED [53/96] >tests/test_time_machine.py::test_function_decorator PASSED [54/96] >tests/test_time_machine.py::test_coroutine_decorator PASSED [55/96] >tests/test_time_machine.py::test_class_decorator_fails_non_testcase PASSED [56/96] >tests/test_time_machine.py::TestMethodDecorator::test_method_decorator PASSED [57/96] >tests/test_time_machine.py::UnitTestMethodTests::test_method_decorator PASSED [58/96] >tests/test_time_machine.py::UnitTestClassTests::test_class_decorator PASSED [59/96] >tests/test_time_machine.py::UnitTestClassTests::test_stacked_method_decorator PASSED [60/96] >tests/test_time_machine.py::UnitTestClassCustomSetUpClassTests::test_class_decorator PASSED [61/96] >tests/test_time_machine.py::UnitTestClassSetUpClassSkipTests::test_thats_always_skipped SKIPPED (Not today) [62/96] >tests/test_time_machine.py::test_shift_with_timedelta PASSED [63/96] >tests/test_time_machine.py::test_shift_integer_delta PASSED [64/96] >tests/test_time_machine.py::test_shift_negative_delta PASSED [65/96] >tests/test_time_machine.py::test_shift_wrong_delta PASSED [66/96] >tests/test_time_machine.py::test_shift_when_tick PASSED [67/96] >tests/test_time_machine.py::test_move_to_datetime FAILED [68/96] >tests/test_time_machine.py::test_move_to_datetime_no_tick PASSED [69/96] >tests/test_time_machine.py::test_move_to_past_datetime PASSED [70/96] >tests/test_time_machine.py::test_move_to_datetime_with_tzinfo_zoneinfo PASSED [71/96] >tests/test_time_machine.py::test_move_to_datetime_change_tick_on FAILED [72/96] >tests/test_time_machine.py::test_move_to_datetime_change_tick_off PASSED [73/96] >tests/test_time_machine.py::test_uuid1 PASSED [74/96] >tests/test_time_machine.py::test_fixture_unused PASSED [75/96] >tests/test_time_machine.py::test_fixture_used PASSED [76/96] >tests/test_time_machine.py::test_fixture_used_tick_false PASSED [77/96] >tests/test_time_machine.py::test_fixture_used_tick_true FAILED [78/96] >tests/test_time_machine.py::test_fixture_move_to_twice PASSED [79/96] >tests/test_time_machine.py::test_fixture_move_to_and_shift PASSED [80/96] >tests/test_time_machine.py::test_fixture_shift_without_move_to PASSED [81/96] >tests/test_time_machine.py::TestEscapeHatch::test_is_travelling_false PASSED [82/96] >tests/test_time_machine.py::TestEscapeHatch::test_is_travelling_true PASSED [83/96] >tests/test_time_machine.py::TestEscapeHatch::test_datetime_now PASSED [84/96] >tests/test_time_machine.py::TestEscapeHatch::test_datetime_now_tz PASSED [85/96] >tests/test_time_machine.py::TestEscapeHatch::test_datetime_utcnow PASSED [86/96] >tests/test_time_machine.py::TestEscapeHatch::test_time_clock_gettime PASSED [87/96] >tests/test_time_machine.py::TestEscapeHatch::test_time_clock_gettime_ns PASSED [88/96] >tests/test_time_machine.py::TestEscapeHatch::test_time_gmtime PASSED [89/96] >tests/test_time_machine.py::TestEscapeHatch::test_time_localtime PASSED [90/96] >tests/test_time_machine.py::TestEscapeHatch::test_time_monotonic PASSED [91/96] >tests/test_time_machine.py::TestEscapeHatch::test_time_monotonic_ns PASSED [92/96] >tests/test_time_machine.py::TestEscapeHatch::test_time_strftime_no_arg PASSED [93/96] >tests/test_time_machine.py::TestEscapeHatch::test_time_strftime_arg PASSED [94/96] >tests/test_time_machine.py::TestEscapeHatch::test_time_time PASSED [95/96] >tests/test_time_machine.py::TestEscapeHatch::test_time_time_ns PASSED [96/96] > >================================================================== FAILURES =================================================================== >________________________________________________ test_time_clock_gettime_monotonic_unaffected _________________________________________________ > > @py_have_clock_gettime > def test_time_clock_gettime_monotonic_unaffected(): > start = time.clock_gettime(time.CLOCK_MONOTONIC) > with time_machine.travel(EPOCH + 180.0): > frozen = time.clock_gettime(time.CLOCK_MONOTONIC) > assert isinstance(frozen, float) >> assert frozen > start >E assert 42291.329377714 > 42291.329377714 > >frozen = 42291.329377714 >start = 42291.329377714 > >tests/test_time_machine.py:161: AssertionError >_____________________________________________________ test_time_clock_gettime_ns_realtime _____________________________________________________ > > @py_have_clock_gettime > def test_time_clock_gettime_ns_realtime(): > with time_machine.travel(EPOCH + 190.0): > first = time.clock_gettime_ns(time.CLOCK_REALTIME) > assert isinstance(first, int) > assert first == int((EPOCH + 190.0) * NANOSECONDS_PER_SECOND) > second = time.clock_gettime_ns(time.CLOCK_REALTIME) >> assert first < second < int((EPOCH + 191.0) * NANOSECONDS_PER_SECOND) >E assert 190000000000 < 190000000000 > >first = 190000000000 >second = 190000000000 > >tests/test_time_machine.py:175: AssertionError >_______________________________________________ test_time_clock_gettime_ns_monotonic_unaffected _______________________________________________ > > @py_have_clock_gettime > def test_time_clock_gettime_ns_monotonic_unaffected(): > start = time.clock_gettime_ns(time.CLOCK_MONOTONIC) > with time_machine.travel(EPOCH + 190.0): > frozen = time.clock_gettime_ns(time.CLOCK_MONOTONIC) > assert isinstance(frozen, int) >> assert frozen > start >E assert 42291855740020 > 42291855740020 > >frozen = 42291855740020 >start = 42291855740020 > >tests/test_time_machine.py:188: AssertionError >___________________________________________________________ test_time_time_windows ____________________________________________________________ > > @mock.patch.object( > time_machine, > "SYSTEM_EPOCH_TIMESTAMP_NS", > (windows_epoch_in_posix * NANOSECONDS_PER_SECOND), > ) > def test_time_time_windows(): > with time_machine.travel(EPOCH): > first = time.time() > assert isinstance(first, float) > assert first == windows_epoch_in_posix > > second = time.time() > assert isinstance(second, float) >> assert windows_epoch_in_posix < second < windows_epoch_in_posix + 1.0 >E assert -11644445222 < -11644445222.0 > >first = -11644445222.0 >second = -11644445222.0 > >tests/test_time_machine.py:308: AssertionError >______________________________________________________________ test_time_time_ns ______________________________________________________________ > > def test_time_time_ns(): > with time_machine.travel(EPOCH + 150.0): > first = time.time_ns() > assert isinstance(first, int) > assert first == int((EPOCH + 150.0) * NANOSECONDS_PER_SECOND) > second = time.time_ns() >> assert first < second < int((EPOCH + 151.0) * NANOSECONDS_PER_SECOND) >E assert 150000000000 < 150000000000 > >first = 150000000000 >second = 150000000000 > >tests/test_time_machine.py:322: AssertionError >____________________________________________________________ test_move_to_datetime ____________________________________________________________ > > def test_move_to_datetime(): > with time_machine.travel(EPOCH) as traveller: > assert time.time() == EPOCH > > traveller.move_to(EPOCH_PLUS_ONE_YEAR_DATETIME) > > first = time.time() > assert first == EPOCH_PLUS_ONE_YEAR > > second = time.time() >> assert first < second < first + 1.0 >E assert 31536000.0 < 31536000.0 > >first = 31536000.0 >second = 31536000.0 >traveller = <time_machine.Coordinates object at 0x200086ad350> > >tests/test_time_machine.py:645: AssertionError >____________________________________________________ test_move_to_datetime_change_tick_on _____________________________________________________ > > def test_move_to_datetime_change_tick_on(): > with time_machine.travel(EPOCH, tick=False) as traveller: > traveller.move_to(EPOCH_PLUS_ONE_YEAR_DATETIME, tick=True) > assert time.time() == EPOCH_PLUS_ONE_YEAR >> assert time.time() > EPOCH_PLUS_ONE_YEAR >E assert 31536000.0 > 31536000.0 >E + where 31536000.0 = <built-in function time>() >E + where <built-in function time> = time.time > >traveller = <time_machine.Coordinates object at 0x2000869f690> > >tests/test_time_machine.py:709: AssertionError >_________________________________________________________ test_fixture_used_tick_true _________________________________________________________ > >time_machine = <time_machine.TimeMachineFixture object at 0x2000867d550> > > def test_fixture_used_tick_true(time_machine): > time_machine.move_to(EPOCH, tick=True) > original = time.time() > assert original == EPOCH >> assert original < time.time() < EPOCH + 10.0 >E assert 0.0 < 0.0 >E + where 0.0 = <built-in function time>() >E + where <built-in function time> = time.time > >original = 0.0 >time_machine = <time_machine.TimeMachineFixture object at 0x2000867d550> > >tests/test_time_machine.py:760: AssertionError >=========================================================== short test summary info =========================================================== >SKIPPED [1] ../../../../../../../usr/lib/python3.11/site-packages/_pytest/unittest.py:371: Not today >FAILED tests/test_time_machine.py::test_time_clock_gettime_monotonic_unaffected - assert 42291.329377714 > 42291.329377714 >FAILED tests/test_time_machine.py::test_time_clock_gettime_ns_realtime - assert 190000000000 < 190000000000 >FAILED tests/test_time_machine.py::test_time_clock_gettime_ns_monotonic_unaffected - assert 42291855740020 > 42291855740020 >FAILED tests/test_time_machine.py::test_time_time_windows - assert -11644445222 < -11644445222.0 >FAILED tests/test_time_machine.py::test_time_time_ns - assert 150000000000 < 150000000000 >FAILED tests/test_time_machine.py::test_move_to_datetime - assert 31536000.0 < 31536000.0 >FAILED tests/test_time_machine.py::test_move_to_datetime_change_tick_on - assert 31536000.0 > 31536000.0 >FAILED tests/test_time_machine.py::test_fixture_used_tick_true - assert 0.0 < 0.0 >================================================== 8 failed, 87 passed, 1 skipped in 12.01s =================================================== > * ERROR: dev-python/time-machine-2.13.0::gentoo failed (test phase): > * pytest failed with python3.11 > * > * Call stack: > * ebuild.sh, line 136: Called src_test > * environment, line 3866: Called distutils-r1_src_test > * environment, line 1919: Called _distutils-r1_run_foreach_impl 'python_test' > * environment, line 711: Called python_foreach_impl 'distutils-r1_run_phase' 'python_test' > * environment, line 3471: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' > * environment, line 3028: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' > * environment, line 3026: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test' > * environment, line 1143: Called distutils-r1_run_phase 'python_test' > * environment, line 1842: Called python_test > * environment, line 3753: Called distutils-r1_python_test > * environment, line 1786: Called epytest > * environment, line 2450: Called die > * The specific snippet of code: > * "${@}" || die -n "pytest failed with ${EPYTHON}"; > * > * If you need support, post the output of `emerge --info '=dev-python/time-machine-2.13.0::gentoo'`, > * the complete build log and the output of `emerge -pqv '=dev-python/time-machine-2.13.0::gentoo'`. > * The complete build log is located at '/var/tmp/portage/dev-python/time-machine-2.13.0/temp/build.log'. > * The ebuild environment file is located at '/var/tmp/portage/dev-python/time-machine-2.13.0/temp/environment'. > * Working directory: '/var/tmp/portage/dev-python/time-machine-2.13.0/work/time-machine-2.13.0' > * S: '/var/tmp/portage/dev-python/time-machine-2.13.0/work/time-machine-2.13.0'
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 912709
:
868301
|
868302
| 874380