hmake buildbottest 'TESTOPTS=-j2 --junit-xml test-results.xml ${BUILDBOT_TESTOPTS}' TESTPYTHONOPTS= TESTTIMEOUT=1200 h in dir /root/buildarea/3.x.angelico-debian-amd64/build (timeout 1800 secs) (maxTime 14400 secs) h watching logfiles {} h argv: [b'make', b'buildbottest', b'TESTOPTS=-j2 --junit-xml test-results.xml ${BUILDBOT_TESTOPTS}', b'TESTPYTHONOPTS=', b'TESTTIMEOUT=1200'] h environment: h INVOCATION_ID=eeaed4382d3340a0bfa7638640f57567 h JOURNAL_STREAM=8:15285 h LANG=en_AU.UTF-8 h LANGUAGE=en_AU:en h PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin h PWD=/root/buildarea/3.x.angelico-debian-amd64/build h SYSTEMD_EXEC_PID=520 h using PTY: False oThe necessary bits to build these optional modules were not found: o_dbm _tkinter _uuid o_zstd oTo find the necessary bits, look in configure.ac and config.log. o oChecked 114 modules (35 built-in, 74 shared, 1 n/a on linux-x86_64, 0 disabled, 4 missing, 0 failed on import) o./python -E ./Tools/build/generate-build-details.py `cat pybuilddir.txt`/build-details.json o./python -E -m test --slow-ci --timeout=1200 -j2 --junit-xml test-results.xml o+ ./python -u -W error -bb -E -m test --slow-ci --timeout=1200 -j2 --junit-xml test-results.xml --dont-add-python-opts o== CPython 3.15.0a0 (heads/main:6b77af257c2, Jun 5 2025, 09:09:58) [GCC 12.2.0] o== Linux-6.1.0-13-amd64-x86_64-with-glibc2.36 little-endian o== Python build: debug o== cwd: /root/buildarea/3.x.angelico-debian-amd64/build/build/test_python_worker_3818451æ o== CPU count: 2 o== encodings: locale=UTF-8 FS=utf-8 o== resources: all o oUsing random seed: 1829062542 o0:00:00 load avg: 1.69 Run 491 tests in parallel using 2 worker processes (timeout: 20 min, worker timeout: 25 min) o0:00:00 load avg: 1.69 [ 1/491] test_wmi skipped otest_wmi skipped -- No module named '_wmi' o0:00:00 load avg: 1.69 [ 2/491] test_opcodes passed o0:00:00 load avg: 1.69 [ 3/491] test_unary passed o0:00:00 load avg: 1.69 [ 4/491] test_bisect passed o0:00:00 load avg: 1.69 [ 5/491] test_metaclass passed o0:00:04 load avg: 1.69 [ 6/491] test___all__ passed o0:00:04 load avg: 1.72 [ 7/491] test_raise passed o0:00:05 load avg: 1.72 [ 8/491] test_warnings passed o0:00:05 load avg: 1.72 [ 9/491] test_flufl passed o0:00:09 load avg: 1.74 [ 10/491/1] test_importlib failed (1 failure) otest_failure (test.test_importlib.builtin.test_finder.Frozen_FindSpecTests.test_failure) ... ok otest_module (test.test_importlib.builtin.test_finder.Frozen_FindSpecTests.test_module) ... ok otest_failure (test.test_importlib.builtin.test_finder.Source_FindSpecTests.test_failure) ... ok otest_module (test.test_importlib.builtin.test_finder.Source_FindSpecTests.test_module) ... ok otest_get_code (test.test_importlib.builtin.test_loader.Frozen_InspectLoaderTests.test_get_code) ... ok otest_get_source (test.test_importlib.builtin.test_loader.Frozen_InspectLoaderTests.test_get_source) ... ok otest_is_package (test.test_importlib.builtin.test_loader.Frozen_InspectLoaderTests.test_is_package) ... ok otest_not_builtin (test.test_importlib.builtin.test_loader.Frozen_InspectLoaderTests.test_not_builtin) ... ok otest_already_imported (test.test_importlib.builtin.test_loader.Frozen_LoaderTests.test_already_imported) ... ok otest_module (test.test_importlib.builtin.test_loader.Frozen_LoaderTests.test_module) ... ok otest_module_reuse (test.test_importlib.builtin.test_loader.Frozen_LoaderTests.test_module_reuse) ... ok otest_unloadable (test.test_importlib.builtin.test_loader.Frozen_LoaderTests.test_unloadable) ... ok otest_get_code (test.test_importlib.builtin.test_loader.Source_InspectLoaderTests.test_get_code) ... ok otest_get_source (test.test_importlib.builtin.test_loader.Source_InspectLoaderTests.test_get_source) ... ok otest_is_package (test.test_importlib.builtin.test_loader.Source_InspectLoaderTests.test_is_package) ... ok otest_not_builtin (test.test_importlib.builtin.test_loader.Source_InspectLoaderTests.test_not_builtin) ... ok otest_already_imported (test.test_importlib.builtin.test_loader.Source_LoaderTests.test_already_imported) ... ok otest_module (test.test_importlib.builtin.test_loader.Source_LoaderTests.test_module) ... ok otest_module_reuse (test.test_importlib.builtin.test_loader.Source_LoaderTests.test_module_reuse) ... ok otest_unloadable (test.test_importlib.builtin.test_loader.Source_LoaderTests.test_unloadable) ... ok otest_case_insensitivity (test.test_importlib.extension.test_case_sensitivity.Frozen_ExtensionModuleCaseSensitivityTest.test_case_insensitivity) ... skipped 'requires a case-insensitive filesystem' otest_case_sensitive (test.test_importlib.extension.test_case_sensitivity.Frozen_ExtensionModuleCaseSensitivityTest.test_case_sensitive) ... skipped 'requires a case-insensitive filesystem' otest_case_insensitivity (test.test_importlib.extension.test_case_sensitivity.Source_ExtensionModuleCaseSensitivityTest.test_case_insensitivity) ... skipped 'requires a case-insensitive filesystem' otest_case_sensitive (test.test_importlib.extension.test_case_sensitivity.Source_ExtensionModuleCaseSensitivityTest.test_case_sensitive) ... skipped 'requires a case-insensitive filesystem' otest_failure (test.test_importlib.extension.test_finder.Frozen_FinderTests.test_failure) ... ok otest_module (test.test_importlib.extension.test_finder.Frozen_FinderTests.test_module) ... ok otest_failure (test.test_importlib.extension.test_finder.Source_FinderTests.test_failure) ... ok otest_module (test.test_importlib.extension.test_finder.Source_FinderTests.test_module) ... ok otest_equality (test.test_importlib.extension.test_loader.Frozen_LoaderTests.test_equality) ... ok otest_inequality (test.test_importlib.extension.test_loader.Frozen_LoaderTests.test_inequality) ... ok otest_is_package (test.test_importlib.extension.test_loader.Frozen_LoaderTests.test_is_package) ... ok otest_load_module_API (test.test_importlib.extension.test_loader.Frozen_LoaderTests.test_load_module_API) ... ok otest_module (test.test_importlib.extension.test_loader.Frozen_LoaderTests.test_module) ... ok otest_module_reuse (test.test_importlib.extension.test_loader.Frozen_LoaderTests.test_module_reuse) ... ok otest_unloadable (test.test_importlib.extension.test_loader.Frozen_LoaderTests.test_unloadable) ... ok otest_bad_modules (test.test_importlib.extension.test_loader.Frozen_MultiPhaseExtensionModuleTests.test_bad_modules) ... ok otest_functionality (test.test_importlib.extension.test_loader.Frozen_MultiPhaseExtensionModuleTests.test_functionality) ... ok otest_load_short_name (test.test_importlib.extension.test_loader.Frozen_MultiPhaseExtensionModuleTests.test_load_short_name) ... ok otest_load_submodule (test.test_importlib.extension.test_loader.Frozen_MultiPhaseExtensionModuleTests.test_load_submodule) ... ok otest_load_twice (test.test_importlib.extension.test_loader.Frozen_MultiPhaseExtensionModuleTests.test_load_twice) ... ok otest_module (test.test_importlib.extension.test_loader.Frozen_MultiPhaseExtensionModuleTests.test_module) ... ok otest_nonascii (test.test_importlib.extension.test_loader.Frozen_MultiPhaseExtensionModuleTests.test_nonascii) ... ok otest_reload (test.test_importlib.extension.test_loader.Frozen_MultiPhaseExtensionModuleTests.test_reload) ... ok otest_try_registration (test.test_importlib.extension.test_loader.Frozen_MultiPhaseExtensionModuleTests.test_try_registration) ... ok otest_unloadable (test.test_importlib.extension.test_loader.Frozen_MultiPhaseExtensionModuleTests.test_unloadable) ... ok otest_unloadable_nonascii (test.test_importlib.extension.test_loader.Frozen_MultiPhaseExtensionModuleTests.test_unloadable_nonascii) ... ok otest_module (test.test_importlib.extension.test_loader.Frozen_SinglePhaseExtensionModuleTests.test_module) ... ok otest_unloadable (test.test_importlib.extension.test_loader.Frozen_SinglePhaseExtensionModuleTests.test_unloadable) ... ok otest_unloadable_nonascii (test.test_importlib.extension.test_loader.Frozen_SinglePhaseExtensionModuleTests.test_unloadable_nonascii) ... ok otest_nonmodule_cases (test.test_importlib.extension.test_loader.NonModuleExtensionTests.test_nonmodule_cases) ... python: Python/generated_cases.c.h:1666: _PyEval_EvalFrameDefault: Assertion `WITHIN_STACK_BOUNDS()' failed. oFatal Python error: Aborted o oCurrent thread 0x00007fc8e4976740 [python] (most recent call first): o File "", line 310 in cache_from_source o File "", line 843 in get_code o File "", line 758 in exec_module o File "", line 938 in _load_unlocked o File "", line 1342 in _find_and_load_unlocked o File "", line 1371 in _find_and_load o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/support/__init__.py", line 10 in o File "", line 491 in _call_with_frames_removed o File "", line 762 in exec_module o File "", line 938 in _load_unlocked o File "", line 1342 in _find_and_load_unlocked o File "", line 1371 in _find_and_load o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_importlib/__init__.py", line 2 in o File "", line 491 in _call_with_frames_removed o File "", line 762 in exec_module o File "", line 938 in _load_unlocked o File "", line 1342 in _find_and_load_unlocked o File "", line 1371 in _find_and_load o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_importlib/extension/_test_nonmodule_cases.py", line 3 in o oCurrent thread's C stack trace (most recent call first): o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at _Py_DumpStack+0x33 [0x5595839432fb] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x308691 [0x559583956691] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x30890a [0x55958395690a] o Binary file "/lib/x86_64-linux-gnu/libc.so.6", at +0x3bfd0 [0x7fc8e49b4fd0] o Binary file "/lib/x86_64-linux-gnu/libc.so.6", at +0x8ad3c [0x7fc8e4a03d3c] o Binary file "/lib/x86_64-linux-gnu/libc.so.6", at gsignal+0x12 [0x7fc8e49b4f32] o Binary file "/lib/x86_64-linux-gnu/libc.so.6", at abort+0xd3 [0x7fc8e499f472] o Binary file "/lib/x86_64-linux-gnu/libc.so.6", at +0x26395 [0x7fc8e499f395] o Binary file "/lib/x86_64-linux-gnu/libc.so.6", at +0x34e32 [0x7fc8e49ade32] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at _PyEval_EvalFrameDefault+0x4cc4 [0x559583899f69] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x269fea [0x5595838b7fea] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x26a188 [0x5595838b8188] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x1187dc [0x5595837667dc] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x118b2b [0x559583766b2b] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x119747 [0x559583767747] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at PyObject_CallMethodObjArgs+0x101 [0x55958376786e] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x2acb8e [0x5595838fab8e] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at PyImport_ImportModuleLevelObject+0x1a3 [0x5595838fe4ae] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at _PyEval_ImportName+0xae [0x55958389429c] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at _PyEval_EvalFrameDefault+0x11ba7 [0x5595838a6e4c] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x269fea [0x5595838b7fea] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x26a188 [0x5595838b8188] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at PyEval_EvalCode+0xb6 [0x5595838b825d] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x23eac7 [0x55958388cac7] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x23ebd6 [0x55958388cbd6] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x16c6e1 [0x5595837ba6e1] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x11a0b8 [0x5595837680b8] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x11a3a8 [0x5595837683a8] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at PyObject_Call+0x20 [0x5595837683e0] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at _PyEval_EvalFrameDefault+0x741c [0x55958389c6c1] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x269fea [0x5595838b7fea] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x26a188 [0x5595838b8188] o oFAIL o oStdout: o o===== script _test_nonmodule_cases.py ====== o===== script _test_nonmodule_cases.py completed: exit code -6 ====== otest_equality (test.test_importlib.extension.test_loader.Source_LoaderTests.test_equality) ... ok otest_inequality (test.test_importlib.extension.test_loader.Source_LoaderTests.test_inequality) ... ok otest_is_package (test.test_importlib.extension.test_loader.Source_LoaderTests.test_is_package) ... ok otest_load_module_API (test.test_importlib.extension.test_loader.Source_LoaderTests.test_load_module_API) ... ok otest_module (test.test_importlib.extension.test_loader.Source_LoaderTests.test_module) ... ok otest_module_reuse (test.test_importlib.extension.test_loader.Source_LoaderTests.test_module_reuse) ... ok otest_unloadable (test.test_importlib.extension.test_loader.Source_LoaderTests.test_unloadable) ... ok otest_bad_modules (test.test_importlib.extension.test_loader.Source_MultiPhaseExtensionModuleTests.test_bad_modules) ... ok otest_functionality (test.test_importlib.extension.test_loader.Source_MultiPhaseExtensionModuleTests.test_functionality) ... ok otest_load_short_name (test.test_importlib.extension.test_loader.Source_MultiPhaseExtensionModuleTests.test_load_short_name) ... ok otest_load_submodule (test.test_importlib.extension.test_loader.Source_MultiPhaseExtensionModuleTests.test_load_submodule) ... ok otest_load_twice (test.test_importlib.extension.test_loader.Source_MultiPhaseExtensionModuleTests.test_load_twice) ... ok otest_module (test.test_importlib.extension.test_loader.Source_MultiPhaseExtensionModuleTests.test_module) ... ok otest_nonascii (test.test_importlib.extension.test_loader.Source_MultiPhaseExtensionModuleTests.test_nonascii) ... ok otest_reload (test.test_importlib.extension.test_loader.Source_MultiPhaseExtensionModuleTests.test_reload) ... ok otest_try_registration (test.test_importlib.extension.test_loader.Source_MultiPhaseExtensionModuleTests.test_try_registration) ... ok otest_unloadable (test.test_importlib.extension.test_loader.Source_MultiPhaseExtensionModuleTests.test_unloadable) ... ok otest_unloadable_nonascii (test.test_importlib.extension.test_loader.Source_MultiPhaseExtensionModuleTests.test_unloadable_nonascii) ... ok otest_module (test.test_importlib.extension.test_loader.Source_SinglePhaseExtensionModuleTests.test_module) ... ok otest_unloadable (test.test_importlib.extension.test_loader.Source_SinglePhaseExtensionModuleTests.test_unloadable) ... ok otest_unloadable_nonascii (test.test_importlib.extension.test_loader.Source_SinglePhaseExtensionModuleTests.test_unloadable_nonascii) ... ok otest_success (test.test_importlib.extension.test_path_hook.Frozen_PathHookTests.test_success) ... ok otest_success (test.test_importlib.extension.test_path_hook.Source_PathHookTests.test_success) ... ok otest_failure (test.test_importlib.frozen.test_finder.Frozen_FindSpecTests.test_failure) ... ok otest_module (test.test_importlib.frozen.test_finder.Frozen_FindSpecTests.test_module) ... ok otest_not_using_frozen (test.test_importlib.frozen.test_finder.Frozen_FindSpecTests.test_not_using_frozen) ... ok otest_package (test.test_importlib.frozen.test_finder.Frozen_FindSpecTests.test_package) ... ok otest_path_ignored (test.test_importlib.frozen.test_finder.Frozen_FindSpecTests.test_path_ignored) ... ok otest_target_ignored (test.test_importlib.frozen.test_finder.Frozen_FindSpecTests.test_target_ignored) ... ok otest_failure (test.test_importlib.frozen.test_finder.Source_FindSpecTests.test_failure) ... ok otest_module (test.test_importlib.frozen.test_finder.Source_FindSpecTests.test_module) ... ok otest_not_using_frozen (test.test_importlib.frozen.test_finder.Source_FindSpecTests.test_not_using_frozen) ... ok otest_package (test.test_importlib.frozen.test_finder.Source_FindSpecTests.test_package) ... ok otest_path_ignored (test.test_importlib.frozen.test_finder.Source_FindSpecTests.test_path_ignored) ... ok otest_target_ignored (test.test_importlib.frozen.test_finder.Source_FindSpecTests.test_target_ignored) ... ok otest_lacking_parent (test.test_importlib.frozen.test_loader.Frozen_ExecModuleTests.test_lacking_parent) ... ok otest_module (test.test_importlib.frozen.test_loader.Frozen_ExecModuleTests.test_module) ... ok otest_module_repr_indirect_through_spec (test.test_importlib.frozen.test_loader.Frozen_ExecModuleTests.test_module_repr_indirect_through_spec) ... ok otest_package (test.test_importlib.frozen.test_loader.Frozen_ExecModuleTests.test_package) ... ok otest_unloadable (test.test_importlib.frozen.test_loader.Frozen_ExecModuleTests.test_unloadable) ... ok otest_failure (test.test_importlib.frozen.test_loader.Frozen_InspectLoaderTests.test_failure) ... ok otest_get_code (test.test_importlib.frozen.test_loader.Frozen_InspectLoaderTests.test_get_code) ... ok otest_get_source (test.test_importlib.frozen.test_loader.Frozen_InspectLoaderTests.test_get_source) ... ok otest_is_package (test.test_importlib.frozen.test_loader.Frozen_InspectLoaderTests.test_is_package) ... ok otest_lacking_parent (test.test_importlib.frozen.test_loader.Source_ExecModuleTests.test_lacking_parent) ... ok otest_module (test.test_importlib.frozen.test_loader.Source_ExecModuleTests.test_module) ... ok otest_module_repr_indirect_through_spec (test.test_importlib.frozen.test_loader.Source_ExecModuleTests.test_module_repr_indirect_through_spec) ... ok otest_package (test.test_importlib.frozen.test_loader.Source_ExecModuleTests.test_package) ... ok otest_unloadable (test.test_importlib.frozen.test_loader.Source_ExecModuleTests.test_unloadable) ... ok otest_failure (test.test_importlib.frozen.test_loader.Source_InspectLoaderTests.test_failure) ... ok otest_get_code (test.test_importlib.frozen.test_loader.Source_InspectLoaderTests.test_get_code) ... ok otest_get_source (test.test_importlib.frozen.test_loader.Source_InspectLoaderTests.test_get_source) ... ok otest_is_package (test.test_importlib.frozen.test_loader.Source_InspectLoaderTests.test_is_package) ... ok otest___loader__ (test.test_importlib.import_.test___loader__.Frozen_SpecLoaderAttributeTests.test___loader__) ... ok otest___loader__ (test.test_importlib.import_.test___loader__.Source_SpecLoaderAttributeTests.test___loader__) ... ok otest_None_as___package__ (test.test_importlib.import_.test___package__.Frozen_Using__package__PEP451.test_None_as___package__) ... ok otest_bad__package__ (test.test_importlib.import_.test___package__.Frozen_Using__package__PEP451.test_bad__package__) ... ok otest_bunk__package__ (test.test_importlib.import_.test___package__.Frozen_Using__package__PEP451.test_bunk__package__) ... ok otest_spec_fallback (test.test_importlib.import_.test___package__.Frozen_Using__package__PEP451.test_spec_fallback) ... ok otest_using___name__ (test.test_importlib.import_.test___package__.Frozen_Using__package__PEP451.test_using___name__) ... ok otest_using___package__ (test.test_importlib.import_.test___package__.Frozen_Using__package__PEP451.test_using___package__) ... ok otest_warn_when_package_and_spec_disagree (test.test_importlib.import_.test___package__.Frozen_Using__package__PEP451.test_warn_when_package_and_spec_disagree) ... ok otest_warn_when_using___name__ (test.test_importlib.import_.test___package__.Frozen_Using__package__PEP451.test_warn_when_using___name__) ... ok otest_package (test.test_importlib.import_.test___package__.Setting__package__PEP451.test_package) ... ok otest_submodule (test.test_importlib.import_.test___package__.Setting__package__PEP451.test_submodule) ... ok otest_top_level (test.test_importlib.import_.test___package__.Setting__package__PEP451.test_top_level) ... ok otest_None_as___package__ (test.test_importlib.import_.test___package__.Source_Using__package__PEP451.test_None_as___package__) ... ok otest_bad__package__ (test.test_importlib.import_.test___package__.Source_Using__package__PEP451.test_bad__package__) ... ok otest_bunk__package__ (test.test_importlib.import_.test___package__.Source_Using__package__PEP451.test_bunk__package__) ... ok otest_spec_fallback (test.test_importlib.import_.test___package__.Source_Using__package__PEP451.test_spec_fallback) ... ok otest_using___name__ (test.test_importlib.import_.test___package__.Source_Using__package__PEP451.test_using___name__) ... ok otest_using___package__ (test.test_importlib.import_.test___package__.Source_Using__package__PEP451.test_using___package__) ... ok otest_warn_when_package_and_spec_disagree (test.test_importlib.import_.test___package__.Source_Using__package__PEP451.test_warn_when_package_and_spec_disagree) ... ok otest_warn_when_using___name__ (test.test_importlib.import_.test___package__.Source_Using__package__PEP451.test_warn_when_using___name__) ... ok otest_blocked_fromlist (test.test_importlib.import_.test_api.Frozen_OldAPITests.test_blocked_fromlist) ... ok otest_fromlist_load_error_propagates (test.test_importlib.import_.test_api.Frozen_OldAPITests.test_fromlist_load_error_propagates) ... ok otest_name_requires_rparition (test.test_importlib.import_.test_api.Frozen_OldAPITests.test_name_requires_rparition) ... ok otest_negative_level (test.test_importlib.import_.test_api.Frozen_OldAPITests.test_negative_level) ... ok otest_nonexistent_fromlist_entry (test.test_importlib.import_.test_api.Frozen_OldAPITests.test_nonexistent_fromlist_entry) ... ok otest_raises_ModuleNotFoundError (test.test_importlib.import_.test_api.Frozen_OldAPITests.test_raises_ModuleNotFoundError) ... ok otest_blocked_fromlist (test.test_importlib.import_.test_api.Frozen_SpecAPITests.test_blocked_fromlist) ... ok otest_fromlist_load_error_propagates (test.test_importlib.import_.test_api.Frozen_SpecAPITests.test_fromlist_load_error_propagates) ... ok otest_name_requires_rparition (test.test_importlib.import_.test_api.Frozen_SpecAPITests.test_name_requires_rparition) ... ok otest_negative_level (test.test_importlib.import_.test_api.Frozen_SpecAPITests.test_negative_level) ... ok otest_nonexistent_fromlist_entry (test.test_importlib.import_.test_api.Frozen_SpecAPITests.test_nonexistent_fromlist_entry) ... ok otest_raises_ModuleNotFoundError (test.test_importlib.import_.test_api.Frozen_SpecAPITests.test_raises_ModuleNotFoundError) ... ok otest_blocked_fromlist (test.test_importlib.import_.test_api.Source_OldAPITests.test_blocked_fromlist) ... ok otest_fromlist_load_error_propagates (test.test_importlib.import_.test_api.Source_OldAPITests.test_fromlist_load_error_propagates) ... ok otest_name_requires_rparition (test.test_importlib.import_.test_api.Source_OldAPITests.test_name_requires_rparition) ... ok otest_negative_level (test.test_importlib.import_.test_api.Source_OldAPITests.test_negative_level) ... ok otest_nonexistent_fromlist_entry (test.test_importlib.import_.test_api.Source_OldAPITests.test_nonexistent_fromlist_entry) ... ok otest_raises_ModuleNotFoundError (test.test_importlib.import_.test_api.Source_OldAPITests.test_raises_ModuleNotFoundError) ... ok otest_blocked_fromlist (test.test_importlib.import_.test_api.Source_SpecAPITests.test_blocked_fromlist) ... ok otest_fromlist_load_error_propagates (test.test_importlib.import_.test_api.Source_SpecAPITests.test_fromlist_load_error_propagates) ... ok otest_name_requires_rparition (test.test_importlib.import_.test_api.Source_SpecAPITests.test_name_requires_rparition) ... ok otest_negative_level (test.test_importlib.import_.test_api.Source_SpecAPITests.test_negative_level) ... ok otest_nonexistent_fromlist_entry (test.test_importlib.import_.test_api.Source_SpecAPITests.test_nonexistent_fromlist_entry) ... ok otest_raises_ModuleNotFoundError (test.test_importlib.import_.test_api.Source_SpecAPITests.test_raises_ModuleNotFoundError) ... ok otest_None_in_cache (test.test_importlib.import_.test_caching.Frozen_UseCache.test_None_in_cache) ... ok otest_using_cache (test.test_importlib.import_.test_caching.Frozen_UseCache.test_using_cache) ... ok otest_None_in_cache (test.test_importlib.import_.test_caching.ImportlibUseCache.test_None_in_cache) ... ok otest_using_cache (test.test_importlib.import_.test_caching.ImportlibUseCache.test_using_cache) ... ok otest_using_cache_after_loader (test.test_importlib.import_.test_caching.ImportlibUseCache.test_using_cache_after_loader) ... ok otest_using_cache_for_assigning_to_attribute (test.test_importlib.import_.test_caching.ImportlibUseCache.test_using_cache_for_assigning_to_attribute) ... ok otest_using_cache_for_fromlist (test.test_importlib.import_.test_caching.ImportlibUseCache.test_using_cache_for_fromlist) ... ok otest_None_in_cache (test.test_importlib.import_.test_caching.Source_UseCache.test_None_in_cache) ... ok otest_using_cache (test.test_importlib.import_.test_caching.Source_UseCache.test_using_cache) ... ok otest_empty_string (test.test_importlib.import_.test_fromlist.Frozen_HandlingFromlist.test_empty_string) ... ok otest_fromlist_as_tuple (test.test_importlib.import_.test_fromlist.Frozen_HandlingFromlist.test_fromlist_as_tuple) ... ok otest_invalid_type (test.test_importlib.import_.test_fromlist.Frozen_HandlingFromlist.test_invalid_type) ... ok otest_invalid_type_in_all (test.test_importlib.import_.test_fromlist.Frozen_HandlingFromlist.test_invalid_type_in_all) ... ok otest_module_from_package (test.test_importlib.import_.test_fromlist.Frozen_HandlingFromlist.test_module_from_package) ... ok otest_module_from_package_triggers_ModuleNotFoundError (test.test_importlib.import_.test_fromlist.Frozen_HandlingFromlist.test_module_from_package_triggers_ModuleNotFoundError) ... ok otest_nonexistent_from_package (test.test_importlib.import_.test_fromlist.Frozen_HandlingFromlist.test_nonexistent_from_package) ... ok otest_nonexistent_in_all (test.test_importlib.import_.test_fromlist.Frozen_HandlingFromlist.test_nonexistent_in_all) ... ok otest_nonexistent_object (test.test_importlib.import_.test_fromlist.Frozen_HandlingFromlist.test_nonexistent_object) ... ok otest_object (test.test_importlib.import_.test_fromlist.Frozen_HandlingFromlist.test_object) ... ok otest_star_in_all (test.test_importlib.import_.test_fromlist.Frozen_HandlingFromlist.test_star_in_all) ... ok otest_star_with_others (test.test_importlib.import_.test_fromlist.Frozen_HandlingFromlist.test_star_with_others) ... ok otest_using_star (test.test_importlib.import_.test_fromlist.Frozen_HandlingFromlist.test_using_star) ... ok otest_return_from_from_import (test.test_importlib.import_.test_fromlist.Frozen_ReturnValue.test_return_from_from_import) ... ok otest_return_from_import (test.test_importlib.import_.test_fromlist.Frozen_ReturnValue.test_return_from_import) ... ok otest_empty_string (test.test_importlib.import_.test_fromlist.Source_HandlingFromlist.test_empty_string) ... ok otest_fromlist_as_tuple (test.test_importlib.import_.test_fromlist.Source_HandlingFromlist.test_fromlist_as_tuple) ... ok otest_invalid_type (test.test_importlib.import_.test_fromlist.Source_HandlingFromlist.test_invalid_type) ... ok otest_invalid_type_in_all (test.test_importlib.import_.test_fromlist.Source_HandlingFromlist.test_invalid_type_in_all) ... ok otest_module_from_package (test.test_importlib.import_.test_fromlist.Source_HandlingFromlist.test_module_from_package) ... ok otest_module_from_package_triggers_ModuleNotFoundError (test.test_importlib.import_.test_fromlist.Source_HandlingFromlist.test_module_from_package_triggers_ModuleNotFoundError) ... ok otest_nonexistent_from_package (test.test_importlib.import_.test_fromlist.Source_HandlingFromlist.test_nonexistent_from_package) ... ok otest_nonexistent_in_all (test.test_importlib.import_.test_fromlist.Source_HandlingFromlist.test_nonexistent_in_all) ... ok otest_nonexistent_object (test.test_importlib.import_.test_fromlist.Source_HandlingFromlist.test_nonexistent_object) ... ok otest_object (test.test_importlib.import_.test_fromlist.Source_HandlingFromlist.test_object) ... ok otest_star_in_all (test.test_importlib.import_.test_fromlist.Source_HandlingFromlist.test_star_in_all) ... ok otest_star_with_others (test.test_importlib.import_.test_fromlist.Source_HandlingFromlist.test_star_with_others) ... ok otest_using_star (test.test_importlib.import_.test_fromlist.Source_HandlingFromlist.test_using_star) ... ok otest_return_from_from_import (test.test_importlib.import_.test_fromlist.Source_ReturnValue.test_return_from_from_import) ... ok otest_return_from_import (test.test_importlib.import_.test_fromlist.Source_ReturnValue.test_return_from_import) ... ok otest_no_loader_but_spec (test.test_importlib.import_.test_helpers.Frozen_FixUpModuleTests.test_no_loader_but_spec) ... ok otest_no_loader_no_spec_but_source (test.test_importlib.import_.test_helpers.Frozen_FixUpModuleTests.test_no_loader_no_spec_but_source) ... ok otest_no_loader_no_spec_but_sourceless (test.test_importlib.import_.test_helpers.Frozen_FixUpModuleTests.test_no_loader_no_spec_but_sourceless) ... ok otest_no_loader_but_spec (test.test_importlib.import_.test_helpers.Source_FixUpModuleTests.test_no_loader_but_spec) ... ok otest_no_loader_no_spec_but_source (test.test_importlib.import_.test_helpers.Source_FixUpModuleTests.test_no_loader_no_spec_but_source) ... ok otest_no_loader_no_spec_but_sourceless (test.test_importlib.import_.test_helpers.Source_FixUpModuleTests.test_no_loader_no_spec_but_sourceless) ... ok otest_gh86298_loader_and_spec_loader_disagree (test.test_importlib.import_.test_helpers.TestBlessMyLoader.test_gh86298_loader_and_spec_loader_disagree) ... ok otest_gh86298_loader_is_none_and_no_spec (test.test_importlib.import_.test_helpers.TestBlessMyLoader.test_gh86298_loader_is_none_and_no_spec) ... ok otest_gh86298_loader_is_none_and_spec_is_none (test.test_importlib.import_.test_helpers.TestBlessMyLoader.test_gh86298_loader_is_none_and_spec_is_none) ... ok otest_gh86298_loader_is_none_and_spec_loader_is_none (test.test_importlib.import_.test_helpers.TestBlessMyLoader.test_gh86298_loader_is_none_and_spec_loader_is_none) ... ok otest_gh86298_no_loader_and_no_spec (test.test_importlib.import_.test_helpers.TestBlessMyLoader.test_gh86298_no_loader_and_no_spec) ... ok otest_gh86298_no_loader_and_no_spec_loader (test.test_importlib.import_.test_helpers.TestBlessMyLoader.test_gh86298_no_loader_and_no_spec_loader) ... ok otest_gh86298_no_loader_and_spec_is_none (test.test_importlib.import_.test_helpers.TestBlessMyLoader.test_gh86298_no_loader_and_spec_is_none) ... ok otest_gh86298_no_loader_with_spec_loader_okay (test.test_importlib.import_.test_helpers.TestBlessMyLoader.test_gh86298_no_loader_with_spec_loader_okay) ... ok otest_gh86298_no_spec (test.test_importlib.import_.test_helpers.TestBlessMyLoader.test_gh86298_no_spec) ... ok otest_gh86298_no_spec_loader (test.test_importlib.import_.test_helpers.TestBlessMyLoader.test_gh86298_no_spec_loader) ... ok otest_gh86298_spec_is_none (test.test_importlib.import_.test_helpers.TestBlessMyLoader.test_gh86298_spec_is_none) ... ok otest_no_path (test.test_importlib.import_.test_meta_path.Frozen_CallSignaturePEP451.test_no_path) ... ok otest_with_path (test.test_importlib.import_.test_meta_path.Frozen_CallSignaturePEP451.test_with_path) ... ok otest_continuing (test.test_importlib.import_.test_meta_path.Frozen_CallingOrder.test_continuing) ... ok otest_empty (test.test_importlib.import_.test_meta_path.Frozen_CallingOrder.test_empty) ... ok otest_first_called (test.test_importlib.import_.test_meta_path.Frozen_CallingOrder.test_first_called) ... ok otest_no_path (test.test_importlib.import_.test_meta_path.Source_CallSignaturePEP451.test_no_path) ... ok otest_with_path (test.test_importlib.import_.test_meta_path.Source_CallSignaturePEP451.test_with_path) ... ok otest_continuing (test.test_importlib.import_.test_meta_path.Source_CallingOrder.test_continuing) ... ok otest_empty (test.test_importlib.import_.test_meta_path.Source_CallingOrder.test_empty) ... ok otest_first_called (test.test_importlib.import_.test_meta_path.Source_CallingOrder.test_first_called) ... ok otest_bad_parent (test.test_importlib.import_.test_packages.Frozen_ParentModuleTests.test_bad_parent) ... ok otest_import_parent (test.test_importlib.import_.test_packages.Frozen_ParentModuleTests.test_import_parent) ... ok otest_module_not_package (test.test_importlib.import_.test_packages.Frozen_ParentModuleTests.test_module_not_package) ... ok otest_module_not_package_but_side_effects (test.test_importlib.import_.test_packages.Frozen_ParentModuleTests.test_module_not_package_but_side_effects) ... ok otest_raising_parent_after_double_relative_importing_child (test.test_importlib.import_.test_packages.Frozen_ParentModuleTests.test_raising_parent_after_double_relative_importing_child) ... ok otest_raising_parent_after_importing_child (test.test_importlib.import_.test_packages.Frozen_ParentModuleTests.test_raising_parent_after_importing_child) ... ok otest_raising_parent_after_relative_importing_child (test.test_importlib.import_.test_packages.Frozen_ParentModuleTests.test_raising_parent_after_relative_importing_child) ... ok otest_bad_parent (test.test_importlib.import_.test_packages.Source_ParentModuleTests.test_bad_parent) ... ok otest_import_parent (test.test_importlib.import_.test_packages.Source_ParentModuleTests.test_import_parent) ... ok otest_module_not_package (test.test_importlib.import_.test_packages.Source_ParentModuleTests.test_module_not_package) ... ok otest_module_not_package_but_side_effects (test.test_importlib.import_.test_packages.Source_ParentModuleTests.test_module_not_package_but_side_effects) ... ok otest_raising_parent_after_double_relative_importing_child (test.test_importlib.import_.test_packages.Source_ParentModuleTests.test_raising_parent_after_double_relative_importing_child) ... ok otest_raising_parent_after_importing_child (test.test_importlib.import_.test_packages.Source_ParentModuleTests.test_raising_parent_after_importing_child) ... ok otest_raising_parent_after_relative_importing_child (test.test_importlib.import_.test_packages.Source_ParentModuleTests.test_raising_parent_after_relative_importing_child) ... ok otest_None_on_sys_path (test.test_importlib.import_.test_path.Frozen_FindModuleTests.test_None_on_sys_path) ... ok otest_deleted_cwd (test.test_importlib.import_.test_path.Frozen_FindModuleTests.test_deleted_cwd) ... ok otest_empty_list (test.test_importlib.import_.test_path.Frozen_FindModuleTests.test_empty_list) ... ok otest_empty_path_hooks (test.test_importlib.import_.test_path.Frozen_FindModuleTests.test_empty_path_hooks) ... ok otest_failure (test.test_importlib.import_.test_path.Frozen_FindModuleTests.test_failure) ... ok otest_finder_with_find_spec (test.test_importlib.import_.test_path.Frozen_FindModuleTests.test_finder_with_find_spec) ... ok otest_invalidate_caches_clear_out_None (test.test_importlib.import_.test_path.Frozen_FindModuleTests.test_invalidate_caches_clear_out_None) ... ok otest_invalidate_caches_clear_out_relative_path (test.test_importlib.import_.test_path.Frozen_FindModuleTests.test_invalidate_caches_clear_out_relative_path) ... ok otest_invalidate_caches_finders (test.test_importlib.import_.test_path.Frozen_FindModuleTests.test_invalidate_caches_finders) ... ok otest_path (test.test_importlib.import_.test_path.Frozen_FindModuleTests.test_path) ... ok otest_path_hooks (test.test_importlib.import_.test_path.Frozen_FindModuleTests.test_path_hooks) ... ok otest_path_importer_cache_empty_string (test.test_importlib.import_.test_path.Frozen_FindModuleTests.test_path_importer_cache_empty_string) ... ok otest_permission_error_cwd (test.test_importlib.import_.test_path.Frozen_FindModuleTests.test_permission_error_cwd) ... ok otest_sys_path (test.test_importlib.import_.test_path.Frozen_FindModuleTests.test_sys_path) ... ok otest_None_on_sys_path (test.test_importlib.import_.test_path.Frozen_FindSpecTests.test_None_on_sys_path) ... ok otest_deleted_cwd (test.test_importlib.import_.test_path.Frozen_FindSpecTests.test_deleted_cwd) ... ok otest_empty_list (test.test_importlib.import_.test_path.Frozen_FindSpecTests.test_empty_list) ... ok otest_empty_path_hooks (test.test_importlib.import_.test_path.Frozen_FindSpecTests.test_empty_path_hooks) ... ok otest_failure (test.test_importlib.import_.test_path.Frozen_FindSpecTests.test_failure) ... ok otest_finder_with_find_spec (test.test_importlib.import_.test_path.Frozen_FindSpecTests.test_finder_with_find_spec) ... ok otest_invalidate_caches_clear_out_None (test.test_importlib.import_.test_path.Frozen_FindSpecTests.test_invalidate_caches_clear_out_None) ... ok otest_invalidate_caches_clear_out_relative_path (test.test_importlib.import_.test_path.Frozen_FindSpecTests.test_invalidate_caches_clear_out_relative_path) ... ok otest_invalidate_caches_finders (test.test_importlib.import_.test_path.Frozen_FindSpecTests.test_invalidate_caches_finders) ... ok otest_path (test.test_importlib.import_.test_path.Frozen_FindSpecTests.test_path) ... ok otest_path_hooks (test.test_importlib.import_.test_path.Frozen_FindSpecTests.test_path_hooks) ... ok otest_path_importer_cache_empty_string (test.test_importlib.import_.test_path.Frozen_FindSpecTests.test_path_importer_cache_empty_string) ... ok otest_permission_error_cwd (test.test_importlib.import_.test_path.Frozen_FindSpecTests.test_permission_error_cwd) ... ok otest_sys_path (test.test_importlib.import_.test_path.Frozen_FindSpecTests.test_sys_path) ... ok otest_finder_with_failing_find_spec (test.test_importlib.import_.test_path.Frozen_PathEntryFinderTests.test_finder_with_failing_find_spec) ... ok otest_None_on_sys_path (test.test_importlib.import_.test_path.Source_FindModuleTests.test_None_on_sys_path) ... ok otest_deleted_cwd (test.test_importlib.import_.test_path.Source_FindModuleTests.test_deleted_cwd) ... ok otest_empty_list (test.test_importlib.import_.test_path.Source_FindModuleTests.test_empty_list) ... ok otest_empty_path_hooks (test.test_importlib.import_.test_path.Source_FindModuleTests.test_empty_path_hooks) ... ok otest_failure (test.test_importlib.import_.test_path.Source_FindModuleTests.test_failure) ... ok otest_finder_with_find_spec (test.test_importlib.import_.test_path.Source_FindModuleTests.test_finder_with_find_spec) ... ok otest_invalidate_caches_clear_out_None (test.test_importlib.import_.test_path.Source_FindModuleTests.test_invalidate_caches_clear_out_None) ... ok otest_invalidate_caches_clear_out_relative_path (test.test_importlib.import_.test_path.Source_FindModuleTests.test_invalidate_caches_clear_out_relative_path) ... ok otest_invalidate_caches_finders (test.test_importlib.import_.test_path.Source_FindModuleTests.test_invalidate_caches_finders) ... ok otest_path (test.test_importlib.import_.test_path.Source_FindModuleTests.test_path) ... ok otest_path_hooks (test.test_importlib.import_.test_path.Source_FindModuleTests.test_path_hooks) ... ok otest_path_importer_cache_empty_string (test.test_importlib.import_.test_path.Source_FindModuleTests.test_path_importer_cache_empty_string) ... ok otest_permission_error_cwd (test.test_importlib.import_.test_path.Source_FindModuleTests.test_permission_error_cwd) ... ok otest_sys_path (test.test_importlib.import_.test_path.Source_FindModuleTests.test_sys_path) ... ok otest_None_on_sys_path (test.test_importlib.import_.test_path.Source_FindSpecTests.test_None_on_sys_path) ... ok otest_deleted_cwd (test.test_importlib.import_.test_path.Source_FindSpecTests.test_deleted_cwd) ... ok otest_empty_list (test.test_importlib.import_.test_path.Source_FindSpecTests.test_empty_list) ... ok otest_empty_path_hooks (test.test_importlib.import_.test_path.Source_FindSpecTests.test_empty_path_hooks) ... ok otest_failure (test.test_importlib.import_.test_path.Source_FindSpecTests.test_failure) ... ok otest_finder_with_find_spec (test.test_importlib.import_.test_path.Source_FindSpecTests.test_finder_with_find_spec) ... ok otest_invalidate_caches_clear_out_None (test.test_importlib.import_.test_path.Source_FindSpecTests.test_invalidate_caches_clear_out_None) ... ok otest_invalidate_caches_clear_out_relative_path (test.test_importlib.import_.test_path.Source_FindSpecTests.test_invalidate_caches_clear_out_relative_path) ... ok otest_invalidate_caches_finders (test.test_importlib.import_.test_path.Source_FindSpecTests.test_invalidate_caches_finders) ... ok otest_path (test.test_importlib.import_.test_path.Source_FindSpecTests.test_path) ... ok otest_path_hooks (test.test_importlib.import_.test_path.Source_FindSpecTests.test_path_hooks) ... ok otest_path_importer_cache_empty_string (test.test_importlib.import_.test_path.Source_FindSpecTests.test_path_importer_cache_empty_string) ... ok otest_permission_error_cwd (test.test_importlib.import_.test_path.Source_FindSpecTests.test_permission_error_cwd) ... ok otest_sys_path (test.test_importlib.import_.test_path.Source_FindSpecTests.test_sys_path) ... ok otest_finder_with_failing_find_spec (test.test_importlib.import_.test_path.Source_PathEntryFinderTests.test_finder_with_failing_find_spec) ... ok otest_attr_from_module (test.test_importlib.import_.test_relative_imports.Frozen_RelativeImports.test_attr_from_module) ... ok otest_deep_import (test.test_importlib.import_.test_relative_imports.Frozen_RelativeImports.test_deep_import) ... ok otest_empty_name_w_level_0 (test.test_importlib.import_.test_relative_imports.Frozen_RelativeImports.test_empty_name_w_level_0) ... ok otest_import_from_different_package (test.test_importlib.import_.test_relative_imports.Frozen_RelativeImports.test_import_from_different_package) ... ok otest_import_relative_import_no_fromlist (test.test_importlib.import_.test_relative_imports.Frozen_RelativeImports.test_import_relative_import_no_fromlist) ... ok otest_malicious_relative_import (test.test_importlib.import_.test_relative_imports.Frozen_RelativeImports.test_malicious_relative_import) ... ok otest_module_from_module (test.test_importlib.import_.test_relative_imports.Frozen_RelativeImports.test_module_from_module) ... ok otest_module_to_package (test.test_importlib.import_.test_relative_imports.Frozen_RelativeImports.test_module_to_package) ... ok otest_package_to_module (test.test_importlib.import_.test_relative_imports.Frozen_RelativeImports.test_package_to_module) ... ok otest_package_to_package (test.test_importlib.import_.test_relative_imports.Frozen_RelativeImports.test_package_to_package) ... ok otest_relative_import_no_globals (test.test_importlib.import_.test_relative_imports.Frozen_RelativeImports.test_relative_import_no_globals) ... ok otest_relative_import_no_package (test.test_importlib.import_.test_relative_imports.Frozen_RelativeImports.test_relative_import_no_package) ... ok otest_relative_import_no_package_exists_absolute (test.test_importlib.import_.test_relative_imports.Frozen_RelativeImports.test_relative_import_no_package_exists_absolute) ... ok otest_too_high_from_module (test.test_importlib.import_.test_relative_imports.Frozen_RelativeImports.test_too_high_from_module) ... ok otest_too_high_from_package (test.test_importlib.import_.test_relative_imports.Frozen_RelativeImports.test_too_high_from_package) ... ok otest_attr_from_module (test.test_importlib.import_.test_relative_imports.Source_RelativeImports.test_attr_from_module) ... ok otest_deep_import (test.test_importlib.import_.test_relative_imports.Source_RelativeImports.test_deep_import) ... ok otest_empty_name_w_level_0 (test.test_importlib.import_.test_relative_imports.Source_RelativeImports.test_empty_name_w_level_0) ... ok otest_import_from_different_package (test.test_importlib.import_.test_relative_imports.Source_RelativeImports.test_import_from_different_package) ... ok otest_import_relative_import_no_fromlist (test.test_importlib.import_.test_relative_imports.Source_RelativeImports.test_import_relative_import_no_fromlist) ... ok otest_malicious_relative_import (test.test_importlib.import_.test_relative_imports.Source_RelativeImports.test_malicious_relative_import) ... ok otest_module_from_module (test.test_importlib.import_.test_relative_imports.Source_RelativeImports.test_module_from_module) ... ok otest_module_to_package (test.test_importlib.import_.test_relative_imports.Source_RelativeImports.test_module_to_package) ... ok otest_package_to_module (test.test_importlib.import_.test_relative_imports.Source_RelativeImports.test_package_to_module) ... ok otest_package_to_package (test.test_importlib.import_.test_relative_imports.Source_RelativeImports.test_package_to_package) ... ok otest_relative_import_no_globals (test.test_importlib.import_.test_relative_imports.Source_RelativeImports.test_relative_import_no_globals) ... ok otest_relative_import_no_package (test.test_importlib.import_.test_relative_imports.Source_RelativeImports.test_relative_import_no_package) ... ok otest_relative_import_no_package_exists_absolute (test.test_importlib.import_.test_relative_imports.Source_RelativeImports.test_relative_import_no_package_exists_absolute) ... ok otest_too_high_from_module (test.test_importlib.import_.test_relative_imports.Source_RelativeImports.test_too_high_from_module) ... ok otest_too_high_from_package (test.test_importlib.import_.test_relative_imports.Source_RelativeImports.test_too_high_from_package) ... ok otest_as_json (test.test_importlib.metadata.test_api.APITests.test_as_json) ... ok otest_as_json_egg_info (test.test_importlib.metadata.test_api.APITests.test_as_json_egg_info) ... ok otest_as_json_odd_case (test.test_importlib.metadata.test_api.APITests.test_as_json_odd_case) ... ok otest_entry_points (test.test_importlib.metadata.test_api.APITests.test_entry_points) ... ok otest_entry_points_allows_no_attributes (test.test_importlib.metadata.test_api.APITests.test_entry_points_allows_no_attributes) ... ok otest_entry_points_distribution (test.test_importlib.metadata.test_api.APITests.test_entry_points_distribution) ... ok otest_entry_points_missing_group (test.test_importlib.metadata.test_api.APITests.test_entry_points_missing_group) ... ok otest_entry_points_missing_name (test.test_importlib.metadata.test_api.APITests.test_entry_points_missing_name) ... ok otest_entry_points_unique_packages_normalized (test.test_importlib.metadata.test_api.APITests.test_entry_points_unique_packages_normalized) oEntry points should only be exposed for the first package ... ok otest_file_hash_repr (test.test_importlib.metadata.test_api.APITests.test_file_hash_repr) ... ok otest_files_dist_info (test.test_importlib.metadata.test_api.APITests.test_files_dist_info) ... ok otest_files_egg_info (test.test_importlib.metadata.test_api.APITests.test_files_egg_info) ... ok otest_for_name_does_not_exist (test.test_importlib.metadata.test_api.APITests.test_for_name_does_not_exist) ... ok otest_for_top_level (test.test_importlib.metadata.test_api.APITests.test_for_top_level) ... ok otest_get_key (test.test_importlib.metadata.test_api.APITests.test_get_key) oGetting a key gets the key. ... ok otest_get_missing_key (test.test_importlib.metadata.test_api.APITests.test_get_missing_key) oRequesting a missing key will return None. ... ok otest_metadata_for_this_package (test.test_importlib.metadata.test_api.APITests.test_metadata_for_this_package) ... ok otest_missing_key_legacy (test.test_importlib.metadata.test_api.APITests.test_missing_key_legacy) oRequesting a missing key will still return None, but warn. ... ok otest_more_complex_deps_requires_text (test.test_importlib.metadata.test_api.APITests.test_more_complex_deps_requires_text) ... ok otest_name_normalization (test.test_importlib.metadata.test_api.APITests.test_name_normalization) ... ok otest_prefix_not_matched (test.test_importlib.metadata.test_api.APITests.test_prefix_not_matched) ... ok otest_read_text (test.test_importlib.metadata.test_api.APITests.test_read_text) ... ok otest_requires_dist_info (test.test_importlib.metadata.test_api.APITests.test_requires_dist_info) ... ok otest_requires_egg_info (test.test_importlib.metadata.test_api.APITests.test_requires_egg_info) ... ok otest_requires_egg_info_empty (test.test_importlib.metadata.test_api.APITests.test_requires_egg_info_empty) ... ok otest_requires_egg_info_file (test.test_importlib.metadata.test_api.APITests.test_requires_egg_info_file) ... ok otest_retrieves_version_of_distinfo_pkg (test.test_importlib.metadata.test_api.APITests.test_retrieves_version_of_distinfo_pkg) ... ok otest_retrieves_version_of_self (test.test_importlib.metadata.test_api.APITests.test_retrieves_version_of_self) ... ok otest_version_egg_info_file (test.test_importlib.metadata.test_api.APITests.test_version_egg_info_file) ... ok otest_invalidate_cache (test.test_importlib.metadata.test_api.InvalidateCache.test_invalidate_cache) ... ok otest_name_normalization (test.test_importlib.metadata.test_api.LegacyDots.test_name_normalization) ... ok otest_name_normalization_versionless_egg_info (test.test_importlib.metadata.test_api.LegacyDots.test_name_normalization_versionless_egg_info) ... ok otest_distribution_at_pathlib (test.test_importlib.metadata.test_api.OffSysPathTests.test_distribution_at_pathlib) oDemonstrate how to load metadata direct from a directory. ... ok otest_distribution_at_str (test.test_importlib.metadata.test_api.OffSysPathTests.test_distribution_at_str) ... ok otest_find_distributions_specified_path (test.test_importlib.metadata.test_api.OffSysPathTests.test_find_distributions_specified_path) ... ok otest_abc_enforced (test.test_importlib.metadata.test_main.BasicTests.test_abc_enforced) ... ok otest_for_name_does_not_exist (test.test_importlib.metadata.test_main.BasicTests.test_for_name_does_not_exist) ... ok otest_invalid_inputs_to_from_name (test.test_importlib.metadata.test_main.BasicTests.test_invalid_inputs_to_from_name) ... ok otest_package_not_found_mentions_metadata (test.test_importlib.metadata.test_main.BasicTests.test_package_not_found_mentions_metadata) oWhen a package is not found, that could indicate that the ... ok otest_retrieves_version_of_self (test.test_importlib.metadata.test_main.BasicTests.test_retrieves_version_of_self) ... ok otest_egg (test.test_importlib.metadata.test_main.DirectoryTest.test_egg) ... ok otest_egg_info (test.test_importlib.metadata.test_main.DirectoryTest.test_egg_info) ... ok otest_interleaved_discovery (test.test_importlib.metadata.test_main.DiscoveryTests.test_interleaved_discovery) oEnsure interleaved searches are safe. ... ok otest_invalid_usage (test.test_importlib.metadata.test_main.DiscoveryTests.test_invalid_usage) ... ok otest_package_discovery (test.test_importlib.metadata.test_main.DiscoveryTests.test_package_discovery) ... ok otest_origin (test.test_importlib.metadata.test_main.EditableDistributionTest.test_origin) ... ok otest_unicode_dir_on_sys_path (test.test_importlib.metadata.test_main.FileSystem.test_unicode_dir_on_sys_path) oEnsure a Unicode subdirectory of a directory on sys.path ... ok otest_entrypoint_with_colon_in_name (test.test_importlib.metadata.test_main.ImportTests.test_entrypoint_with_colon_in_name) ... ok otest_import_nonexistent_module (test.test_importlib.metadata.test_main.ImportTests.test_import_nonexistent_module) ... ok otest_resolve (test.test_importlib.metadata.test_main.ImportTests.test_resolve) ... ok otest_resolve_without_attr (test.test_importlib.metadata.test_main.ImportTests.test_resolve_without_attr) ... ok otest_discovery (test.test_importlib.metadata.test_main.InaccessibleSysPath.test_discovery) oDiscovering distributions should succeed even if ... skipped 'pyfakefs not available' otest_discovery (test.test_importlib.metadata.test_main.MissingSysPath.test_discovery) oDiscovering distributions should succeed even if ... ok otest_dashes_in_dist_name_found_as_underscores (test.test_importlib.metadata.test_main.NameNormalizationTests.test_dashes_in_dist_name_found_as_underscores) oFor a package with a dash in the name, the dist-info metadata ... ok otest_dist_name_found_as_any_case (test.test_importlib.metadata.test_main.NameNormalizationTests.test_dist_name_found_as_any_case) oEnsure the metadata loads when queried with any case. ... ok otest_unique_distributions (test.test_importlib.metadata.test_main.NameNormalizationTests.test_unique_distributions) oTwo distributions varying only by non-normalized name on ... ok otest_metadata_loads (test.test_importlib.metadata.test_main.NonASCIITests.test_metadata_loads) ... ok otest_metadata_loads_egg_info (test.test_importlib.metadata.test_main.NonASCIITests.test_metadata_loads_egg_info) ... ok otest_packages_distributions_on_eggs (test.test_importlib.metadata.test_main.PackagesDistributionsEggTest.test_packages_distributions_on_eggs) oTest old-style egg packages with a variation of 'top_level.txt', ... ok otest_packages_distributions_example (test.test_importlib.metadata.test_main.PackagesDistributionsPrebuiltTest.test_packages_distributions_example) ... ok otest_packages_distributions_example2 (test.test_importlib.metadata.test_main.PackagesDistributionsPrebuiltTest.test_packages_distributions_example2) oTest packages_distributions on a wheel built ... ok otest_packages_distributions_all_module_types (test.test_importlib.metadata.test_main.PackagesDistributionsTest.test_packages_distributions_all_module_types) oTest top-level modules detected on a package without 'top-level.txt'. ... ok otest_packages_distributions_neither_toplevel_nor_files (test.test_importlib.metadata.test_main.PackagesDistributionsTest.test_packages_distributions_neither_toplevel_nor_files) oTest a package built without 'top-level.txt' or a file list. ... ok otest_packages_distributions_symlinked_top_level (test.test_importlib.metadata.test_main.PackagesDistributionsTest.test_packages_distributions_symlinked_top_level) oDistribution is resolvable from a simple top-level symlink in RECORD. ... ok otest_attr (test.test_importlib.metadata.test_main.TestEntryPoints.test_attr) ... ok otest_entry_point_pickleable (test.test_importlib.metadata.test_main.TestEntryPoints.test_entry_point_pickleable) ... ok otest_hashable (test.test_importlib.metadata.test_main.TestEntryPoints.test_hashable) oEntryPoints should be hashable ... ok otest_immutable (test.test_importlib.metadata.test_main.TestEntryPoints.test_immutable) oEntryPoints should be immutable ... ok otest_module (test.test_importlib.metadata.test_main.TestEntryPoints.test_module) ... ok otest_positional_args (test.test_importlib.metadata.test_main.TestEntryPoints.test_positional_args) oCapture legacy (namedtuple) construction, discouraged. ... ok otest_repr (test.test_importlib.metadata.test_main.TestEntryPoints.test_repr) ... ok otest_sortable (test.test_importlib.metadata.test_main.TestEntryPoints.test_sortable) oEntryPoint objects are sortable, but result is undefined. ... ok otest_case_insensitive (test.test_importlib.metadata.test_zip.TestEgg.test_case_insensitive) ... ok otest_files (test.test_importlib.metadata.test_zip.TestEgg.test_files) ... ok otest_missing_metadata (test.test_importlib.metadata.test_zip.TestEgg.test_missing_metadata) ... ok otest_normalized_name (test.test_importlib.metadata.test_zip.TestEgg.test_normalized_name) ... ok otest_one_distribution (test.test_importlib.metadata.test_zip.TestEgg.test_one_distribution) ... ok otest_zip_entry_points (test.test_importlib.metadata.test_zip.TestEgg.test_zip_entry_points) ... ok otest_zip_version (test.test_importlib.metadata.test_zip.TestEgg.test_zip_version) ... ok otest_zip_version_does_not_match (test.test_importlib.metadata.test_zip.TestEgg.test_zip_version_does_not_match) ... ok otest_case_insensitive (test.test_importlib.metadata.test_zip.TestZip.test_case_insensitive) ... ok otest_files (test.test_importlib.metadata.test_zip.TestZip.test_files) ... ok otest_missing_metadata (test.test_importlib.metadata.test_zip.TestZip.test_missing_metadata) ... ok otest_one_distribution (test.test_importlib.metadata.test_zip.TestZip.test_one_distribution) ... ok otest_zip_entry_points (test.test_importlib.metadata.test_zip.TestZip.test_zip_entry_points) ... ok otest_zip_version (test.test_importlib.metadata.test_zip.TestZip.test_zip_version) ... ok otest_zip_version_does_not_match (test.test_importlib.metadata.test_zip.TestZip.test_zip_version_does_not_match) ... ok otest_spec_path_joinpath (test.test_importlib.resources.test_compatibilty_files.CompatibilityFilesNoReaderTests.test_spec_path_joinpath) ... ok otest_child_path_is (test.test_importlib.resources.test_compatibilty_files.CompatibilityFilesTests.test_child_path_is) ... ok otest_child_path_iter (test.test_importlib.resources.test_compatibilty_files.CompatibilityFilesTests.test_child_path_iter) ... ok otest_child_path_name (test.test_importlib.resources.test_compatibilty_files.CompatibilityFilesTests.test_child_path_name) ... ok otest_child_path_open (test.test_importlib.resources.test_compatibilty_files.CompatibilityFilesTests.test_child_path_open) ... ok otest_open_invalid_mode (test.test_importlib.resources.test_compatibilty_files.CompatibilityFilesTests.test_open_invalid_mode) ... ok otest_orphan_path_invalid (test.test_importlib.resources.test_compatibilty_files.CompatibilityFilesTests.test_orphan_path_invalid) ... ok otest_orphan_path_is (test.test_importlib.resources.test_compatibilty_files.CompatibilityFilesTests.test_orphan_path_is) ... ok otest_orphan_path_iter (test.test_importlib.resources.test_compatibilty_files.CompatibilityFilesTests.test_orphan_path_iter) ... ok otest_orphan_path_name (test.test_importlib.resources.test_compatibilty_files.CompatibilityFilesTests.test_orphan_path_name) ... ok otest_orphan_path_open (test.test_importlib.resources.test_compatibilty_files.CompatibilityFilesTests.test_orphan_path_open) ... ok otest_spec_path_is (test.test_importlib.resources.test_compatibilty_files.CompatibilityFilesTests.test_spec_path_is) ... ok otest_spec_path_iter (test.test_importlib.resources.test_compatibilty_files.CompatibilityFilesTests.test_spec_path_iter) ... ok otest_spec_path_name (test.test_importlib.resources.test_compatibilty_files.CompatibilityFilesTests.test_spec_path_name) ... ok otest_spec_path_open (test.test_importlib.resources.test_compatibilty_files.CompatibilityFilesTests.test_spec_path_open) ... ok otest_wrap_spec (test.test_importlib.resources.test_compatibilty_files.CompatibilityFilesTests.test_wrap_spec) ... ok otest_contents (test.test_importlib.resources.test_contents.ContentsDiskTests.test_contents) ... ok otest_contents (test.test_importlib.resources.test_contents.ContentsNamespaceTests.test_contents) ... ok otest_contents (test.test_importlib.resources.test_contents.ContentsZipTests.test_contents) ... ok otest_custom_loader (test.test_importlib.resources.test_custom.CustomTraversableResourcesTests.test_custom_loader) ... ok otest_implicit_files_package (test.test_importlib.resources.test_files.ImplicitContextFilesDiskTests.test_implicit_files_package) oWithout any parameter, files() will infer the location as the caller. ... ok otest_implicit_files_submodule (test.test_importlib.resources.test_files.ImplicitContextFilesDiskTests.test_implicit_files_submodule) oWithout any parameter, files() will infer the location as the caller. ... ok otest_implicit_files_with_compiled_importlib (test.test_importlib.resources.test_files.ImplicitContextFilesDiskTests.test_implicit_files_with_compiled_importlib) oCaller detection works for compiled-only resources module. ... ok otest_implicit_files_package (test.test_importlib.resources.test_files.ImplicitContextFilesZipTests.test_implicit_files_package) oWithout any parameter, files() will infer the location as the caller. ... ok otest_implicit_files_submodule (test.test_importlib.resources.test_files.ImplicitContextFilesZipTests.test_implicit_files_submodule) oWithout any parameter, files() will infer the location as the caller. ... ok otest_implicit_files_with_compiled_importlib (test.test_importlib.resources.test_files.ImplicitContextFilesZipTests.test_implicit_files_with_compiled_importlib) oCaller detection works for compiled-only resources module. ... ok otest_module_resources (test.test_importlib.resources.test_files.ModuleFilesDiskTests.test_module_resources) oA module can have resources found adjacent to the module. ... ok otest_module_resources (test.test_importlib.resources.test_files.ModuleFilesZipTests.test_module_resources) oA module can have resources found adjacent to the module. ... ok otest_joinpath_with_multiple_args (test.test_importlib.resources.test_files.OpenDiskTests.test_joinpath_with_multiple_args) ... ok otest_old_parameter (test.test_importlib.resources.test_files.OpenDiskTests.test_old_parameter) oFiles used to take a 'package' parameter. Make sure anyone ... ok otest_read_bytes (test.test_importlib.resources.test_files.OpenDiskTests.test_read_bytes) ... ok otest_read_text (test.test_importlib.resources.test_files.OpenDiskTests.test_read_text) ... ok otest_traversable (test.test_importlib.resources.test_files.OpenDiskTests.test_traversable) ... ok otest_joinpath_with_multiple_args (test.test_importlib.resources.test_files.OpenNamespaceTests.test_joinpath_with_multiple_args) ... ok otest_non_paths_in_dunder_path (test.test_importlib.resources.test_files.OpenNamespaceTests.test_non_paths_in_dunder_path) oNon-path items in a namespace package's ``__path__`` are ignored. ... ok otest_old_parameter (test.test_importlib.resources.test_files.OpenNamespaceTests.test_old_parameter) oFiles used to take a 'package' parameter. Make sure anyone ... ok otest_read_bytes (test.test_importlib.resources.test_files.OpenNamespaceTests.test_read_bytes) ... ok otest_read_text (test.test_importlib.resources.test_files.OpenNamespaceTests.test_read_text) ... ok otest_traversable (test.test_importlib.resources.test_files.OpenNamespaceTests.test_traversable) ... ok otest_joinpath_with_multiple_args (test.test_importlib.resources.test_files.OpenNamespaceZipTests.test_joinpath_with_multiple_args) ... ok otest_old_parameter (test.test_importlib.resources.test_files.OpenNamespaceZipTests.test_old_parameter) oFiles used to take a 'package' parameter. Make sure anyone ... ok otest_read_bytes (test.test_importlib.resources.test_files.OpenNamespaceZipTests.test_read_bytes) ... ok otest_read_text (test.test_importlib.resources.test_files.OpenNamespaceZipTests.test_read_text) ... ok otest_traversable (test.test_importlib.resources.test_files.OpenNamespaceZipTests.test_traversable) ... ok otest_joinpath_with_multiple_args (test.test_importlib.resources.test_files.OpenZipTests.test_joinpath_with_multiple_args) ... ok otest_old_parameter (test.test_importlib.resources.test_files.OpenZipTests.test_old_parameter) oFiles used to take a 'package' parameter. Make sure anyone ... ok otest_read_bytes (test.test_importlib.resources.test_files.OpenZipTests.test_read_bytes) ... ok otest_read_text (test.test_importlib.resources.test_files.OpenZipTests.test_read_text) ... ok otest_traversable (test.test_importlib.resources.test_files.OpenZipTests.test_traversable) ... ok otest_common_errors (test.test_importlib.resources.test_functional.FunctionalAPITest_ModuleAnchor.test_common_errors) ... ok otest_contents (test.test_importlib.resources.test_functional.FunctionalAPITest_ModuleAnchor.test_contents) ... ok otest_is_resource (test.test_importlib.resources.test_functional.FunctionalAPITest_ModuleAnchor.test_is_resource) ... ok otest_open_binary (test.test_importlib.resources.test_functional.FunctionalAPITest_ModuleAnchor.test_open_binary) ... ok otest_open_text (test.test_importlib.resources.test_functional.FunctionalAPITest_ModuleAnchor.test_open_text) ... ok otest_path (test.test_importlib.resources.test_functional.FunctionalAPITest_ModuleAnchor.test_path) ... ok otest_read_binary (test.test_importlib.resources.test_functional.FunctionalAPITest_ModuleAnchor.test_read_binary) ... ok otest_read_text (test.test_importlib.resources.test_functional.FunctionalAPITest_ModuleAnchor.test_read_text) ... ok otest_text_errors (test.test_importlib.resources.test_functional.FunctionalAPITest_ModuleAnchor.test_text_errors) ... ok otest_common_errors (test.test_importlib.resources.test_functional.FunctionalAPITest_StringAnchor.test_common_errors) ... ok otest_contents (test.test_importlib.resources.test_functional.FunctionalAPITest_StringAnchor.test_contents) ... ok otest_is_resource (test.test_importlib.resources.test_functional.FunctionalAPITest_StringAnchor.test_is_resource) ... ok otest_open_binary (test.test_importlib.resources.test_functional.FunctionalAPITest_StringAnchor.test_open_binary) ... ok otest_open_text (test.test_importlib.resources.test_functional.FunctionalAPITest_StringAnchor.test_open_text) ... ok otest_path (test.test_importlib.resources.test_functional.FunctionalAPITest_StringAnchor.test_path) ... ok otest_read_binary (test.test_importlib.resources.test_functional.FunctionalAPITest_StringAnchor.test_read_binary) ... ok otest_read_text (test.test_importlib.resources.test_functional.FunctionalAPITest_StringAnchor.test_read_text) ... ok otest_text_errors (test.test_importlib.resources.test_functional.FunctionalAPITest_StringAnchor.test_text_errors) ... ok otest_extant_path (test.test_importlib.resources.test_open.CommonBinaryTests.test_extant_path) ... ok otest_importing_module_as_side_effect (test.test_importlib.resources.test_open.CommonBinaryTests.test_importing_module_as_side_effect) oThe anchor package can already be imported. ... ok otest_missing_path (test.test_importlib.resources.test_open.CommonBinaryTests.test_missing_path) oAttempting to open or read or request the path for a ... ok otest_package_name (test.test_importlib.resources.test_open.CommonBinaryTests.test_package_name) oPassing in the package name should succeed. ... ok otest_package_object (test.test_importlib.resources.test_open.CommonBinaryTests.test_package_object) oPassing in the package itself should succeed. ... ok otest_pathlib_path (test.test_importlib.resources.test_open.CommonBinaryTests.test_pathlib_path) oPassing in a pathlib.PurePath object for the path should succeed. ... ok otest_string_path (test.test_importlib.resources.test_open.CommonBinaryTests.test_string_path) oPassing in a string for the path should succeed. ... ok otest_useless_loader (test.test_importlib.resources.test_open.CommonBinaryTests.test_useless_loader) ... ok otest_extant_path (test.test_importlib.resources.test_open.CommonTextTests.test_extant_path) ... ok otest_importing_module_as_side_effect (test.test_importlib.resources.test_open.CommonTextTests.test_importing_module_as_side_effect) oThe anchor package can already be imported. ... ok otest_missing_path (test.test_importlib.resources.test_open.CommonTextTests.test_missing_path) oAttempting to open or read or request the path for a ... ok otest_package_name (test.test_importlib.resources.test_open.CommonTextTests.test_package_name) oPassing in the package name should succeed. ... ok otest_package_object (test.test_importlib.resources.test_open.CommonTextTests.test_package_object) oPassing in the package itself should succeed. ... ok otest_pathlib_path (test.test_importlib.resources.test_open.CommonTextTests.test_pathlib_path) oPassing in a pathlib.PurePath object for the path should succeed. ... ok otest_string_path (test.test_importlib.resources.test_open.CommonTextTests.test_string_path) oPassing in a string for the path should succeed. ... ok otest_useless_loader (test.test_importlib.resources.test_open.CommonTextTests.test_useless_loader) ... ok otest_open_binary (test.test_importlib.resources.test_open.OpenDiskNamespaceTests.test_open_binary) ... ok otest_open_binary_FileNotFoundError (test.test_importlib.resources.test_open.OpenDiskNamespaceTests.test_open_binary_FileNotFoundError) ... ok otest_open_text_FileNotFoundError (test.test_importlib.resources.test_open.OpenDiskNamespaceTests.test_open_text_FileNotFoundError) ... ok otest_open_text_default_encoding (test.test_importlib.resources.test_open.OpenDiskNamespaceTests.test_open_text_default_encoding) ... ok otest_open_text_given_encoding (test.test_importlib.resources.test_open.OpenDiskNamespaceTests.test_open_text_given_encoding) ... ok otest_open_text_with_errors (test.test_importlib.resources.test_open.OpenDiskNamespaceTests.test_open_text_with_errors) oRaises UnicodeError without the 'errors' argument. ... ok otest_open_binary (test.test_importlib.resources.test_open.OpenDiskTests.test_open_binary) ... ok otest_open_binary_FileNotFoundError (test.test_importlib.resources.test_open.OpenDiskTests.test_open_binary_FileNotFoundError) ... ok otest_open_text_FileNotFoundError (test.test_importlib.resources.test_open.OpenDiskTests.test_open_text_FileNotFoundError) ... ok otest_open_text_default_encoding (test.test_importlib.resources.test_open.OpenDiskTests.test_open_text_default_encoding) ... ok otest_open_text_given_encoding (test.test_importlib.resources.test_open.OpenDiskTests.test_open_text_given_encoding) ... ok otest_open_text_with_errors (test.test_importlib.resources.test_open.OpenDiskTests.test_open_text_with_errors) oRaises UnicodeError without the 'errors' argument. ... ok otest_open_binary (test.test_importlib.resources.test_open.OpenNamespaceZipTests.test_open_binary) ... ok otest_open_binary_FileNotFoundError (test.test_importlib.resources.test_open.OpenNamespaceZipTests.test_open_binary_FileNotFoundError) ... ok otest_open_text_FileNotFoundError (test.test_importlib.resources.test_open.OpenNamespaceZipTests.test_open_text_FileNotFoundError) ... ok otest_open_text_default_encoding (test.test_importlib.resources.test_open.OpenNamespaceZipTests.test_open_text_default_encoding) ... ok otest_open_text_given_encoding (test.test_importlib.resources.test_open.OpenNamespaceZipTests.test_open_text_given_encoding) ... ok otest_open_text_with_errors (test.test_importlib.resources.test_open.OpenNamespaceZipTests.test_open_text_with_errors) oRaises UnicodeError without the 'errors' argument. ... ok otest_open_binary (test.test_importlib.resources.test_open.OpenZipTests.test_open_binary) ... ok otest_open_binary_FileNotFoundError (test.test_importlib.resources.test_open.OpenZipTests.test_open_binary_FileNotFoundError) ... ok otest_open_text_FileNotFoundError (test.test_importlib.resources.test_open.OpenZipTests.test_open_text_FileNotFoundError) ... ok otest_open_text_default_encoding (test.test_importlib.resources.test_open.OpenZipTests.test_open_text_default_encoding) ... ok otest_open_text_given_encoding (test.test_importlib.resources.test_open.OpenZipTests.test_open_text_given_encoding) ... ok otest_open_text_with_errors (test.test_importlib.resources.test_open.OpenZipTests.test_open_text_with_errors) oRaises UnicodeError without the 'errors' argument. ... ok otest_extant_path (test.test_importlib.resources.test_path.CommonTests.test_extant_path) ... ok otest_importing_module_as_side_effect (test.test_importlib.resources.test_path.CommonTests.test_importing_module_as_side_effect) oThe anchor package can already be imported. ... ok otest_missing_path (test.test_importlib.resources.test_path.CommonTests.test_missing_path) oAttempting to open or read or request the path for a ... ok otest_package_name (test.test_importlib.resources.test_path.CommonTests.test_package_name) oPassing in the package name should succeed. ... ok otest_package_object (test.test_importlib.resources.test_path.CommonTests.test_package_object) oPassing in the package itself should succeed. ... ok otest_pathlib_path (test.test_importlib.resources.test_path.CommonTests.test_pathlib_path) oPassing in a pathlib.PurePath object for the path should succeed. ... ok otest_string_path (test.test_importlib.resources.test_path.CommonTests.test_string_path) oPassing in a string for the path should succeed. ... ok otest_useless_loader (test.test_importlib.resources.test_path.CommonTests.test_useless_loader) ... ok otest_natural_path (test.test_importlib.resources.test_path.PathDiskTests.test_natural_path) ... ok otest_reading (test.test_importlib.resources.test_path.PathDiskTests.test_reading) oPath should be readable and a pathlib.Path instance. ... ok otest_reading (test.test_importlib.resources.test_path.PathMemoryTests.test_reading) oPath should be readable and a pathlib.Path instance. ... ok otest_reading (test.test_importlib.resources.test_path.PathZipTests.test_reading) oPath should be readable and a pathlib.Path instance. ... ok otest_remove_in_context_manager (test.test_importlib.resources.test_path.PathZipTests.test_remove_in_context_manager) oIt is not an error if the file that was temporarily stashed on the ... ok otest_extant_path (test.test_importlib.resources.test_read.CommonBinaryTests.test_extant_path) ... ok otest_importing_module_as_side_effect (test.test_importlib.resources.test_read.CommonBinaryTests.test_importing_module_as_side_effect) oThe anchor package can already be imported. ... ok otest_missing_path (test.test_importlib.resources.test_read.CommonBinaryTests.test_missing_path) oAttempting to open or read or request the path for a ... ok otest_package_name (test.test_importlib.resources.test_read.CommonBinaryTests.test_package_name) oPassing in the package name should succeed. ... ok otest_package_object (test.test_importlib.resources.test_read.CommonBinaryTests.test_package_object) oPassing in the package itself should succeed. ... ok otest_pathlib_path (test.test_importlib.resources.test_read.CommonBinaryTests.test_pathlib_path) oPassing in a pathlib.PurePath object for the path should succeed. ... ok otest_string_path (test.test_importlib.resources.test_read.CommonBinaryTests.test_string_path) oPassing in a string for the path should succeed. ... ok otest_useless_loader (test.test_importlib.resources.test_read.CommonBinaryTests.test_useless_loader) ... ok otest_extant_path (test.test_importlib.resources.test_read.CommonTextTests.test_extant_path) ... ok otest_importing_module_as_side_effect (test.test_importlib.resources.test_read.CommonTextTests.test_importing_module_as_side_effect) oThe anchor package can already be imported. ... ok otest_missing_path (test.test_importlib.resources.test_read.CommonTextTests.test_missing_path) oAttempting to open or read or request the path for a ... ok otest_package_name (test.test_importlib.resources.test_read.CommonTextTests.test_package_name) oPassing in the package name should succeed. ... ok otest_package_object (test.test_importlib.resources.test_read.CommonTextTests.test_package_object) oPassing in the package itself should succeed. ... ok otest_pathlib_path (test.test_importlib.resources.test_read.CommonTextTests.test_pathlib_path) oPassing in a pathlib.PurePath object for the path should succeed. ... ok otest_string_path (test.test_importlib.resources.test_read.CommonTextTests.test_string_path) oPassing in a string for the path should succeed. ... ok otest_useless_loader (test.test_importlib.resources.test_read.CommonTextTests.test_useless_loader) ... ok otest_read_bytes (test.test_importlib.resources.test_read.ReadDiskTests.test_read_bytes) ... ok otest_read_text_default_encoding (test.test_importlib.resources.test_read.ReadDiskTests.test_read_text_default_encoding) ... ok otest_read_text_given_encoding (test.test_importlib.resources.test_read.ReadDiskTests.test_read_text_given_encoding) ... ok otest_read_text_with_errors (test.test_importlib.resources.test_read.ReadDiskTests.test_read_text_with_errors) oRaises UnicodeError without the 'errors' argument. ... ok otest_read_bytes (test.test_importlib.resources.test_read.ReadNamespaceTests.test_read_bytes) ... ok otest_read_text_default_encoding (test.test_importlib.resources.test_read.ReadNamespaceTests.test_read_text_default_encoding) ... ok otest_read_text_given_encoding (test.test_importlib.resources.test_read.ReadNamespaceTests.test_read_text_given_encoding) ... ok otest_read_text_with_errors (test.test_importlib.resources.test_read.ReadNamespaceTests.test_read_text_with_errors) oRaises UnicodeError without the 'errors' argument. ... ok otest_read_bytes (test.test_importlib.resources.test_read.ReadNamespaceZipTests.test_read_bytes) ... ok otest_read_submodule_resource (test.test_importlib.resources.test_read.ReadNamespaceZipTests.test_read_submodule_resource) ... ok otest_read_submodule_resource_by_name (test.test_importlib.resources.test_read.ReadNamespaceZipTests.test_read_submodule_resource_by_name) ... ok otest_read_text_default_encoding (test.test_importlib.resources.test_read.ReadNamespaceZipTests.test_read_text_default_encoding) ... ok otest_read_text_given_encoding (test.test_importlib.resources.test_read.ReadNamespaceZipTests.test_read_text_given_encoding) ... ok otest_read_text_with_errors (test.test_importlib.resources.test_read.ReadNamespaceZipTests.test_read_text_with_errors) oRaises UnicodeError without the 'errors' argument. ... ok otest_read_bytes (test.test_importlib.resources.test_read.ReadZipTests.test_read_bytes) ... ok otest_read_submodule_resource (test.test_importlib.resources.test_read.ReadZipTests.test_read_submodule_resource) ... ok otest_read_submodule_resource_by_name (test.test_importlib.resources.test_read.ReadZipTests.test_read_submodule_resource_by_name) ... ok otest_read_text_default_encoding (test.test_importlib.resources.test_read.ReadZipTests.test_read_text_default_encoding) ... ok otest_read_text_given_encoding (test.test_importlib.resources.test_read.ReadZipTests.test_read_text_given_encoding) ... ok otest_read_text_with_errors (test.test_importlib.resources.test_read.ReadZipTests.test_read_text_with_errors) oRaises UnicodeError without the 'errors' argument. ... ok otest_init_file (test.test_importlib.resources.test_reader.MultiplexedPathTest.test_init_file) ... ok otest_init_no_paths (test.test_importlib.resources.test_reader.MultiplexedPathTest.test_init_no_paths) ... ok otest_is_dir (test.test_importlib.resources.test_reader.MultiplexedPathTest.test_is_dir) ... ok otest_is_file (test.test_importlib.resources.test_reader.MultiplexedPathTest.test_is_file) ... ok otest_iterdir (test.test_importlib.resources.test_reader.MultiplexedPathTest.test_iterdir) ... ok otest_iterdir_duplicate (test.test_importlib.resources.test_reader.MultiplexedPathTest.test_iterdir_duplicate) ... ok otest_join_path (test.test_importlib.resources.test_reader.MultiplexedPathTest.test_join_path) ... ok otest_join_path_common_subdir (test.test_importlib.resources.test_reader.MultiplexedPathTest.test_join_path_common_subdir) ... ok otest_join_path_compound (test.test_importlib.resources.test_reader.MultiplexedPathTest.test_join_path_compound) ... ok otest_name (test.test_importlib.resources.test_reader.MultiplexedPathTest.test_name) ... ok otest_open_file (test.test_importlib.resources.test_reader.MultiplexedPathTest.test_open_file) ... ok otest_repr (test.test_importlib.resources.test_reader.MultiplexedPathTest.test_repr) ... ok otest_files (test.test_importlib.resources.test_reader.NamespaceReaderTest.test_files) ... ok otest_init_error (test.test_importlib.resources.test_reader.NamespaceReaderTest.test_init_error) ... ok otest_resource_path (test.test_importlib.resources.test_reader.NamespaceReaderTest.test_resource_path) ... ok otest_as_file_does_not_keep_open (test.test_importlib.resources.test_resource.DeletingZipsTest.test_as_file_does_not_keep_open) ... skipped 'Desired but not supported.' otest_entered_path_does_not_keep_open (test.test_importlib.resources.test_resource.DeletingZipsTest.test_entered_path_does_not_keep_open) oMimic what certifi does on import to make its bundle ... ok otest_is_file_does_not_keep_open (test.test_importlib.resources.test_resource.DeletingZipsTest.test_is_file_does_not_keep_open) ... ok otest_is_file_failure_does_not_keep_open (test.test_importlib.resources.test_resource.DeletingZipsTest.test_is_file_failure_does_not_keep_open) ... ok otest_iterdir_does_not_keep_open (test.test_importlib.resources.test_resource.DeletingZipsTest.test_iterdir_does_not_keep_open) ... ok otest_read_binary_does_not_keep_open (test.test_importlib.resources.test_resource.DeletingZipsTest.test_read_binary_does_not_keep_open) ... ok otest_read_text_does_not_keep_open (test.test_importlib.resources.test_resource.DeletingZipsTest.test_read_text_does_not_keep_open) ... ok otest_package_has_no_reader_fallback (test.test_importlib.resources.test_resource.ResourceCornerCaseTests.test_package_has_no_reader_fallback) oTest odd ball packages which: ... ok otest_is_dir (test.test_importlib.resources.test_resource.ResourceDiskTests.test_is_dir) ... ok otest_is_file_exists (test.test_importlib.resources.test_resource.ResourceDiskTests.test_is_file_exists) ... ok otest_is_file_missing (test.test_importlib.resources.test_resource.ResourceDiskTests.test_is_file_missing) ... ok otest_is_submodule_resource (test.test_importlib.resources.test_resource.ResourceFromNamespaceDiskTests.test_is_submodule_resource) ... ok otest_read_submodule_resource_by_name (test.test_importlib.resources.test_resource.ResourceFromNamespaceDiskTests.test_read_submodule_resource_by_name) ... ok otest_submodule_contents (test.test_importlib.resources.test_resource.ResourceFromNamespaceDiskTests.test_submodule_contents) ... ok otest_submodule_contents_by_name (test.test_importlib.resources.test_resource.ResourceFromNamespaceDiskTests.test_submodule_contents_by_name) ... ok otest_submodule_sub_contents (test.test_importlib.resources.test_resource.ResourceFromNamespaceDiskTests.test_submodule_sub_contents) ... ok otest_submodule_sub_contents_by_name (test.test_importlib.resources.test_resource.ResourceFromNamespaceDiskTests.test_submodule_sub_contents_by_name) ... ok otest_is_submodule_resource (test.test_importlib.resources.test_resource.ResourceFromNamespaceZipTests.test_is_submodule_resource) ... ok otest_read_submodule_resource_by_name (test.test_importlib.resources.test_resource.ResourceFromNamespaceZipTests.test_read_submodule_resource_by_name) ... ok otest_submodule_contents (test.test_importlib.resources.test_resource.ResourceFromNamespaceZipTests.test_submodule_contents) ... ok otest_submodule_contents_by_name (test.test_importlib.resources.test_resource.ResourceFromNamespaceZipTests.test_submodule_contents_by_name) ... ok otest_submodule_sub_contents (test.test_importlib.resources.test_resource.ResourceFromNamespaceZipTests.test_submodule_sub_contents) ... ok otest_submodule_sub_contents_by_name (test.test_importlib.resources.test_resource.ResourceFromNamespaceZipTests.test_submodule_sub_contents_by_name) ... ok otest_as_file_directory (test.test_importlib.resources.test_resource.ResourceFromZipsTest01.test_as_file_directory) ... ok otest_is_submodule_resource (test.test_importlib.resources.test_resource.ResourceFromZipsTest01.test_is_submodule_resource) ... ok otest_read_submodule_resource_by_name (test.test_importlib.resources.test_resource.ResourceFromZipsTest01.test_read_submodule_resource_by_name) ... ok otest_submodule_contents (test.test_importlib.resources.test_resource.ResourceFromZipsTest01.test_submodule_contents) ... ok otest_submodule_contents_by_name (test.test_importlib.resources.test_resource.ResourceFromZipsTest01.test_submodule_contents_by_name) ... ok otest_unrelated_contents (test.test_importlib.resources.test_resource.ResourceFromZipsTest02.test_unrelated_contents) oTest thata zip with two unrelated subpackages return ... ok otest_is_dir (test.test_importlib.resources.test_resource.ResourceLoaderTests.test_is_dir) ... ok otest_is_file (test.test_importlib.resources.test_resource.ResourceLoaderTests.test_is_file) ... ok otest_resource_contents (test.test_importlib.resources.test_resource.ResourceLoaderTests.test_resource_contents) ... ok otest_resource_missing (test.test_importlib.resources.test_resource.ResourceLoaderTests.test_resource_missing) ... ok otest_is_dir (test.test_importlib.resources.test_resource.ResourceZipTests.test_is_dir) ... ok otest_is_file_exists (test.test_importlib.resources.test_resource.ResourceZipTests.test_is_file_exists) ... ok otest_is_file_missing (test.test_importlib.resources.test_resource.ResourceZipTests.test_is_file_missing) ... ok otest_insensitive (test.test_importlib.source.test_case_sensitivity.Frozen_CaseSensitivityTestPEP451.test_insensitive) ... skipped 'requires a case-insensitive filesystem' otest_sensitive (test.test_importlib.source.test_case_sensitivity.Frozen_CaseSensitivityTestPEP451.test_sensitive) ... skipped 'requires a case-insensitive filesystem' otest_insensitive (test.test_importlib.source.test_case_sensitivity.Source_CaseSensitivityTestPEP451.test_insensitive) ... skipped 'requires a case-insensitive filesystem' otest_sensitive (test.test_importlib.source.test_case_sensitivity.Source_CaseSensitivityTestPEP451.test_sensitive) ... skipped 'requires a case-insensitive filesystem' otest_bad_syntax (test.test_importlib.source.test_file_loader.Frozen_SimpleTest.test_bad_syntax) ... ok otest_checked_hash_based_pyc (test.test_importlib.source.test_file_loader.Frozen_SimpleTest.test_checked_hash_based_pyc) ... ok otest_equality (test.test_importlib.source.test_file_loader.Frozen_SimpleTest.test_equality) ... ok otest_file_from_empty_string_dir (test.test_importlib.source.test_file_loader.Frozen_SimpleTest.test_file_from_empty_string_dir) ... ok otest_get_filename_API (test.test_importlib.source.test_file_loader.Frozen_SimpleTest.test_get_filename_API) ... ok otest_inequality (test.test_importlib.source.test_file_loader.Frozen_SimpleTest.test_inequality) ... ok otest_lacking_parent (test.test_importlib.source.test_file_loader.Frozen_SimpleTest.test_lacking_parent) ... ok otest_load_module_API (test.test_importlib.source.test_file_loader.Frozen_SimpleTest.test_load_module_API) ... ok otest_module (test.test_importlib.source.test_file_loader.Frozen_SimpleTest.test_module) ... ok otest_module_reuse (test.test_importlib.source.test_file_loader.Frozen_SimpleTest.test_module_reuse) ... ok otest_overridden_checked_hash_based_pyc (test.test_importlib.source.test_file_loader.Frozen_SimpleTest.test_overridden_checked_hash_based_pyc) ... ok otest_overridden_unchecked_hash_based_pyc (test.test_importlib.source.test_file_loader.Frozen_SimpleTest.test_overridden_unchecked_hash_based_pyc) ... ok otest_package (test.test_importlib.source.test_file_loader.Frozen_SimpleTest.test_package) ... ok otest_state_after_failure (test.test_importlib.source.test_file_loader.Frozen_SimpleTest.test_state_after_failure) ... ok otest_timestamp_overflow (test.test_importlib.source.test_file_loader.Frozen_SimpleTest.test_timestamp_overflow) ... ok otest_unchecked_hash_based_pyc (test.test_importlib.source.test_file_loader.Frozen_SimpleTest.test_unchecked_hash_based_pyc) ... ok otest_unloadable (test.test_importlib.source.test_file_loader.Frozen_SimpleTest.test_unloadable) ... ok otest_bad_magic (test.test_importlib.source.test_file_loader.Frozen_SourceLoaderBadBytecodeTestPEP302.test_bad_magic) ... ok otest_bad_marshal (test.test_importlib.source.test_file_loader.Frozen_SourceLoaderBadBytecodeTestPEP302.test_bad_marshal) ... ok otest_empty_file (test.test_importlib.source.test_file_loader.Frozen_SourceLoaderBadBytecodeTestPEP302.test_empty_file) ... ok otest_magic_only (test.test_importlib.source.test_file_loader.Frozen_SourceLoaderBadBytecodeTestPEP302.test_magic_only) ... ok otest_no_marshal (test.test_importlib.source.test_file_loader.Frozen_SourceLoaderBadBytecodeTestPEP302.test_no_marshal) ... ok otest_non_code_marshal (test.test_importlib.source.test_file_loader.Frozen_SourceLoaderBadBytecodeTestPEP302.test_non_code_marshal) ... ok otest_old_timestamp (test.test_importlib.source.test_file_loader.Frozen_SourceLoaderBadBytecodeTestPEP302.test_old_timestamp) ... ok otest_partial_flags (test.test_importlib.source.test_file_loader.Frozen_SourceLoaderBadBytecodeTestPEP302.test_partial_flags) ... ok otest_partial_hash (test.test_importlib.source.test_file_loader.Frozen_SourceLoaderBadBytecodeTestPEP302.test_partial_hash) ... ok otest_partial_magic (test.test_importlib.source.test_file_loader.Frozen_SourceLoaderBadBytecodeTestPEP302.test_partial_magic) ... ok otest_partial_size (test.test_importlib.source.test_file_loader.Frozen_SourceLoaderBadBytecodeTestPEP302.test_partial_size) ... ok otest_partial_timestamp (test.test_importlib.source.test_file_loader.Frozen_SourceLoaderBadBytecodeTestPEP302.test_partial_timestamp) ... ok otest_read_only_bytecode (test.test_importlib.source.test_file_loader.Frozen_SourceLoaderBadBytecodeTestPEP302.test_read_only_bytecode) ... ok otest_bad_magic (test.test_importlib.source.test_file_loader.Frozen_SourceLoaderBadBytecodeTestPEP451.test_bad_magic) ... ok otest_bad_marshal (test.test_importlib.source.test_file_loader.Frozen_SourceLoaderBadBytecodeTestPEP451.test_bad_marshal) ... ok otest_empty_file (test.test_importlib.source.test_file_loader.Frozen_SourceLoaderBadBytecodeTestPEP451.test_empty_file) ... ok otest_magic_only (test.test_importlib.source.test_file_loader.Frozen_SourceLoaderBadBytecodeTestPEP451.test_magic_only) ... ok otest_no_marshal (test.test_importlib.source.test_file_loader.Frozen_SourceLoaderBadBytecodeTestPEP451.test_no_marshal) ... ok otest_non_code_marshal (test.test_importlib.source.test_file_loader.Frozen_SourceLoaderBadBytecodeTestPEP451.test_non_code_marshal) ... ok otest_old_timestamp (test.test_importlib.source.test_file_loader.Frozen_SourceLoaderBadBytecodeTestPEP451.test_old_timestamp) ... ok otest_partial_flags (test.test_importlib.source.test_file_loader.Frozen_SourceLoaderBadBytecodeTestPEP451.test_partial_flags) ... ok otest_partial_hash (test.test_importlib.source.test_file_loader.Frozen_SourceLoaderBadBytecodeTestPEP451.test_partial_hash) ... ok otest_partial_magic (test.test_importlib.source.test_file_loader.Frozen_SourceLoaderBadBytecodeTestPEP451.test_partial_magic) ... ok otest_partial_size (test.test_importlib.source.test_file_loader.Frozen_SourceLoaderBadBytecodeTestPEP451.test_partial_size) ... ok otest_partial_timestamp (test.test_importlib.source.test_file_loader.Frozen_SourceLoaderBadBytecodeTestPEP451.test_partial_timestamp) ... ok otest_read_only_bytecode (test.test_importlib.source.test_file_loader.Frozen_SourceLoaderBadBytecodeTestPEP451.test_read_only_bytecode) ... ok otest_bad_magic (test.test_importlib.source.test_file_loader.Frozen_SourcelessLoaderBadBytecodeTestPEP302.test_bad_magic) ... ok otest_empty_file (test.test_importlib.source.test_file_loader.Frozen_SourcelessLoaderBadBytecodeTestPEP302.test_empty_file) ... ok otest_magic_only (test.test_importlib.source.test_file_loader.Frozen_SourcelessLoaderBadBytecodeTestPEP302.test_magic_only) ... ok otest_no_marshal (test.test_importlib.source.test_file_loader.Frozen_SourcelessLoaderBadBytecodeTestPEP302.test_no_marshal) ... ok otest_non_code_marshal (test.test_importlib.source.test_file_loader.Frozen_SourcelessLoaderBadBytecodeTestPEP302.test_non_code_marshal) ... ok otest_partial_flags (test.test_importlib.source.test_file_loader.Frozen_SourcelessLoaderBadBytecodeTestPEP302.test_partial_flags) ... ok otest_partial_hash (test.test_importlib.source.test_file_loader.Frozen_SourcelessLoaderBadBytecodeTestPEP302.test_partial_hash) ... ok otest_partial_magic (test.test_importlib.source.test_file_loader.Frozen_SourcelessLoaderBadBytecodeTestPEP302.test_partial_magic) ... ok otest_partial_size (test.test_importlib.source.test_file_loader.Frozen_SourcelessLoaderBadBytecodeTestPEP302.test_partial_size) ... ok otest_partial_timestamp (test.test_importlib.source.test_file_loader.Frozen_SourcelessLoaderBadBytecodeTestPEP302.test_partial_timestamp) ... ok otest_bad_magic (test.test_importlib.source.test_file_loader.Frozen_SourcelessLoaderBadBytecodeTestPEP451.test_bad_magic) ... ok otest_empty_file (test.test_importlib.source.test_file_loader.Frozen_SourcelessLoaderBadBytecodeTestPEP451.test_empty_file) ... ok otest_magic_only (test.test_importlib.source.test_file_loader.Frozen_SourcelessLoaderBadBytecodeTestPEP451.test_magic_only) ... ok otest_no_marshal (test.test_importlib.source.test_file_loader.Frozen_SourcelessLoaderBadBytecodeTestPEP451.test_no_marshal) ... ok otest_non_code_marshal (test.test_importlib.source.test_file_loader.Frozen_SourcelessLoaderBadBytecodeTestPEP451.test_non_code_marshal) ... ok otest_partial_flags (test.test_importlib.source.test_file_loader.Frozen_SourcelessLoaderBadBytecodeTestPEP451.test_partial_flags) ... ok otest_partial_hash (test.test_importlib.source.test_file_loader.Frozen_SourcelessLoaderBadBytecodeTestPEP451.test_partial_hash) ... ok otest_partial_magic (test.test_importlib.source.test_file_loader.Frozen_SourcelessLoaderBadBytecodeTestPEP451.test_partial_magic) ... ok otest_partial_size (test.test_importlib.source.test_file_loader.Frozen_SourcelessLoaderBadBytecodeTestPEP451.test_partial_size) ... ok otest_partial_timestamp (test.test_importlib.source.test_file_loader.Frozen_SourcelessLoaderBadBytecodeTestPEP451.test_partial_timestamp) ... ok otest_bad_syntax (test.test_importlib.source.test_file_loader.SourceDateEpoch_SimpleTest.test_bad_syntax) ... ok otest_checked_hash_based_pyc (test.test_importlib.source.test_file_loader.SourceDateEpoch_SimpleTest.test_checked_hash_based_pyc) ... ok otest_equality (test.test_importlib.source.test_file_loader.SourceDateEpoch_SimpleTest.test_equality) ... ok otest_file_from_empty_string_dir (test.test_importlib.source.test_file_loader.SourceDateEpoch_SimpleTest.test_file_from_empty_string_dir) ... ok otest_get_filename_API (test.test_importlib.source.test_file_loader.SourceDateEpoch_SimpleTest.test_get_filename_API) ... ok otest_inequality (test.test_importlib.source.test_file_loader.SourceDateEpoch_SimpleTest.test_inequality) ... ok otest_lacking_parent (test.test_importlib.source.test_file_loader.SourceDateEpoch_SimpleTest.test_lacking_parent) ... ok otest_load_module_API (test.test_importlib.source.test_file_loader.SourceDateEpoch_SimpleTest.test_load_module_API) ... ok otest_module (test.test_importlib.source.test_file_loader.SourceDateEpoch_SimpleTest.test_module) ... ok otest_module_reuse (test.test_importlib.source.test_file_loader.SourceDateEpoch_SimpleTest.test_module_reuse) ... ok otest_overridden_checked_hash_based_pyc (test.test_importlib.source.test_file_loader.SourceDateEpoch_SimpleTest.test_overridden_checked_hash_based_pyc) ... ok otest_overridden_unchecked_hash_based_pyc (test.test_importlib.source.test_file_loader.SourceDateEpoch_SimpleTest.test_overridden_unchecked_hash_based_pyc) ... ok otest_package (test.test_importlib.source.test_file_loader.SourceDateEpoch_SimpleTest.test_package) ... ok otest_state_after_failure (test.test_importlib.source.test_file_loader.SourceDateEpoch_SimpleTest.test_state_after_failure) ... ok otest_timestamp_overflow (test.test_importlib.source.test_file_loader.SourceDateEpoch_SimpleTest.test_timestamp_overflow) ... ok otest_unchecked_hash_based_pyc (test.test_importlib.source.test_file_loader.SourceDateEpoch_SimpleTest.test_unchecked_hash_based_pyc) ... ok otest_unloadable (test.test_importlib.source.test_file_loader.SourceDateEpoch_SimpleTest.test_unloadable) ... ok otest_bad_syntax (test.test_importlib.source.test_file_loader.Source_SimpleTest.test_bad_syntax) ... ok otest_checked_hash_based_pyc (test.test_importlib.source.test_file_loader.Source_SimpleTest.test_checked_hash_based_pyc) ... ok otest_equality (test.test_importlib.source.test_file_loader.Source_SimpleTest.test_equality) ... ok otest_file_from_empty_string_dir (test.test_importlib.source.test_file_loader.Source_SimpleTest.test_file_from_empty_string_dir) ... ok otest_get_filename_API (test.test_importlib.source.test_file_loader.Source_SimpleTest.test_get_filename_API) ... ok otest_inequality (test.test_importlib.source.test_file_loader.Source_SimpleTest.test_inequality) ... ok otest_lacking_parent (test.test_importlib.source.test_file_loader.Source_SimpleTest.test_lacking_parent) ... ok otest_load_module_API (test.test_importlib.source.test_file_loader.Source_SimpleTest.test_load_module_API) ... ok otest_module (test.test_importlib.source.test_file_loader.Source_SimpleTest.test_module) ... ok otest_module_reuse (test.test_importlib.source.test_file_loader.Source_SimpleTest.test_module_reuse) ... ok otest_overridden_checked_hash_based_pyc (test.test_importlib.source.test_file_loader.Source_SimpleTest.test_overridden_checked_hash_based_pyc) ... ok otest_overridden_unchecked_hash_based_pyc (test.test_importlib.source.test_file_loader.Source_SimpleTest.test_overridden_unchecked_hash_based_pyc) ... ok otest_package (test.test_importlib.source.test_file_loader.Source_SimpleTest.test_package) ... ok otest_state_after_failure (test.test_importlib.source.test_file_loader.Source_SimpleTest.test_state_after_failure) ... ok otest_timestamp_overflow (test.test_importlib.source.test_file_loader.Source_SimpleTest.test_timestamp_overflow) ... ok otest_unchecked_hash_based_pyc (test.test_importlib.source.test_file_loader.Source_SimpleTest.test_unchecked_hash_based_pyc) ... ok otest_unloadable (test.test_importlib.source.test_file_loader.Source_SimpleTest.test_unloadable) ... ok otest_bad_magic (test.test_importlib.source.test_file_loader.Source_SourceLoaderBadBytecodeTestPEP302.test_bad_magic) ... ok otest_bad_marshal (test.test_importlib.source.test_file_loader.Source_SourceLoaderBadBytecodeTestPEP302.test_bad_marshal) ... ok otest_empty_file (test.test_importlib.source.test_file_loader.Source_SourceLoaderBadBytecodeTestPEP302.test_empty_file) ... ok otest_magic_only (test.test_importlib.source.test_file_loader.Source_SourceLoaderBadBytecodeTestPEP302.test_magic_only) ... ok otest_no_marshal (test.test_importlib.source.test_file_loader.Source_SourceLoaderBadBytecodeTestPEP302.test_no_marshal) ... ok otest_non_code_marshal (test.test_importlib.source.test_file_loader.Source_SourceLoaderBadBytecodeTestPEP302.test_non_code_marshal) ... ok otest_old_timestamp (test.test_importlib.source.test_file_loader.Source_SourceLoaderBadBytecodeTestPEP302.test_old_timestamp) ... ok otest_partial_flags (test.test_importlib.source.test_file_loader.Source_SourceLoaderBadBytecodeTestPEP302.test_partial_flags) ... ok otest_partial_hash (test.test_importlib.source.test_file_loader.Source_SourceLoaderBadBytecodeTestPEP302.test_partial_hash) ... ok otest_partial_magic (test.test_importlib.source.test_file_loader.Source_SourceLoaderBadBytecodeTestPEP302.test_partial_magic) ... ok otest_partial_size (test.test_importlib.source.test_file_loader.Source_SourceLoaderBadBytecodeTestPEP302.test_partial_size) ... ok otest_partial_timestamp (test.test_importlib.source.test_file_loader.Source_SourceLoaderBadBytecodeTestPEP302.test_partial_timestamp) ... ok otest_read_only_bytecode (test.test_importlib.source.test_file_loader.Source_SourceLoaderBadBytecodeTestPEP302.test_read_only_bytecode) ... ok otest_bad_magic (test.test_importlib.source.test_file_loader.Source_SourceLoaderBadBytecodeTestPEP451.test_bad_magic) ... ok otest_bad_marshal (test.test_importlib.source.test_file_loader.Source_SourceLoaderBadBytecodeTestPEP451.test_bad_marshal) ... ok otest_empty_file (test.test_importlib.source.test_file_loader.Source_SourceLoaderBadBytecodeTestPEP451.test_empty_file) ... ok otest_magic_only (test.test_importlib.source.test_file_loader.Source_SourceLoaderBadBytecodeTestPEP451.test_magic_only) ... ok otest_no_marshal (test.test_importlib.source.test_file_loader.Source_SourceLoaderBadBytecodeTestPEP451.test_no_marshal) ... ok otest_non_code_marshal (test.test_importlib.source.test_file_loader.Source_SourceLoaderBadBytecodeTestPEP451.test_non_code_marshal) ... ok otest_old_timestamp (test.test_importlib.source.test_file_loader.Source_SourceLoaderBadBytecodeTestPEP451.test_old_timestamp) ... ok otest_partial_flags (test.test_importlib.source.test_file_loader.Source_SourceLoaderBadBytecodeTestPEP451.test_partial_flags) ... ok otest_partial_hash (test.test_importlib.source.test_file_loader.Source_SourceLoaderBadBytecodeTestPEP451.test_partial_hash) ... ok otest_partial_magic (test.test_importlib.source.test_file_loader.Source_SourceLoaderBadBytecodeTestPEP451.test_partial_magic) ... ok otest_partial_size (test.test_importlib.source.test_file_loader.Source_SourceLoaderBadBytecodeTestPEP451.test_partial_size) ... ok otest_partial_timestamp (test.test_importlib.source.test_file_loader.Source_SourceLoaderBadBytecodeTestPEP451.test_partial_timestamp) ... ok otest_read_only_bytecode (test.test_importlib.source.test_file_loader.Source_SourceLoaderBadBytecodeTestPEP451.test_read_only_bytecode) ... ok otest_bad_magic (test.test_importlib.source.test_file_loader.Source_SourcelessLoaderBadBytecodeTestPEP302.test_bad_magic) ... ok otest_empty_file (test.test_importlib.source.test_file_loader.Source_SourcelessLoaderBadBytecodeTestPEP302.test_empty_file) ... ok otest_magic_only (test.test_importlib.source.test_file_loader.Source_SourcelessLoaderBadBytecodeTestPEP302.test_magic_only) ... ok otest_no_marshal (test.test_importlib.source.test_file_loader.Source_SourcelessLoaderBadBytecodeTestPEP302.test_no_marshal) ... ok otest_non_code_marshal (test.test_importlib.source.test_file_loader.Source_SourcelessLoaderBadBytecodeTestPEP302.test_non_code_marshal) ... ok otest_partial_flags (test.test_importlib.source.test_file_loader.Source_SourcelessLoaderBadBytecodeTestPEP302.test_partial_flags) ... ok otest_partial_hash (test.test_importlib.source.test_file_loader.Source_SourcelessLoaderBadBytecodeTestPEP302.test_partial_hash) ... ok otest_partial_magic (test.test_importlib.source.test_file_loader.Source_SourcelessLoaderBadBytecodeTestPEP302.test_partial_magic) ... ok otest_partial_size (test.test_importlib.source.test_file_loader.Source_SourcelessLoaderBadBytecodeTestPEP302.test_partial_size) ... ok otest_partial_timestamp (test.test_importlib.source.test_file_loader.Source_SourcelessLoaderBadBytecodeTestPEP302.test_partial_timestamp) ... ok otest_bad_magic (test.test_importlib.source.test_file_loader.Source_SourcelessLoaderBadBytecodeTestPEP451.test_bad_magic) ... ok otest_empty_file (test.test_importlib.source.test_file_loader.Source_SourcelessLoaderBadBytecodeTestPEP451.test_empty_file) ... ok otest_magic_only (test.test_importlib.source.test_file_loader.Source_SourcelessLoaderBadBytecodeTestPEP451.test_magic_only) ... ok otest_no_marshal (test.test_importlib.source.test_file_loader.Source_SourcelessLoaderBadBytecodeTestPEP451.test_no_marshal) ... ok otest_non_code_marshal (test.test_importlib.source.test_file_loader.Source_SourcelessLoaderBadBytecodeTestPEP451.test_non_code_marshal) ... ok otest_partial_flags (test.test_importlib.source.test_file_loader.Source_SourcelessLoaderBadBytecodeTestPEP451.test_partial_flags) ... ok otest_partial_hash (test.test_importlib.source.test_file_loader.Source_SourcelessLoaderBadBytecodeTestPEP451.test_partial_hash) ... ok otest_partial_magic (test.test_importlib.source.test_file_loader.Source_SourcelessLoaderBadBytecodeTestPEP451.test_partial_magic) ... ok otest_partial_size (test.test_importlib.source.test_file_loader.Source_SourcelessLoaderBadBytecodeTestPEP451.test_partial_size) ... ok otest_partial_timestamp (test.test_importlib.source.test_file_loader.Source_SourcelessLoaderBadBytecodeTestPEP451.test_partial_timestamp) ... ok otest_dir_removal_handling (test.test_importlib.source.test_finder.Frozen_FinderTestsPEP420.test_dir_removal_handling) ... ok otest_empty_string_for_dir (test.test_importlib.source.test_finder.Frozen_FinderTestsPEP420.test_empty_string_for_dir) ... ok otest_failure (test.test_importlib.source.test_finder.Frozen_FinderTestsPEP420.test_failure) ... ok otest_ignore_file (test.test_importlib.source.test_finder.Frozen_FinderTestsPEP420.test_ignore_file) ... ok otest_invalidate_caches (test.test_importlib.source.test_finder.Frozen_FinderTestsPEP420.test_invalidate_caches) ... ok otest_module (test.test_importlib.source.test_finder.Frozen_FinderTestsPEP420.test_module) ... ok otest_module_in_package (test.test_importlib.source.test_finder.Frozen_FinderTestsPEP420.test_module_in_package) ... ok otest_no_read_directory (test.test_importlib.source.test_finder.Frozen_FinderTestsPEP420.test_no_read_directory) ... ok otest_package (test.test_importlib.source.test_finder.Frozen_FinderTestsPEP420.test_package) ... ok otest_package_in_package (test.test_importlib.source.test_finder.Frozen_FinderTestsPEP420.test_package_in_package) ... ok otest_package_over_module (test.test_importlib.source.test_finder.Frozen_FinderTestsPEP420.test_package_over_module) ... ok otest_dir_removal_handling (test.test_importlib.source.test_finder.Frozen_FinderTestsPEP451.test_dir_removal_handling) ... ok otest_empty_string_for_dir (test.test_importlib.source.test_finder.Frozen_FinderTestsPEP451.test_empty_string_for_dir) ... ok otest_failure (test.test_importlib.source.test_finder.Frozen_FinderTestsPEP451.test_failure) ... ok otest_ignore_file (test.test_importlib.source.test_finder.Frozen_FinderTestsPEP451.test_ignore_file) ... ok otest_invalidate_caches (test.test_importlib.source.test_finder.Frozen_FinderTestsPEP451.test_invalidate_caches) ... ok otest_module (test.test_importlib.source.test_finder.Frozen_FinderTestsPEP451.test_module) ... ok otest_module_in_package (test.test_importlib.source.test_finder.Frozen_FinderTestsPEP451.test_module_in_package) ... ok otest_no_read_directory (test.test_importlib.source.test_finder.Frozen_FinderTestsPEP451.test_no_read_directory) ... ok otest_package (test.test_importlib.source.test_finder.Frozen_FinderTestsPEP451.test_package) ... ok otest_package_in_package (test.test_importlib.source.test_finder.Frozen_FinderTestsPEP451.test_package_in_package) ... ok otest_package_over_module (test.test_importlib.source.test_finder.Frozen_FinderTestsPEP451.test_package_over_module) ... ok otest_dir_removal_handling (test.test_importlib.source.test_finder.Source_FinderTestsPEP420.test_dir_removal_handling) ... ok otest_empty_string_for_dir (test.test_importlib.source.test_finder.Source_FinderTestsPEP420.test_empty_string_for_dir) ... ok otest_failure (test.test_importlib.source.test_finder.Source_FinderTestsPEP420.test_failure) ... ok otest_ignore_file (test.test_importlib.source.test_finder.Source_FinderTestsPEP420.test_ignore_file) ... ok otest_invalidate_caches (test.test_importlib.source.test_finder.Source_FinderTestsPEP420.test_invalidate_caches) ... ok otest_module (test.test_importlib.source.test_finder.Source_FinderTestsPEP420.test_module) ... ok otest_module_in_package (test.test_importlib.source.test_finder.Source_FinderTestsPEP420.test_module_in_package) ... ok otest_no_read_directory (test.test_importlib.source.test_finder.Source_FinderTestsPEP420.test_no_read_directory) ... ok otest_package (test.test_importlib.source.test_finder.Source_FinderTestsPEP420.test_package) ... ok otest_package_in_package (test.test_importlib.source.test_finder.Source_FinderTestsPEP420.test_package_in_package) ... ok otest_package_over_module (test.test_importlib.source.test_finder.Source_FinderTestsPEP420.test_package_over_module) ... ok otest_dir_removal_handling (test.test_importlib.source.test_finder.Source_FinderTestsPEP451.test_dir_removal_handling) ... ok otest_empty_string_for_dir (test.test_importlib.source.test_finder.Source_FinderTestsPEP451.test_empty_string_for_dir) ... ok otest_failure (test.test_importlib.source.test_finder.Source_FinderTestsPEP451.test_failure) ... ok otest_ignore_file (test.test_importlib.source.test_finder.Source_FinderTestsPEP451.test_ignore_file) ... ok otest_invalidate_caches (test.test_importlib.source.test_finder.Source_FinderTestsPEP451.test_invalidate_caches) ... ok otest_module (test.test_importlib.source.test_finder.Source_FinderTestsPEP451.test_module) ... ok otest_module_in_package (test.test_importlib.source.test_finder.Source_FinderTestsPEP451.test_module_in_package) ... ok otest_no_read_directory (test.test_importlib.source.test_finder.Source_FinderTestsPEP451.test_no_read_directory) ... ok otest_package (test.test_importlib.source.test_finder.Source_FinderTestsPEP451.test_package) ... ok otest_package_in_package (test.test_importlib.source.test_finder.Source_FinderTestsPEP451.test_package_in_package) ... ok otest_package_over_module (test.test_importlib.source.test_finder.Source_FinderTestsPEP451.test_package_over_module) ... ok otest_empty_string (test.test_importlib.source.test_path_hook.Frozen_PathHookTest.test_empty_string) ... ok otest_success (test.test_importlib.source.test_path_hook.Frozen_PathHookTest.test_success) ... ok otest_empty_string (test.test_importlib.source.test_path_hook.Source_PathHookTest.test_empty_string) ... ok otest_success (test.test_importlib.source.test_path_hook.Source_PathHookTest.test_success) ... ok otest_bom (test.test_importlib.source.test_source_encoding.Frozen_EncodingTestPEP302.test_bom) ... ok otest_bom_and_utf_8 (test.test_importlib.source.test_source_encoding.Frozen_EncodingTestPEP302.test_bom_and_utf_8) ... ok otest_bom_conflict (test.test_importlib.source.test_source_encoding.Frozen_EncodingTestPEP302.test_bom_conflict) ... ok otest_default_encoding (test.test_importlib.source.test_source_encoding.Frozen_EncodingTestPEP302.test_default_encoding) ... ok otest_encoding_on_first_line (test.test_importlib.source.test_source_encoding.Frozen_EncodingTestPEP302.test_encoding_on_first_line) ... ok otest_encoding_on_second_line (test.test_importlib.source.test_source_encoding.Frozen_EncodingTestPEP302.test_encoding_on_second_line) ... ok otest_non_obvious_encoding (test.test_importlib.source.test_source_encoding.Frozen_EncodingTestPEP302.test_non_obvious_encoding) ... ok otest_bom (test.test_importlib.source.test_source_encoding.Frozen_EncodingTestPEP451.test_bom) ... ok otest_bom_and_utf_8 (test.test_importlib.source.test_source_encoding.Frozen_EncodingTestPEP451.test_bom_and_utf_8) ... ok otest_bom_conflict (test.test_importlib.source.test_source_encoding.Frozen_EncodingTestPEP451.test_bom_conflict) ... ok otest_default_encoding (test.test_importlib.source.test_source_encoding.Frozen_EncodingTestPEP451.test_default_encoding) ... ok otest_encoding_on_first_line (test.test_importlib.source.test_source_encoding.Frozen_EncodingTestPEP451.test_encoding_on_first_line) ... ok otest_encoding_on_second_line (test.test_importlib.source.test_source_encoding.Frozen_EncodingTestPEP451.test_encoding_on_second_line) ... ok otest_non_obvious_encoding (test.test_importlib.source.test_source_encoding.Frozen_EncodingTestPEP451.test_non_obvious_encoding) ... ok otest_cr (test.test_importlib.source.test_source_encoding.Frozen_LineEndingTestPEP302.test_cr) ... ok otest_crlf (test.test_importlib.source.test_source_encoding.Frozen_LineEndingTestPEP302.test_crlf) ... ok otest_lf (test.test_importlib.source.test_source_encoding.Frozen_LineEndingTestPEP302.test_lf) ... ok otest_cr (test.test_importlib.source.test_source_encoding.Frozen_LineEndingTestPEP451.test_cr) ... ok otest_crlf (test.test_importlib.source.test_source_encoding.Frozen_LineEndingTestPEP451.test_crlf) ... ok otest_lf (test.test_importlib.source.test_source_encoding.Frozen_LineEndingTestPEP451.test_lf) ... ok otest_bom (test.test_importlib.source.test_source_encoding.Source_EncodingTestPEP302.test_bom) ... ok otest_bom_and_utf_8 (test.test_importlib.source.test_source_encoding.Source_EncodingTestPEP302.test_bom_and_utf_8) ... ok otest_bom_conflict (test.test_importlib.source.test_source_encoding.Source_EncodingTestPEP302.test_bom_conflict) ... ok otest_default_encoding (test.test_importlib.source.test_source_encoding.Source_EncodingTestPEP302.test_default_encoding) ... ok otest_encoding_on_first_line (test.test_importlib.source.test_source_encoding.Source_EncodingTestPEP302.test_encoding_on_first_line) ... ok otest_encoding_on_second_line (test.test_importlib.source.test_source_encoding.Source_EncodingTestPEP302.test_encoding_on_second_line) ... ok otest_non_obvious_encoding (test.test_importlib.source.test_source_encoding.Source_EncodingTestPEP302.test_non_obvious_encoding) ... ok otest_bom (test.test_importlib.source.test_source_encoding.Source_EncodingTestPEP451.test_bom) ... ok otest_bom_and_utf_8 (test.test_importlib.source.test_source_encoding.Source_EncodingTestPEP451.test_bom_and_utf_8) ... ok otest_bom_conflict (test.test_importlib.source.test_source_encoding.Source_EncodingTestPEP451.test_bom_conflict) ... ok otest_default_encoding (test.test_importlib.source.test_source_encoding.Source_EncodingTestPEP451.test_default_encoding) ... ok otest_encoding_on_first_line (test.test_importlib.source.test_source_encoding.Source_EncodingTestPEP451.test_encoding_on_first_line) ... ok otest_encoding_on_second_line (test.test_importlib.source.test_source_encoding.Source_EncodingTestPEP451.test_encoding_on_second_line) ... ok otest_non_obvious_encoding (test.test_importlib.source.test_source_encoding.Source_EncodingTestPEP451.test_non_obvious_encoding) ... ok otest_cr (test.test_importlib.source.test_source_encoding.Source_LineEndingTestPEP302.test_cr) ... ok otest_crlf (test.test_importlib.source.test_source_encoding.Source_LineEndingTestPEP302.test_crlf) ... ok otest_lf (test.test_importlib.source.test_source_encoding.Source_LineEndingTestPEP302.test_lf) ... ok otest_cr (test.test_importlib.source.test_source_encoding.Source_LineEndingTestPEP451.test_cr) ... ok otest_crlf (test.test_importlib.source.test_source_encoding.Source_LineEndingTestPEP451.test_crlf) ... ok otest_lf (test.test_importlib.source.test_source_encoding.Source_LineEndingTestPEP451.test_lf) ... ok otest_get_source (test.test_importlib.test_abc.Frozen_InspectLoaderDefaultsTests.test_get_source) ... ok otest_is_package (test.test_importlib.test_abc.Frozen_InspectLoaderDefaultsTests.test_is_package) ... ok otest_get_code (test.test_importlib.test_abc.Frozen_ExecutionLoaderGetCodeTests.test_get_code) ... ok otest_get_code_no_path (test.test_importlib.test_abc.Frozen_ExecutionLoaderGetCodeTests.test_get_code_no_path) ... ok otest_get_code_source_is_None (test.test_importlib.test_abc.Frozen_ExecutionLoaderGetCodeTests.test_get_code_source_is_None) ... ok otest_get_code_source_not_found (test.test_importlib.test_abc.Frozen_ExecutionLoaderGetCodeTests.test_get_code_source_not_found) ... ok otest_subclasses (test.test_importlib.test_abc.Frozen_ExecutionLoader.test_subclasses) ... ok otest_superclasses (test.test_importlib.test_abc.Frozen_ExecutionLoader.test_superclasses) ... ok otest_subclasses (test.test_importlib.test_abc.Frozen_FileLoader.test_subclasses) ... ok otest_superclasses (test.test_importlib.test_abc.Frozen_FileLoader.test_superclasses) ... ok otest_get_source (test.test_importlib.test_abc.Frozen_InspectLoaderDefaultsTests.test_get_source) ... ok otest_is_package (test.test_importlib.test_abc.Frozen_InspectLoaderDefaultsTests.test_is_package) ... ok otest_get_code (test.test_importlib.test_abc.Frozen_InspectLoaderGetCodeTests.test_get_code) ... ok otest_get_code_source_is_None (test.test_importlib.test_abc.Frozen_InspectLoaderGetCodeTests.test_get_code_source_is_None) ... ok otest_get_code_source_not_found (test.test_importlib.test_abc.Frozen_InspectLoaderGetCodeTests.test_get_code_source_not_found) ... ok otest_get_code_ImportError (test.test_importlib.test_abc.Frozen_InspectLoaderLoadModuleTests.test_get_code_ImportError) ... ok otest_get_code_None (test.test_importlib.test_abc.Frozen_InspectLoaderLoadModuleTests.test_get_code_None) ... ok otest_module_returned (test.test_importlib.test_abc.Frozen_InspectLoaderLoadModuleTests.test_module_returned) ... ok otest_source_to_code_bytes (test.test_importlib.test_abc.Frozen_InspectLoaderSourceToCodeTests.test_source_to_code_bytes) ... ok otest_source_to_code_no_path (test.test_importlib.test_abc.Frozen_InspectLoaderSourceToCodeTests.test_source_to_code_no_path) ... ok otest_source_to_code_path (test.test_importlib.test_abc.Frozen_InspectLoaderSourceToCodeTests.test_source_to_code_path) ... ok otest_source_to_code_source (test.test_importlib.test_abc.Frozen_InspectLoaderSourceToCodeTests.test_source_to_code_source) ... ok otest_subclasses (test.test_importlib.test_abc.Frozen_InspectLoader.test_subclasses) ... ok otest_superclasses (test.test_importlib.test_abc.Frozen_InspectLoader.test_superclasses) ... ok otest_create_module (test.test_importlib.test_abc.Frozen_LoaderDefaultsTests.test_create_module) ... ok otest_load_module (test.test_importlib.test_abc.Frozen_LoaderDefaultsTests.test_load_module) ... ok otest_module_repr (test.test_importlib.test_abc.Frozen_LoaderDefaultsTests.test_module_repr) ... ok otest_fresh (test.test_importlib.test_abc.Frozen_LoaderLoadModuleTests.test_fresh) ... ok otest_reload (test.test_importlib.test_abc.Frozen_LoaderLoadModuleTests.test_reload) ... ok otest_invalidate_caches (test.test_importlib.test_abc.Frozen_MetaPathFinderDefaultsTests.test_invalidate_caches) ... ok otest_find_spec_with_explicit_target (test.test_importlib.test_abc.Frozen_MetaPathFinderFindModuleTests.test_find_spec_with_explicit_target) ... ok otest_no_spec (test.test_importlib.test_abc.Frozen_MetaPathFinderFindModuleTests.test_no_spec) ... ok otest_spec (test.test_importlib.test_abc.Frozen_MetaPathFinderFindModuleTests.test_spec) ... ok otest_subclasses (test.test_importlib.test_abc.Frozen_MetaPathFinder.test_subclasses) ... ok otest_superclasses (test.test_importlib.test_abc.Frozen_MetaPathFinder.test_superclasses) ... ok otest_invalidate_caches (test.test_importlib.test_abc.Frozen_PathEntryFinderDefaultsTests.test_invalidate_caches) ... ok otest_subclasses (test.test_importlib.test_abc.Frozen_PathEntryFinder.test_subclasses) ... ok otest_superclasses (test.test_importlib.test_abc.Frozen_PathEntryFinder.test_superclasses) ... ok otest_get_data (test.test_importlib.test_abc.Frozen_ResourceLoaderDefaultsTests.test_get_data) ... ok otest_subclasses (test.test_importlib.test_abc.Frozen_ResourceLoader.test_subclasses) ... ok otest_superclasses (test.test_importlib.test_abc.Frozen_ResourceLoader.test_superclasses) ... ok otest_code_bad_magic (test.test_importlib.test_abc.Frozen_SourceLoaderBytecodeTests.test_code_bad_magic) ... ok otest_code_bad_timestamp (test.test_importlib.test_abc.Frozen_SourceLoaderBytecodeTests.test_code_bad_timestamp) ... ok otest_code_with_everything (test.test_importlib.test_abc.Frozen_SourceLoaderBytecodeTests.test_code_with_everything) ... ok otest_dont_write_bytecode (test.test_importlib.test_abc.Frozen_SourceLoaderBytecodeTests.test_dont_write_bytecode) ... ok otest_no_bytecode (test.test_importlib.test_abc.Frozen_SourceLoaderBytecodeTests.test_no_bytecode) ... ok otest_no_set_data (test.test_importlib.test_abc.Frozen_SourceLoaderBytecodeTests.test_no_set_data) ... ok otest_set_data_raises_exceptions (test.test_importlib.test_abc.Frozen_SourceLoaderBytecodeTests.test_set_data_raises_exceptions) ... ok otest_subclasses (test.test_importlib.test_abc.Frozen_SourceLoader.test_subclasses) ... ok otest_superclasses (test.test_importlib.test_abc.Frozen_SourceLoader.test_superclasses) ... ok otest_decoded_source (test.test_importlib.test_abc.Frozen_SourceLoaderGetSourceTests.test_decoded_source) ... ok otest_default_encoding (test.test_importlib.test_abc.Frozen_SourceLoaderGetSourceTests.test_default_encoding) ... ok otest_universal_newlines (test.test_importlib.test_abc.Frozen_SourceLoaderGetSourceTests.test_universal_newlines) ... ok otest_get_code (test.test_importlib.test_abc.Frozen_SourceOnlyLoaderTests.test_get_code) ... ok otest_get_source (test.test_importlib.test_abc.Frozen_SourceOnlyLoaderTests.test_get_source) ... ok otest_get_source_encoding (test.test_importlib.test_abc.Frozen_SourceOnlyLoaderTests.test_get_source_encoding) ... ok otest_is_package (test.test_importlib.test_abc.Frozen_SourceOnlyLoaderTests.test_is_package) ... ok otest_load_module (test.test_importlib.test_abc.Frozen_SourceOnlyLoaderTests.test_load_module) ... ok otest_package_settings (test.test_importlib.test_abc.Frozen_SourceOnlyLoaderTests.test_package_settings) ... ok otest_source_to_code (test.test_importlib.test_abc.Frozen_SourceOnlyLoaderTests.test_source_to_code) ... ok otest_deprecated_resource_loader (test.test_importlib.test_abc.ResourceLoaderDeprecationWarningsTests.test_deprecated_resource_loader) ... ok otest_create_module (test.test_importlib.test_abc.Source_LoaderDefaultsTests.test_create_module) ... ok otest_load_module (test.test_importlib.test_abc.Source_LoaderDefaultsTests.test_load_module) ... ok otest_module_repr (test.test_importlib.test_abc.Source_LoaderDefaultsTests.test_module_repr) ... ok otest_deprecated_path_mtime (test.test_importlib.test_abc.SourceLoaderDeprecationWarningsTests.test_deprecated_path_mtime) ... ok otest_code_bad_magic (test.test_importlib.test_abc.Source_SourceLoaderBytecodeTests.test_code_bad_magic) ... ok otest_code_bad_timestamp (test.test_importlib.test_abc.Source_SourceLoaderBytecodeTests.test_code_bad_timestamp) ... ok otest_code_with_everything (test.test_importlib.test_abc.Source_SourceLoaderBytecodeTests.test_code_with_everything) ... ok otest_dont_write_bytecode (test.test_importlib.test_abc.Source_SourceLoaderBytecodeTests.test_dont_write_bytecode) ... ok otest_no_bytecode (test.test_importlib.test_abc.Source_SourceLoaderBytecodeTests.test_no_bytecode) ... ok otest_no_set_data (test.test_importlib.test_abc.Source_SourceLoaderBytecodeTests.test_no_set_data) ... ok otest_set_data_raises_exceptions (test.test_importlib.test_abc.Source_SourceLoaderBytecodeTests.test_set_data_raises_exceptions) ... ok otest_get_source (test.test_importlib.test_abc.Source_InspectLoaderDefaultsTests.test_get_source) ... ok otest_is_package (test.test_importlib.test_abc.Source_InspectLoaderDefaultsTests.test_is_package) ... ok otest_get_code (test.test_importlib.test_abc.Source_ExecutionLoaderGetCodeTests.test_get_code) ... ok otest_get_code_no_path (test.test_importlib.test_abc.Source_ExecutionLoaderGetCodeTests.test_get_code_no_path) ... ok otest_get_code_source_is_None (test.test_importlib.test_abc.Source_ExecutionLoaderGetCodeTests.test_get_code_source_is_None) ... ok otest_get_code_source_not_found (test.test_importlib.test_abc.Source_ExecutionLoaderGetCodeTests.test_get_code_source_not_found) ... ok otest_subclasses (test.test_importlib.test_abc.Source_ExecutionLoader.test_subclasses) ... ok otest_superclasses (test.test_importlib.test_abc.Source_ExecutionLoader.test_superclasses) ... ok otest_subclasses (test.test_importlib.test_abc.Source_FileLoader.test_subclasses) ... ok otest_superclasses (test.test_importlib.test_abc.Source_FileLoader.test_superclasses) ... ok otest_get_source (test.test_importlib.test_abc.Source_InspectLoaderDefaultsTests.test_get_source) ... ok otest_is_package (test.test_importlib.test_abc.Source_InspectLoaderDefaultsTests.test_is_package) ... ok otest_get_code (test.test_importlib.test_abc.Source_InspectLoaderGetCodeTests.test_get_code) ... ok otest_get_code_source_is_None (test.test_importlib.test_abc.Source_InspectLoaderGetCodeTests.test_get_code_source_is_None) ... ok otest_get_code_source_not_found (test.test_importlib.test_abc.Source_InspectLoaderGetCodeTests.test_get_code_source_not_found) ... ok otest_get_code_ImportError (test.test_importlib.test_abc.Source_InspectLoaderLoadModuleTests.test_get_code_ImportError) ... ok otest_get_code_None (test.test_importlib.test_abc.Source_InspectLoaderLoadModuleTests.test_get_code_None) ... ok otest_module_returned (test.test_importlib.test_abc.Source_InspectLoaderLoadModuleTests.test_module_returned) ... ok otest_source_to_code_bytes (test.test_importlib.test_abc.Source_InspectLoaderSourceToCodeTests.test_source_to_code_bytes) ... ok otest_source_to_code_no_path (test.test_importlib.test_abc.Source_InspectLoaderSourceToCodeTests.test_source_to_code_no_path) ... ok otest_source_to_code_path (test.test_importlib.test_abc.Source_InspectLoaderSourceToCodeTests.test_source_to_code_path) ... ok otest_source_to_code_source (test.test_importlib.test_abc.Source_InspectLoaderSourceToCodeTests.test_source_to_code_source) ... ok otest_subclasses (test.test_importlib.test_abc.Source_InspectLoader.test_subclasses) ... ok otest_superclasses (test.test_importlib.test_abc.Source_InspectLoader.test_superclasses) ... ok otest_fresh (test.test_importlib.test_abc.Source_LoaderLoadModuleTests.test_fresh) ... ok otest_reload (test.test_importlib.test_abc.Source_LoaderLoadModuleTests.test_reload) ... ok otest_invalidate_caches (test.test_importlib.test_abc.Source_MetaPathFinderDefaultsTests.test_invalidate_caches) ... ok otest_find_spec_with_explicit_target (test.test_importlib.test_abc.Source_MetaPathFinderFindModuleTests.test_find_spec_with_explicit_target) ... ok otest_no_spec (test.test_importlib.test_abc.Source_MetaPathFinderFindModuleTests.test_no_spec) ... ok otest_spec (test.test_importlib.test_abc.Source_MetaPathFinderFindModuleTests.test_spec) ... ok otest_subclasses (test.test_importlib.test_abc.Source_MetaPathFinder.test_subclasses) ... ok otest_superclasses (test.test_importlib.test_abc.Source_MetaPathFinder.test_superclasses) ... ok otest_invalidate_caches (test.test_importlib.test_abc.Source_PathEntryFinderDefaultsTests.test_invalidate_caches) ... ok otest_subclasses (test.test_importlib.test_abc.Source_PathEntryFinder.test_subclasses) ... ok otest_superclasses (test.test_importlib.test_abc.Source_PathEntryFinder.test_superclasses) ... ok otest_get_data (test.test_importlib.test_abc.Source_ResourceLoaderDefaultsTests.test_get_data) ... ok otest_subclasses (test.test_importlib.test_abc.Source_ResourceLoader.test_subclasses) ... ok otest_superclasses (test.test_importlib.test_abc.Source_ResourceLoader.test_superclasses) ... ok otest_subclasses (test.test_importlib.test_abc.Source_SourceLoader.test_subclasses) ... ok otest_superclasses (test.test_importlib.test_abc.Source_SourceLoader.test_superclasses) ... ok otest_decoded_source (test.test_importlib.test_abc.Source_SourceLoaderGetSourceTests.test_decoded_source) ... ok otest_default_encoding (test.test_importlib.test_abc.Source_SourceLoaderGetSourceTests.test_default_encoding) ... ok otest_universal_newlines (test.test_importlib.test_abc.Source_SourceLoaderGetSourceTests.test_universal_newlines) ... ok otest_get_code (test.test_importlib.test_abc.Source_SourceOnlyLoaderTests.test_get_code) ... ok otest_get_source (test.test_importlib.test_abc.Source_SourceOnlyLoaderTests.test_get_source) ... ok otest_get_source_encoding (test.test_importlib.test_abc.Source_SourceOnlyLoaderTests.test_get_source_encoding) ... ok otest_is_package (test.test_importlib.test_abc.Source_SourceOnlyLoaderTests.test_is_package) ... ok otest_load_module (test.test_importlib.test_abc.Source_SourceOnlyLoaderTests.test_load_module) ... ok otest_package_settings (test.test_importlib.test_abc.Source_SourceOnlyLoaderTests.test_package_settings) ... ok otest_source_to_code (test.test_importlib.test_abc.Source_SourceOnlyLoaderTests.test_source_to_code) ... ok otest_no_frozen_importlib (test.test_importlib.test_api.FrozenImportlibTests.test_no_frozen_importlib) ... ok otest_nothing (test.test_importlib.test_api.Frozen_FindLoaderPEP451Tests.test_nothing) ... ok otest_success (test.test_importlib.test_api.Frozen_FindLoaderPEP451Tests.test_success) ... ok otest_success_path (test.test_importlib.test_api.Frozen_FindLoaderPEP451Tests.test_success_path) ... ok otest_sys_modules (test.test_importlib.test_api.Frozen_FindLoaderPEP451Tests.test_sys_modules) ... ok otest_sys_modules_loader_is_None (test.test_importlib.test_api.Frozen_FindLoaderPEP451Tests.test_sys_modules_loader_is_None) ... ok otest_sys_modules_loader_is_not_set (test.test_importlib.test_api.Frozen_FindLoaderPEP451Tests.test_sys_modules_loader_is_not_set) ... ok otest_absolute_import_with_package (test.test_importlib.test_api.Frozen_ImportModuleTests.test_absolute_import_with_package) ... ok otest_absolute_package_import (test.test_importlib.test_api.Frozen_ImportModuleTests.test_absolute_package_import) ... ok otest_deep_relative_package_import (test.test_importlib.test_api.Frozen_ImportModuleTests.test_deep_relative_package_import) ... ok otest_loaded_once (test.test_importlib.test_api.Frozen_ImportModuleTests.test_loaded_once) ... ok otest_module_import (test.test_importlib.test_api.Frozen_ImportModuleTests.test_module_import) ... ok otest_relative_import_wo_package (test.test_importlib.test_api.Frozen_ImportModuleTests.test_relative_import_wo_package) ... ok otest_shallow_relative_package_import (test.test_importlib.test_api.Frozen_ImportModuleTests.test_shallow_relative_package_import) ... ok otest_method_called (test.test_importlib.test_api.Frozen_InvalidateCacheTests.test_method_called) ... ok otest_method_lacking (test.test_importlib.test_api.Frozen_InvalidateCacheTests.test_method_lacking) ... ok otest_module_missing_spec (test.test_importlib.test_api.Frozen_ReloadTests.test_module_missing_spec) ... ok otest_module_replaced (test.test_importlib.test_api.Frozen_ReloadTests.test_module_replaced) ... ok otest_reload_loader_replaced (test.test_importlib.test_api.Frozen_ReloadTests.test_reload_loader_replaced) ... ok otest_reload_location_changed (test.test_importlib.test_api.Frozen_ReloadTests.test_reload_location_changed) ... ok otest_reload_missing_loader (test.test_importlib.test_api.Frozen_ReloadTests.test_reload_missing_loader) ... ok otest_reload_modules (test.test_importlib.test_api.Frozen_ReloadTests.test_reload_modules) ... ok otest_reload_namespace_changed (test.test_importlib.test_api.Frozen_ReloadTests.test_reload_namespace_changed) ... ok otest_reload_submodule (test.test_importlib.test_api.Frozen_ReloadTests.test_reload_submodule) ... ok otest_reload_traceback_with_non_str (test.test_importlib.test_api.Frozen_ReloadTests.test_reload_traceback_with_non_str) ... ok otest_everyone_has___loader__ (test.test_importlib.test_api.Frozen_StartupTests.test_everyone_has___loader__) ... ok otest_everyone_has___spec__ (test.test_importlib.test_api.Frozen_StartupTests.test_everyone_has___spec__) ... ok otest_nothing (test.test_importlib.test_api.Source_FindLoaderPEP451Tests.test_nothing) ... ok otest_success (test.test_importlib.test_api.Source_FindLoaderPEP451Tests.test_success) ... ok otest_success_path (test.test_importlib.test_api.Source_FindLoaderPEP451Tests.test_success_path) ... ok otest_sys_modules (test.test_importlib.test_api.Source_FindLoaderPEP451Tests.test_sys_modules) ... ok otest_sys_modules_loader_is_None (test.test_importlib.test_api.Source_FindLoaderPEP451Tests.test_sys_modules_loader_is_None) ... ok otest_sys_modules_loader_is_not_set (test.test_importlib.test_api.Source_FindLoaderPEP451Tests.test_sys_modules_loader_is_not_set) ... ok otest_absolute_import_with_package (test.test_importlib.test_api.Source_ImportModuleTests.test_absolute_import_with_package) ... ok otest_absolute_package_import (test.test_importlib.test_api.Source_ImportModuleTests.test_absolute_package_import) ... ok otest_deep_relative_package_import (test.test_importlib.test_api.Source_ImportModuleTests.test_deep_relative_package_import) ... ok otest_loaded_once (test.test_importlib.test_api.Source_ImportModuleTests.test_loaded_once) ... ok otest_module_import (test.test_importlib.test_api.Source_ImportModuleTests.test_module_import) ... ok otest_relative_import_wo_package (test.test_importlib.test_api.Source_ImportModuleTests.test_relative_import_wo_package) ... ok otest_shallow_relative_package_import (test.test_importlib.test_api.Source_ImportModuleTests.test_shallow_relative_package_import) ... ok otest_method_called (test.test_importlib.test_api.Source_InvalidateCacheTests.test_method_called) ... ok otest_method_lacking (test.test_importlib.test_api.Source_InvalidateCacheTests.test_method_lacking) ... ok otest_module_missing_spec (test.test_importlib.test_api.Source_ReloadTests.test_module_missing_spec) ... ok otest_module_replaced (test.test_importlib.test_api.Source_ReloadTests.test_module_replaced) ... ok otest_reload_loader_replaced (test.test_importlib.test_api.Source_ReloadTests.test_reload_loader_replaced) ... ok otest_reload_location_changed (test.test_importlib.test_api.Source_ReloadTests.test_reload_location_changed) ... ok otest_reload_missing_loader (test.test_importlib.test_api.Source_ReloadTests.test_reload_missing_loader) ... ok otest_reload_modules (test.test_importlib.test_api.Source_ReloadTests.test_reload_modules) ... ok otest_reload_namespace_changed (test.test_importlib.test_api.Source_ReloadTests.test_reload_namespace_changed) ... ok otest_reload_submodule (test.test_importlib.test_api.Source_ReloadTests.test_reload_submodule) ... ok otest_reload_traceback_with_non_str (test.test_importlib.test_api.Source_ReloadTests.test_reload_traceback_with_non_str) ... ok otest_everyone_has___loader__ (test.test_importlib.test_api.Source_StartupTests.test_everyone_has___loader__) ... ok otest_everyone_has___spec__ (test.test_importlib.test_api.Source_StartupTests.test_everyone_has___spec__) ... ok otest_machinery_deprecated_attributes (test.test_importlib.test_api.TestDeprecations.test_machinery_deprecated_attributes) ... ok otest_machinery (test.test_importlib.test_api.TestModuleAll.test_machinery) ... ok otest_util (test.test_importlib.test_api.TestModuleAll.test_util) ... ok otest_init (test.test_importlib.test_lazy.LazyLoaderFactoryTests.test_init) ... ok otest_validation (test.test_importlib.test_lazy.LazyLoaderFactoryTests.test_validation) ... ok otest_attr_unchanged (test.test_importlib.test_lazy.LazyLoaderTests.test_attr_unchanged) ... ok otest_delete_eventual_attr (test.test_importlib.test_lazy.LazyLoaderTests.test_delete_eventual_attr) ... ok otest_delete_preexisting_attr (test.test_importlib.test_lazy.LazyLoaderTests.test_delete_preexisting_attr) ... ok otest_e2e (test.test_importlib.test_lazy.LazyLoaderTests.test_e2e) ... ok otest_init (test.test_importlib.test_lazy.LazyLoaderTests.test_init) ... ok otest_lazy_module_type_override (test.test_importlib.test_lazy.LazyLoaderTests.test_lazy_module_type_override) ... ok otest_lazy_self_referential_modules (test.test_importlib.test_lazy.LazyLoaderTests.test_lazy_self_referential_modules) ... ok otest_module_already_in_sys (test.test_importlib.test_lazy.LazyLoaderTests.test_module_already_in_sys) ... ok otest_module_load_race (test.test_importlib.test_lazy.LazyLoaderTests.test_module_load_race) ... ok otest_module_substitution_error (test.test_importlib.test_lazy.LazyLoaderTests.test_module_substitution_error) ... ok otest_mutated_attr (test.test_importlib.test_lazy.LazyLoaderTests.test_mutated_attr) ... ok otest_mutated_preexisting_attr (test.test_importlib.test_lazy.LazyLoaderTests.test_mutated_preexisting_attr) ... ok otest_new_attr (test.test_importlib.test_lazy.LazyLoaderTests.test_new_attr) ... ok otest_deadlock (test.test_importlib.test_locks.Frozen_DeadlockAvoidanceTests.test_deadlock) ... ok otest_no_deadlock (test.test_importlib.test_locks.Frozen_DeadlockAvoidanceTests.test_no_deadlock) ... ok otest_all_locks (test.test_importlib.test_locks.Frozen_LifetimeTests.test_all_locks) ... ok otest_lock_lifetime (test.test_importlib.test_locks.Frozen_LifetimeTests.test_lock_lifetime) ... ok otest_acquire_contended (test.test_importlib.test_locks.Frozen_ModuleLockAsRLockTests.test_acquire_contended) ... ok otest_acquire_destroy (test.test_importlib.test_locks.Frozen_ModuleLockAsRLockTests.test_acquire_destroy) ... ok otest_acquire_release (test.test_importlib.test_locks.Frozen_ModuleLockAsRLockTests.test_acquire_release) ... ok otest_constructor (test.test_importlib.test_locks.Frozen_ModuleLockAsRLockTests.test_constructor) ... ok otest_constructor_noargs (test.test_importlib.test_locks.Frozen_ModuleLockAsRLockTests.test_constructor_noargs) ... ok otest_different_thread (test.test_importlib.test_locks.Frozen_ModuleLockAsRLockTests.test_different_thread) ... ok otest_locked (test.test_importlib.test_locks.Frozen_ModuleLockAsRLockTests.test_locked) ... ok otest_locked_with_2threads (test.test_importlib.test_locks.Frozen_ModuleLockAsRLockTests.test_locked_with_2threads) ... ok otest_reacquire (test.test_importlib.test_locks.Frozen_ModuleLockAsRLockTests.test_reacquire) ... ok otest_release_unacquired (test.test_importlib.test_locks.Frozen_ModuleLockAsRLockTests.test_release_unacquired) ... ok otest_thread_leak (test.test_importlib.test_locks.Frozen_ModuleLockAsRLockTests.test_thread_leak) ... ok otest_weakref_deleted (test.test_importlib.test_locks.Frozen_ModuleLockAsRLockTests.test_weakref_deleted) ... ok otest_weakref_exists (test.test_importlib.test_locks.Frozen_ModuleLockAsRLockTests.test_weakref_exists) ... ok otest_deadlock (test.test_importlib.test_locks.Source_DeadlockAvoidanceTests.test_deadlock) ... ok otest_no_deadlock (test.test_importlib.test_locks.Source_DeadlockAvoidanceTests.test_no_deadlock) ... ok otest_all_locks (test.test_importlib.test_locks.Source_LifetimeTests.test_all_locks) ... ok otest_lock_lifetime (test.test_importlib.test_locks.Source_LifetimeTests.test_lock_lifetime) ... ok otest_acquire_contended (test.test_importlib.test_locks.Source_ModuleLockAsRLockTests.test_acquire_contended) ... ok otest_acquire_destroy (test.test_importlib.test_locks.Source_ModuleLockAsRLockTests.test_acquire_destroy) ... ok otest_acquire_release (test.test_importlib.test_locks.Source_ModuleLockAsRLockTests.test_acquire_release) ... ok otest_constructor (test.test_importlib.test_locks.Source_ModuleLockAsRLockTests.test_constructor) ... ok otest_constructor_noargs (test.test_importlib.test_locks.Source_ModuleLockAsRLockTests.test_constructor_noargs) ... ok otest_different_thread (test.test_importlib.test_locks.Source_ModuleLockAsRLockTests.test_different_thread) ... ok otest_locked (test.test_importlib.test_locks.Source_ModuleLockAsRLockTests.test_locked) ... ok otest_locked_with_2threads (test.test_importlib.test_locks.Source_ModuleLockAsRLockTests.test_locked_with_2threads) ... ok otest_reacquire (test.test_importlib.test_locks.Source_ModuleLockAsRLockTests.test_reacquire) ... ok otest_release_unacquired (test.test_importlib.test_locks.Source_ModuleLockAsRLockTests.test_release_unacquired) ... ok otest_thread_leak (test.test_importlib.test_locks.Source_ModuleLockAsRLockTests.test_thread_leak) ... ok otest_weakref_deleted (test.test_importlib.test_locks.Source_ModuleLockAsRLockTests.test_weakref_deleted) ... ok otest_weakref_exists (test.test_importlib.test_locks.Source_ModuleLockAsRLockTests.test_weakref_exists) ... ok otest_imports (test.test_importlib.test_namespace_pkgs.CombinedNamespacePackages.test_imports) ... ok otest_project3_fails (test.test_importlib.test_namespace_pkgs.DynamicPathCalculation.test_project3_fails) ... ok otest_project3_succeeds (test.test_importlib.test_namespace_pkgs.DynamicPathCalculation.test_project3_succeeds) ... ok otest_dynamic_path (test.test_importlib.test_namespace_pkgs.DynamicPathNamespacePackage.test_dynamic_path) ... ok otest_non_namespace_package_takes_precedence (test.test_importlib.test_namespace_pkgs.LegacySupport.test_non_namespace_package_takes_precedence) ... ok otest_loader_abc (test.test_importlib.test_namespace_pkgs.LoaderTests.test_loader_abc) ... ok otest_namespace_loader_consistency (test.test_importlib.test_namespace_pkgs.LoaderTests.test_namespace_loader_consistency) ... ok otest_namespace_origin_consistency (test.test_importlib.test_namespace_pkgs.LoaderTests.test_namespace_origin_consistency) ... ok otest_path_indexable (test.test_importlib.test_namespace_pkgs.LoaderTests.test_path_indexable) ... ok otest_module_before_namespace_package (test.test_importlib.test_namespace_pkgs.ModuleAndNamespacePackageInSameDir.test_module_before_namespace_package) ... ok otest_cant_import_other (test.test_importlib.test_namespace_pkgs.ReloadTests.test_cant_import_other) ... ok otest_dynamic_path (test.test_importlib.test_namespace_pkgs.ReloadTests.test_dynamic_path) ... ok otest_simple_package (test.test_importlib.test_namespace_pkgs.ReloadTests.test_simple_package) ... ok otest_imports (test.test_importlib.test_namespace_pkgs.SeparatedNamespacePackages.test_imports) ... ok otest_invalidate_caches (test.test_importlib.test_namespace_pkgs.SeparatedNamespacePackagesCreatedWhileRunning.test_invalidate_caches) ... ok otest_imports (test.test_importlib.test_namespace_pkgs.SeparatedNestedZipNamespacePackages.test_imports) ... ok otest_first_path_wins (test.test_importlib.test_namespace_pkgs.SeparatedOverlappingNamespacePackages.test_first_path_wins) ... ok otest_first_path_wins_again (test.test_importlib.test_namespace_pkgs.SeparatedOverlappingNamespacePackages.test_first_path_wins_again) ... ok otest_first_path_wins_importing_second_first (test.test_importlib.test_namespace_pkgs.SeparatedOverlappingNamespacePackages.test_first_path_wins_importing_second_first) ... ok otest_imports (test.test_importlib.test_namespace_pkgs.SeparatedZipNamespacePackages.test_imports) ... ok otest_cant_import_other (test.test_importlib.test_namespace_pkgs.SingleNamespacePackage.test_cant_import_other) ... ok otest_simple_package (test.test_importlib.test_namespace_pkgs.SingleNamespacePackage.test_simple_package) ... ok otest_simple_repr (test.test_importlib.test_namespace_pkgs.SingleNamespacePackage.test_simple_repr) ... ok otest_cant_import_other (test.test_importlib.test_namespace_pkgs.SingleNestedZipNamespacePackage.test_cant_import_other) ... ok otest_simple_package (test.test_importlib.test_namespace_pkgs.SingleNestedZipNamespacePackage.test_simple_package) ... ok otest_cant_import_other (test.test_importlib.test_namespace_pkgs.SingleZipNamespacePackage.test_cant_import_other) ... ok otest_simple_package (test.test_importlib.test_namespace_pkgs.SingleZipNamespacePackage.test_simple_package) ... ok otest_missing_directory (test.test_importlib.test_namespace_pkgs.ZipWithMissingDirectory.test_missing_directory) ... ok otest_missing_directory2 (test.test_importlib.test_namespace_pkgs.ZipWithMissingDirectory.test_missing_directory2) ... ok otest_present_directory (test.test_importlib.test_namespace_pkgs.ZipWithMissingDirectory.test_present_directory) ... ok otest_package_import__semantics (test.test_importlib.test_pkg_import.TestImport.test_package_import__semantics) ... ok otest_spec_from_file_location_default (test.test_importlib.test_spec.Frozen_FactoryTests.test_spec_from_file_location_default) ... ok otest_spec_from_file_location_default_bad_suffix (test.test_importlib.test_spec.Frozen_FactoryTests.test_spec_from_file_location_default_bad_suffix) ... ok otest_spec_from_file_location_default_without_location (test.test_importlib.test_spec.Frozen_FactoryTests.test_spec_from_file_location_default_without_location) ... ok otest_spec_from_file_location_loader_no_location (test.test_importlib.test_spec.Frozen_FactoryTests.test_spec_from_file_location_loader_no_location) ... ok otest_spec_from_file_location_loader_no_location_bad_get_filename (test.test_importlib.test_spec.Frozen_FactoryTests.test_spec_from_file_location_loader_no_location_bad_get_filename) ... ok otest_spec_from_file_location_loader_no_location_no_get_filename (test.test_importlib.test_spec.Frozen_FactoryTests.test_spec_from_file_location_loader_no_location_no_get_filename) ... ok otest_spec_from_file_location_path_like_arg (test.test_importlib.test_spec.Frozen_FactoryTests.test_spec_from_file_location_path_like_arg) ... ok otest_spec_from_file_location_relative_path (test.test_importlib.test_spec.Frozen_FactoryTests.test_spec_from_file_location_relative_path) ... ok otest_spec_from_file_location_smsl_default (test.test_importlib.test_spec.Frozen_FactoryTests.test_spec_from_file_location_smsl_default) ... ok otest_spec_from_file_location_smsl_default_bad_is_package (test.test_importlib.test_spec.Frozen_FactoryTests.test_spec_from_file_location_smsl_default_bad_is_package) ... ok otest_spec_from_file_location_smsl_default_no_is_package (test.test_importlib.test_spec.Frozen_FactoryTests.test_spec_from_file_location_smsl_default_no_is_package) ... ok otest_spec_from_file_location_smsl_default_not_package (test.test_importlib.test_spec.Frozen_FactoryTests.test_spec_from_file_location_smsl_default_not_package) ... ok otest_spec_from_file_location_smsl_empty (test.test_importlib.test_spec.Frozen_FactoryTests.test_spec_from_file_location_smsl_empty) ... ok otest_spec_from_file_location_smsl_none (test.test_importlib.test_spec.Frozen_FactoryTests.test_spec_from_file_location_smsl_none) ... ok otest_spec_from_file_location_smsl_not_empty (test.test_importlib.test_spec.Frozen_FactoryTests.test_spec_from_file_location_smsl_not_empty) ... ok otest_spec_from_loader_default (test.test_importlib.test_spec.Frozen_FactoryTests.test_spec_from_loader_default) ... ok otest_spec_from_loader_default_with_bad_is_package (test.test_importlib.test_spec.Frozen_FactoryTests.test_spec_from_loader_default_with_bad_is_package) ... ok otest_spec_from_loader_default_with_file_loader (test.test_importlib.test_spec.Frozen_FactoryTests.test_spec_from_loader_default_with_file_loader) ... ok otest_spec_from_loader_is_package_false (test.test_importlib.test_spec.Frozen_FactoryTests.test_spec_from_loader_is_package_false) ... ok otest_spec_from_loader_is_package_false_with_fileloader (test.test_importlib.test_spec.Frozen_FactoryTests.test_spec_from_loader_is_package_false_with_fileloader) ... ok otest_spec_from_loader_is_package_true (test.test_importlib.test_spec.Frozen_FactoryTests.test_spec_from_loader_is_package_true) ... ok otest_spec_from_loader_is_package_true_with_fileloader (test.test_importlib.test_spec.Frozen_FactoryTests.test_spec_from_loader_is_package_true_with_fileloader) ... ok otest_spec_from_loader_is_package_with_loader_false (test.test_importlib.test_spec.Frozen_FactoryTests.test_spec_from_loader_is_package_with_loader_false) ... ok otest_spec_from_loader_is_package_with_loader_true (test.test_importlib.test_spec.Frozen_FactoryTests.test_spec_from_loader_is_package_with_loader_true) ... ok otest_spec_from_loader_origin (test.test_importlib.test_spec.Frozen_FactoryTests.test_spec_from_loader_origin) ... ok otest_spec_from_loader_origin_and_is_package (test.test_importlib.test_spec.Frozen_FactoryTests.test_spec_from_loader_origin_and_is_package) ... ok otest_exec (test.test_importlib.test_spec.Frozen_ModuleSpecMethodsTests.test_exec) ... ok otest_load (test.test_importlib.test_spec.Frozen_ModuleSpecMethodsTests.test_load) ... ok otest_load_failed (test.test_importlib.test_spec.Frozen_ModuleSpecMethodsTests.test_load_failed) ... ok otest_load_failed_removed (test.test_importlib.test_spec.Frozen_ModuleSpecMethodsTests.test_load_failed_removed) ... ok otest_load_legacy_attributes_immutable (test.test_importlib.test_spec.Frozen_ModuleSpecMethodsTests.test_load_legacy_attributes_immutable) ... ok otest_load_replaced (test.test_importlib.test_spec.Frozen_ModuleSpecMethodsTests.test_load_replaced) ... ok otest_reload (test.test_importlib.test_spec.Frozen_ModuleSpecMethodsTests.test_reload) ... ok otest_reload_extra_attributes (test.test_importlib.test_spec.Frozen_ModuleSpecMethodsTests.test_reload_extra_attributes) ... ok otest_reload_init_module_attrs (test.test_importlib.test_spec.Frozen_ModuleSpecMethodsTests.test_reload_init_module_attrs) ... ok otest_reload_modified (test.test_importlib.test_spec.Frozen_ModuleSpecMethodsTests.test_reload_modified) ... ok otest_cached_no_origin (test.test_importlib.test_spec.Frozen_ModuleSpecTests.test_cached_no_origin) ... ok otest_cached_set (test.test_importlib.test_spec.Frozen_ModuleSpecTests.test_cached_set) ... ok otest_cached_source (test.test_importlib.test_spec.Frozen_ModuleSpecTests.test_cached_source) ... ok otest_cached_source_missing_cache_tag (test.test_importlib.test_spec.Frozen_ModuleSpecTests.test_cached_source_missing_cache_tag) ... ok otest_cached_source_unknown_suffix (test.test_importlib.test_spec.Frozen_ModuleSpecTests.test_cached_source_unknown_suffix) ... ok otest_cached_sourceless (test.test_importlib.test_spec.Frozen_ModuleSpecTests.test_cached_sourceless) ... ok otest_cached_with_origin_not_location (test.test_importlib.test_spec.Frozen_ModuleSpecTests.test_cached_with_origin_not_location) ... ok otest_default (test.test_importlib.test_spec.Frozen_ModuleSpecTests.test_default) ... ok otest_default_is_package_false (test.test_importlib.test_spec.Frozen_ModuleSpecTests.test_default_is_package_false) ... ok otest_default_is_package_true (test.test_importlib.test_spec.Frozen_ModuleSpecTests.test_default_is_package_true) ... ok otest_default_no_loader (test.test_importlib.test_spec.Frozen_ModuleSpecTests.test_default_no_loader) ... ok otest_equality (test.test_importlib.test_spec.Frozen_ModuleSpecTests.test_equality) ... ok otest_equality_location (test.test_importlib.test_spec.Frozen_ModuleSpecTests.test_equality_location) ... ok otest_has_location_setter (test.test_importlib.test_spec.Frozen_ModuleSpecTests.test_has_location_setter) ... ok otest_inequality (test.test_importlib.test_spec.Frozen_ModuleSpecTests.test_inequality) ... ok otest_inequality_incomplete (test.test_importlib.test_spec.Frozen_ModuleSpecTests.test_inequality_incomplete) ... ok otest_package (test.test_importlib.test_spec.Frozen_ModuleSpecTests.test_package) ... ok otest_package_is_package (test.test_importlib.test_spec.Frozen_ModuleSpecTests.test_package_is_package) ... ok otest_spec_from_file_location_default (test.test_importlib.test_spec.Source_FactoryTests.test_spec_from_file_location_default) ... ok otest_spec_from_file_location_default_bad_suffix (test.test_importlib.test_spec.Source_FactoryTests.test_spec_from_file_location_default_bad_suffix) ... ok otest_spec_from_file_location_default_without_location (test.test_importlib.test_spec.Source_FactoryTests.test_spec_from_file_location_default_without_location) ... ok otest_spec_from_file_location_loader_no_location (test.test_importlib.test_spec.Source_FactoryTests.test_spec_from_file_location_loader_no_location) ... ok otest_spec_from_file_location_loader_no_location_bad_get_filename (test.test_importlib.test_spec.Source_FactoryTests.test_spec_from_file_location_loader_no_location_bad_get_filename) ... ok otest_spec_from_file_location_loader_no_location_no_get_filename (test.test_importlib.test_spec.Source_FactoryTests.test_spec_from_file_location_loader_no_location_no_get_filename) ... ok otest_spec_from_file_location_path_like_arg (test.test_importlib.test_spec.Source_FactoryTests.test_spec_from_file_location_path_like_arg) ... ok otest_spec_from_file_location_relative_path (test.test_importlib.test_spec.Source_FactoryTests.test_spec_from_file_location_relative_path) ... ok otest_spec_from_file_location_smsl_default (test.test_importlib.test_spec.Source_FactoryTests.test_spec_from_file_location_smsl_default) ... ok otest_spec_from_file_location_smsl_default_bad_is_package (test.test_importlib.test_spec.Source_FactoryTests.test_spec_from_file_location_smsl_default_bad_is_package) ... ok otest_spec_from_file_location_smsl_default_no_is_package (test.test_importlib.test_spec.Source_FactoryTests.test_spec_from_file_location_smsl_default_no_is_package) ... ok otest_spec_from_file_location_smsl_default_not_package (test.test_importlib.test_spec.Source_FactoryTests.test_spec_from_file_location_smsl_default_not_package) ... ok otest_spec_from_file_location_smsl_empty (test.test_importlib.test_spec.Source_FactoryTests.test_spec_from_file_location_smsl_empty) ... ok otest_spec_from_file_location_smsl_none (test.test_importlib.test_spec.Source_FactoryTests.test_spec_from_file_location_smsl_none) ... ok otest_spec_from_file_location_smsl_not_empty (test.test_importlib.test_spec.Source_FactoryTests.test_spec_from_file_location_smsl_not_empty) ... ok otest_spec_from_loader_default (test.test_importlib.test_spec.Source_FactoryTests.test_spec_from_loader_default) ... ok otest_spec_from_loader_default_with_bad_is_package (test.test_importlib.test_spec.Source_FactoryTests.test_spec_from_loader_default_with_bad_is_package) ... ok otest_spec_from_loader_default_with_file_loader (test.test_importlib.test_spec.Source_FactoryTests.test_spec_from_loader_default_with_file_loader) ... ok otest_spec_from_loader_is_package_false (test.test_importlib.test_spec.Source_FactoryTests.test_spec_from_loader_is_package_false) ... ok otest_spec_from_loader_is_package_false_with_fileloader (test.test_importlib.test_spec.Source_FactoryTests.test_spec_from_loader_is_package_false_with_fileloader) ... ok otest_spec_from_loader_is_package_true (test.test_importlib.test_spec.Source_FactoryTests.test_spec_from_loader_is_package_true) ... ok otest_spec_from_loader_is_package_true_with_fileloader (test.test_importlib.test_spec.Source_FactoryTests.test_spec_from_loader_is_package_true_with_fileloader) ... ok otest_spec_from_loader_is_package_with_loader_false (test.test_importlib.test_spec.Source_FactoryTests.test_spec_from_loader_is_package_with_loader_false) ... ok otest_spec_from_loader_is_package_with_loader_true (test.test_importlib.test_spec.Source_FactoryTests.test_spec_from_loader_is_package_with_loader_true) ... ok otest_spec_from_loader_origin (test.test_importlib.test_spec.Source_FactoryTests.test_spec_from_loader_origin) ... ok otest_spec_from_loader_origin_and_is_package (test.test_importlib.test_spec.Source_FactoryTests.test_spec_from_loader_origin_and_is_package) ... ok otest_exec (test.test_importlib.test_spec.Source_ModuleSpecMethodsTests.test_exec) ... ok otest_load (test.test_importlib.test_spec.Source_ModuleSpecMethodsTests.test_load) ... ok otest_load_failed (test.test_importlib.test_spec.Source_ModuleSpecMethodsTests.test_load_failed) ... ok otest_load_failed_removed (test.test_importlib.test_spec.Source_ModuleSpecMethodsTests.test_load_failed_removed) ... ok otest_load_legacy_attributes_immutable (test.test_importlib.test_spec.Source_ModuleSpecMethodsTests.test_load_legacy_attributes_immutable) ... ok otest_load_replaced (test.test_importlib.test_spec.Source_ModuleSpecMethodsTests.test_load_replaced) ... ok otest_reload (test.test_importlib.test_spec.Source_ModuleSpecMethodsTests.test_reload) ... ok otest_reload_extra_attributes (test.test_importlib.test_spec.Source_ModuleSpecMethodsTests.test_reload_extra_attributes) ... ok otest_reload_init_module_attrs (test.test_importlib.test_spec.Source_ModuleSpecMethodsTests.test_reload_init_module_attrs) ... ok otest_reload_modified (test.test_importlib.test_spec.Source_ModuleSpecMethodsTests.test_reload_modified) ... ok otest_cached_no_origin (test.test_importlib.test_spec.Source_ModuleSpecTests.test_cached_no_origin) ... ok otest_cached_set (test.test_importlib.test_spec.Source_ModuleSpecTests.test_cached_set) ... ok otest_cached_source (test.test_importlib.test_spec.Source_ModuleSpecTests.test_cached_source) ... ok otest_cached_source_missing_cache_tag (test.test_importlib.test_spec.Source_ModuleSpecTests.test_cached_source_missing_cache_tag) ... ok otest_cached_source_unknown_suffix (test.test_importlib.test_spec.Source_ModuleSpecTests.test_cached_source_unknown_suffix) ... ok otest_cached_sourceless (test.test_importlib.test_spec.Source_ModuleSpecTests.test_cached_sourceless) ... ok otest_cached_with_origin_not_location (test.test_importlib.test_spec.Source_ModuleSpecTests.test_cached_with_origin_not_location) ... ok otest_default (test.test_importlib.test_spec.Source_ModuleSpecTests.test_default) ... ok otest_default_is_package_false (test.test_importlib.test_spec.Source_ModuleSpecTests.test_default_is_package_false) ... ok otest_default_is_package_true (test.test_importlib.test_spec.Source_ModuleSpecTests.test_default_is_package_true) ... ok otest_default_no_loader (test.test_importlib.test_spec.Source_ModuleSpecTests.test_default_no_loader) ... ok otest_equality (test.test_importlib.test_spec.Source_ModuleSpecTests.test_equality) ... ok otest_equality_location (test.test_importlib.test_spec.Source_ModuleSpecTests.test_equality_location) ... ok otest_has_location_setter (test.test_importlib.test_spec.Source_ModuleSpecTests.test_has_location_setter) ... ok otest_inequality (test.test_importlib.test_spec.Source_ModuleSpecTests.test_inequality) ... ok otest_inequality_incomplete (test.test_importlib.test_spec.Source_ModuleSpecTests.test_inequality_incomplete) ... ok otest_package (test.test_importlib.test_spec.Source_ModuleSpecTests.test_package) ... ok otest_package_is_package (test.test_importlib.test_spec.Source_ModuleSpecTests.test_package_is_package) ... ok otest_circular_imports (test.test_importlib.test_threaded_import.ThreadedImportTests.test_circular_imports) ... ok otest_concurrent_futures_circular_import (test.test_importlib.test_threaded_import.ThreadedImportTests.test_concurrent_futures_circular_import) ... skipped 'not enough memory: 1.8G minimum needed' otest_import_hangers (test.test_importlib.test_threaded_import.ThreadedImportTests.test_import_hangers) ... ok otest_multiprocessing_pool_circular_import (test.test_importlib.test_threaded_import.ThreadedImportTests.test_multiprocessing_pool_circular_import) ... skipped 'not enough memory: 1.8G minimum needed' otest_parallel_meta_path (test.test_importlib.test_threaded_import.ThreadedImportTests.test_parallel_meta_path) ... skipped 'not enough memory: 3.7G minimum needed' otest_parallel_module_init (test.test_importlib.test_threaded_import.ThreadedImportTests.test_parallel_module_init) ... skipped 'not enough memory: 3.7G minimum needed' otest_parallel_path_hooks (test.test_importlib.test_threaded_import.ThreadedImportTests.test_parallel_path_hooks) ... skipped 'not enough memory: 3.7G minimum needed' otest_side_effect_import (test.test_importlib.test_threaded_import.ThreadedImportTests.test_side_effect_import) ... ok otest_specified_encoding (test.test_importlib.test_util.Frozen_DecodeSourceBytesTests.test_specified_encoding) ... ok otest_universal_newlines (test.test_importlib.test_util.Frozen_DecodeSourceBytesTests.test_universal_newlines) ... ok otest_ut8_default (test.test_importlib.test_util.Frozen_DecodeSourceBytesTests.test_ut8_default) ... ok otest_find_relative_module (test.test_importlib.test_util.Frozen_FindSpecTests.test_find_relative_module) ... ok otest_find_relative_module_missing_package (test.test_importlib.test_util.Frozen_FindSpecTests.test_find_relative_module_missing_package) ... ok otest_find_submodule (test.test_importlib.test_util.Frozen_FindSpecTests.test_find_submodule) ... ok otest_find_submodule_in_module (test.test_importlib.test_util.Frozen_FindSpecTests.test_find_submodule_in_module) ... ok otest_find_submodule_parent_already_imported (test.test_importlib.test_util.Frozen_FindSpecTests.test_find_submodule_parent_already_imported) ... ok otest_nothing (test.test_importlib.test_util.Frozen_FindSpecTests.test_nothing) ... ok otest_success (test.test_importlib.test_util.Frozen_FindSpecTests.test_success) ... ok otest_sys_modules (test.test_importlib.test_util.Frozen_FindSpecTests.test_sys_modules) ... ok otest_sys_modules_loader_is_None (test.test_importlib.test_util.Frozen_FindSpecTests.test_sys_modules_loader_is_None) ... ok otest_sys_modules_spec_is_None (test.test_importlib.test_util.Frozen_FindSpecTests.test_sys_modules_spec_is_None) ... ok otest_sys_modules_spec_is_not_set (test.test_importlib.test_util.Frozen_FindSpecTests.test_sys_modules_spec_is_not_set) ... ok otest_sys_modules_without___loader__ (test.test_importlib.test_util.Frozen_FindSpecTests.test_sys_modules_without___loader__) ... ok otest_incorporates_rn (test.test_importlib.test_util.Frozen_MagicNumberTests.test_incorporates_rn) ... ok otest_length (test.test_importlib.test_util.Frozen_MagicNumberTests.test_length) ... ok otest___cached__ (test.test_importlib.test_util.Frozen_ModuleFromSpecTests.test___cached__) ... ok otest___file__ (test.test_importlib.test_util.Frozen_ModuleFromSpecTests.test___file__) ... ok otest___loader__ (test.test_importlib.test_util.Frozen_ModuleFromSpecTests.test___loader__) ... ok otest___name__ (test.test_importlib.test_util.Frozen_ModuleFromSpecTests.test___name__) ... ok otest___package__ (test.test_importlib.test_util.Frozen_ModuleFromSpecTests.test___package__) ... ok otest___path__ (test.test_importlib.test_util.Frozen_ModuleFromSpecTests.test___path__) ... ok otest___spec__ (test.test_importlib.test_util.Frozen_ModuleFromSpecTests.test___spec__) ... ok otest_create_module (test.test_importlib.test_util.Frozen_ModuleFromSpecTests.test_create_module) ... ok otest_create_module_returns_None (test.test_importlib.test_util.Frozen_ModuleFromSpecTests.test_create_module_returns_None) ... ok otest_no_create_module (test.test_importlib.test_util.Frozen_ModuleFromSpecTests.test_no_create_module) ... ok otest_cache_from_source (test.test_importlib.test_util.Frozen_PEP3147Tests.test_cache_from_source) ... ok otest_cache_from_source_cwd (test.test_importlib.test_util.Frozen_PEP3147Tests.test_cache_from_source_cwd) ... ok otest_cache_from_source_debug_override (test.test_importlib.test_util.Frozen_PEP3147Tests.test_cache_from_source_debug_override) ... ok otest_cache_from_source_debug_override_optimization_both_set (test.test_importlib.test_util.Frozen_PEP3147Tests.test_cache_from_source_debug_override_optimization_both_set) ... ok otest_cache_from_source_no_cache_tag (test.test_importlib.test_util.Frozen_PEP3147Tests.test_cache_from_source_no_cache_tag) ... ok otest_cache_from_source_no_dot (test.test_importlib.test_util.Frozen_PEP3147Tests.test_cache_from_source_no_dot) ... ok otest_cache_from_source_optimization_None (test.test_importlib.test_util.Frozen_PEP3147Tests.test_cache_from_source_optimization_None) ... ok otest_cache_from_source_optimization_empty_string (test.test_importlib.test_util.Frozen_PEP3147Tests.test_cache_from_source_optimization_empty_string) ... ok otest_cache_from_source_optimization_set (test.test_importlib.test_util.Frozen_PEP3147Tests.test_cache_from_source_optimization_set) ... ok otest_cache_from_source_override (test.test_importlib.test_util.Frozen_PEP3147Tests.test_cache_from_source_override) ... ok otest_cache_from_source_path_like_arg (test.test_importlib.test_util.Frozen_PEP3147Tests.test_cache_from_source_path_like_arg) ... ok otest_cache_from_source_respects_pycache_prefix (test.test_importlib.test_util.Frozen_PEP3147Tests.test_cache_from_source_respects_pycache_prefix) ... ok otest_cache_from_source_respects_pycache_prefix_relative (test.test_importlib.test_util.Frozen_PEP3147Tests.test_cache_from_source_respects_pycache_prefix_relative) ... ok otest_sep_altsep_and_sep_cache_from_source (test.test_importlib.test_util.Frozen_PEP3147Tests.test_sep_altsep_and_sep_cache_from_source) ... skipped 'test meaningful only where os.altsep is defined' otest_source_from_cache (test.test_importlib.test_util.Frozen_PEP3147Tests.test_source_from_cache) ... ok otest_source_from_cache_bad_path (test.test_importlib.test_util.Frozen_PEP3147Tests.test_source_from_cache_bad_path) ... ok otest_source_from_cache_inside_pycache_prefix (test.test_importlib.test_util.Frozen_PEP3147Tests.test_source_from_cache_inside_pycache_prefix) ... ok otest_source_from_cache_missing_optimization (test.test_importlib.test_util.Frozen_PEP3147Tests.test_source_from_cache_missing_optimization) ... ok otest_source_from_cache_no__pycache__ (test.test_importlib.test_util.Frozen_PEP3147Tests.test_source_from_cache_no__pycache__) ... ok otest_source_from_cache_no_cache_tag (test.test_importlib.test_util.Frozen_PEP3147Tests.test_source_from_cache_no_cache_tag) ... ok otest_source_from_cache_no_slash (test.test_importlib.test_util.Frozen_PEP3147Tests.test_source_from_cache_no_slash) ... ok otest_source_from_cache_not_opt (test.test_importlib.test_util.Frozen_PEP3147Tests.test_source_from_cache_not_opt) ... ok otest_source_from_cache_optimized_bytecode (test.test_importlib.test_util.Frozen_PEP3147Tests.test_source_from_cache_optimized_bytecode) ... ok otest_source_from_cache_outside_pycache_prefix (test.test_importlib.test_util.Frozen_PEP3147Tests.test_source_from_cache_outside_pycache_prefix) ... ok otest_source_from_cache_path_like_arg (test.test_importlib.test_util.Frozen_PEP3147Tests.test_source_from_cache_path_like_arg) ... ok otest_source_from_cache_too_few_dots (test.test_importlib.test_util.Frozen_PEP3147Tests.test_source_from_cache_too_few_dots) ... ok otest_source_from_cache_too_many_dots (test.test_importlib.test_util.Frozen_PEP3147Tests.test_source_from_cache_too_many_dots) ... ok otest_absolute (test.test_importlib.test_util.Frozen_ResolveNameTests.test_absolute) ... ok otest_absolute_within_package (test.test_importlib.test_util.Frozen_ResolveNameTests.test_absolute_within_package) ... ok otest_escape (test.test_importlib.test_util.Frozen_ResolveNameTests.test_escape) ... ok otest_in_package (test.test_importlib.test_util.Frozen_ResolveNameTests.test_in_package) ... ok otest_no_package (test.test_importlib.test_util.Frozen_ResolveNameTests.test_no_package) ... ok otest_other_package (test.test_importlib.test_util.Frozen_ResolveNameTests.test_other_package) ... ok otest_complete_multi_phase_init_module (test.test_importlib.test_util.IncompatibleExtensionModuleRestrictionsTests.test_complete_multi_phase_init_module) ... ok otest_incomplete_multi_phase_init_module (test.test_importlib.test_util.IncompatibleExtensionModuleRestrictionsTests.test_incomplete_multi_phase_init_module) ... ok otest_single_phase_init_module (test.test_importlib.test_util.IncompatibleExtensionModuleRestrictionsTests.test_single_phase_init_module) ... ok otest_magic_number (test.test_importlib.test_util.MagicNumberTests.test_magic_number) ... skipped 'only applies to candidate or final python release levels' otest_atomic_write_should_notice_incomplete_writes (test.test_importlib.test_util.MiscTests.test_atomic_write_should_notice_incomplete_writes) ... ok otest_specified_encoding (test.test_importlib.test_util.Source_DecodeSourceBytesTests.test_specified_encoding) ... ok otest_universal_newlines (test.test_importlib.test_util.Source_DecodeSourceBytesTests.test_universal_newlines) ... ok otest_ut8_default (test.test_importlib.test_util.Source_DecodeSourceBytesTests.test_ut8_default) ... ok otest_find_relative_module (test.test_importlib.test_util.Source_FindSpecTests.test_find_relative_module) ... ok otest_find_relative_module_missing_package (test.test_importlib.test_util.Source_FindSpecTests.test_find_relative_module_missing_package) ... ok otest_find_submodule (test.test_importlib.test_util.Source_FindSpecTests.test_find_submodule) ... ok otest_find_submodule_in_module (test.test_importlib.test_util.Source_FindSpecTests.test_find_submodule_in_module) ... ok otest_find_submodule_parent_already_imported (test.test_importlib.test_util.Source_FindSpecTests.test_find_submodule_parent_already_imported) ... ok otest_nothing (test.test_importlib.test_util.Source_FindSpecTests.test_nothing) ... ok otest_success (test.test_importlib.test_util.Source_FindSpecTests.test_success) ... ok otest_sys_modules (test.test_importlib.test_util.Source_FindSpecTests.test_sys_modules) ... ok otest_sys_modules_loader_is_None (test.test_importlib.test_util.Source_FindSpecTests.test_sys_modules_loader_is_None) ... ok otest_sys_modules_spec_is_None (test.test_importlib.test_util.Source_FindSpecTests.test_sys_modules_spec_is_None) ... ok otest_sys_modules_spec_is_not_set (test.test_importlib.test_util.Source_FindSpecTests.test_sys_modules_spec_is_not_set) ... ok otest_sys_modules_without___loader__ (test.test_importlib.test_util.Source_FindSpecTests.test_sys_modules_without___loader__) ... ok otest_incorporates_rn (test.test_importlib.test_util.Source_MagicNumberTests.test_incorporates_rn) ... ok otest_length (test.test_importlib.test_util.Source_MagicNumberTests.test_length) ... ok otest___cached__ (test.test_importlib.test_util.Source_ModuleFromSpecTests.test___cached__) ... ok otest___file__ (test.test_importlib.test_util.Source_ModuleFromSpecTests.test___file__) ... ok otest___loader__ (test.test_importlib.test_util.Source_ModuleFromSpecTests.test___loader__) ... ok otest___name__ (test.test_importlib.test_util.Source_ModuleFromSpecTests.test___name__) ... ok otest___package__ (test.test_importlib.test_util.Source_ModuleFromSpecTests.test___package__) ... ok otest___path__ (test.test_importlib.test_util.Source_ModuleFromSpecTests.test___path__) ... ok otest___spec__ (test.test_importlib.test_util.Source_ModuleFromSpecTests.test___spec__) ... ok otest_create_module (test.test_importlib.test_util.Source_ModuleFromSpecTests.test_create_module) ... ok otest_create_module_returns_None (test.test_importlib.test_util.Source_ModuleFromSpecTests.test_create_module_returns_None) ... ok otest_no_create_module (test.test_importlib.test_util.Source_ModuleFromSpecTests.test_no_create_module) ... ok otest_cache_from_source (test.test_importlib.test_util.Source_PEP3147Tests.test_cache_from_source) ... ok otest_cache_from_source_cwd (test.test_importlib.test_util.Source_PEP3147Tests.test_cache_from_source_cwd) ... ok otest_cache_from_source_debug_override (test.test_importlib.test_util.Source_PEP3147Tests.test_cache_from_source_debug_override) ... ok otest_cache_from_source_debug_override_optimization_both_set (test.test_importlib.test_util.Source_PEP3147Tests.test_cache_from_source_debug_override_optimization_both_set) ... ok otest_cache_from_source_no_cache_tag (test.test_importlib.test_util.Source_PEP3147Tests.test_cache_from_source_no_cache_tag) ... ok otest_cache_from_source_no_dot (test.test_importlib.test_util.Source_PEP3147Tests.test_cache_from_source_no_dot) ... ok otest_cache_from_source_optimization_None (test.test_importlib.test_util.Source_PEP3147Tests.test_cache_from_source_optimization_None) ... ok otest_cache_from_source_optimization_empty_string (test.test_importlib.test_util.Source_PEP3147Tests.test_cache_from_source_optimization_empty_string) ... ok otest_cache_from_source_optimization_set (test.test_importlib.test_util.Source_PEP3147Tests.test_cache_from_source_optimization_set) ... ok otest_cache_from_source_override (test.test_importlib.test_util.Source_PEP3147Tests.test_cache_from_source_override) ... ok otest_cache_from_source_path_like_arg (test.test_importlib.test_util.Source_PEP3147Tests.test_cache_from_source_path_like_arg) ... ok otest_cache_from_source_respects_pycache_prefix (test.test_importlib.test_util.Source_PEP3147Tests.test_cache_from_source_respects_pycache_prefix) ... ok otest_cache_from_source_respects_pycache_prefix_relative (test.test_importlib.test_util.Source_PEP3147Tests.test_cache_from_source_respects_pycache_prefix_relative) ... ok otest_sep_altsep_and_sep_cache_from_source (test.test_importlib.test_util.Source_PEP3147Tests.test_sep_altsep_and_sep_cache_from_source) ... skipped 'test meaningful only where os.altsep is defined' otest_source_from_cache (test.test_importlib.test_util.Source_PEP3147Tests.test_source_from_cache) ... ok otest_source_from_cache_bad_path (test.test_importlib.test_util.Source_PEP3147Tests.test_source_from_cache_bad_path) ... ok otest_source_from_cache_inside_pycache_prefix (test.test_importlib.test_util.Source_PEP3147Tests.test_source_from_cache_inside_pycache_prefix) ... ok otest_source_from_cache_missing_optimization (test.test_importlib.test_util.Source_PEP3147Tests.test_source_from_cache_missing_optimization) ... ok otest_source_from_cache_no__pycache__ (test.test_importlib.test_util.Source_PEP3147Tests.test_source_from_cache_no__pycache__) ... ok otest_source_from_cache_no_cache_tag (test.test_importlib.test_util.Source_PEP3147Tests.test_source_from_cache_no_cache_tag) ... ok otest_source_from_cache_no_slash (test.test_importlib.test_util.Source_PEP3147Tests.test_source_from_cache_no_slash) ... ok otest_source_from_cache_not_opt (test.test_importlib.test_util.Source_PEP3147Tests.test_source_from_cache_not_opt) ... ok otest_source_from_cache_optimized_bytecode (test.test_importlib.test_util.Source_PEP3147Tests.test_source_from_cache_optimized_bytecode) ... ok otest_source_from_cache_outside_pycache_prefix (test.test_importlib.test_util.Source_PEP3147Tests.test_source_from_cache_outside_pycache_prefix) ... ok otest_source_from_cache_path_like_arg (test.test_importlib.test_util.Source_PEP3147Tests.test_source_from_cache_path_like_arg) ... ok otest_source_from_cache_too_few_dots (test.test_importlib.test_util.Source_PEP3147Tests.test_source_from_cache_too_few_dots) ... ok otest_source_from_cache_too_many_dots (test.test_importlib.test_util.Source_PEP3147Tests.test_source_from_cache_too_many_dots) ... ok otest_absolute (test.test_importlib.test_util.Source_ResolveNameTests.test_absolute) ... ok otest_absolute_within_package (test.test_importlib.test_util.Source_ResolveNameTests.test_absolute_within_package) ... ok otest_escape (test.test_importlib.test_util.Source_ResolveNameTests.test_escape) ... ok otest_in_package (test.test_importlib.test_util.Source_ResolveNameTests.test_in_package) ... ok otest_no_package (test.test_importlib.test_util.Source_ResolveNameTests.test_no_package) ... ok otest_other_package (test.test_importlib.test_util.Source_ResolveNameTests.test_other_package) ... ok otest.test_importlib.test_windows (unittest.loader.ModuleSkipped.test.test_importlib.test_windows) ... skipped "No module named 'winreg'" o o====================================================================== oFAIL: test_nonmodule_cases (test.test_importlib.extension.test_loader.NonModuleExtensionTests.test_nonmodule_cases) o---------------------------------------------------------------------- oTraceback (most recent call last): o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_importlib/extension/test_loader.py", line 388, in test_nonmodule_cases o script_helper.run_test_script(script) o ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/support/script_helper.py", line 322, in run_test_script o raise AssertionError(f"{name} failed") oAssertionError: script _test_nonmodule_cases.py failed o oStdout: o o===== script _test_nonmodule_cases.py ====== o===== script _test_nonmodule_cases.py completed: exit code -6 ====== o o---------------------------------------------------------------------- oRan 1345 tests in 3.243s o oFAILED (failures=1, skipped=19) otest test_importlib failed o0:00:09 load avg: 1.74 [ 11/491/1] test_dbm_ndbm skipped otest_dbm_ndbm skipped -- No module named '_dbm' o0:00:09 load avg: 1.74 [ 12/491/1] test_charmapcodec passed o0:00:09 load avg: 1.74 [ 13/491/1] test_ensurepip passed o0:00:10 load avg: 1.74 [ 14/491/1] test_type_annotations passed o0:00:11 load avg: 1.74 [ 15/491/1] test.test_multiprocessing_fork.test_manager passed o0:00:12 load avg: 1.74 [ 16/491/1] test_memoryview passed o0:00:12 load avg: 1.74 [ 17/491/1] test_zipfile64 skipped (resource denied) otest_zipfile64 skipped -- test requires loads of disk-space bytes and a long time to run o0:00:12 load avg: 1.74 [ 18/491/1] test_code passed o0:00:13 load avg: 1.74 [ 19/491/1] test.test_concurrent_futures.test_future passed o0:00:13 load avg: 1.74 [ 20/491/1] test_codecencodings_iso2022 passed o0:00:23 load avg: 3.70 [ 21/491/1] test.test_concurrent_futures.test_thread_pool passed o0:00:24 load avg: 3.70 [ 22/491/1] test_userdict passed o0:00:24 load avg: 3.70 [ 23/491/1] test_binop passed o0:00:29 load avg: 3.59 [ 24/491/1] test_threadsignals passed o0:00:29 load avg: 3.59 [ 25/491/1] test_profile passed o0:00:39 load avg: 3.38 [ 26/491/1] test.test_multiprocessing_forkserver.test_misc passed o0:00:39 load avg: 3.35 [ 27/491/1] test_ntpath passed o0:00:40 load avg: 3.35 [ 28/491/1] test_readline passed o0:00:51 load avg: 3.30 [ 29/491/1] test_regrtest passed o0:00:52 load avg: 3.30 [ 30/491/1] test_clinic passed o0:00:52 load avg: 3.30 [ 31/491/1] test_grammar passed o0:00:52 load avg: 3.30 [ 32/491/1] test_codecencodings_hk passed o0:00:54 load avg: 3.27 [ 33/491/1] test_zipfile passed o0:00:54 load avg: 3.27 [ 34/491/1] test__opcode passed o0:00:55 load avg: 3.27 [ 35/491/1] test_urllib passed o0:00:55 load avg: 3.27 [ 36/491/1] test.test_asyncio.test_windows_events skipped otest.test_asyncio.test_windows_events skipped -- Windows only o0:00:55 load avg: 3.27 [ 37/491/1] test_pstats passed o0:00:56 load avg: 3.27 [ 38/491/1] test_hash passed o0:00:56 load avg: 3.27 [ 39/491/1] test_sysconfig passed o0:00:56 load avg: 3.27 [ 40/491/1] test_decorators passed o0:00:58 load avg: 3.27 [ 41/491/1] test__interpreters passed o0:00:58 load avg: 3.27 [ 42/491/1] test_fileinput passed o0:00:59 load avg: 3.17 [ 43/491/1] test_modulefinder passed o0:01:01 load avg: 3.17 [ 44/491/1] test_random passed o0:01:04 load avg: 3.17 [ 45/491/1] test_audit passed o0:01:09 load avg: 2.99 [ 46/491/1] test.test_asyncio.test_tasks passed o0:01:10 load avg: 2.99 [ 47/491/1] test_opcache passed o0:01:11 load avg: 2.99 [ 48/491/1] test_compare passed o0:01:11 load avg: 2.99 [ 49/491/1] test_cprofile passed o0:01:20 load avg: 3.13 [ 50/491/1] test.test_multiprocessing_spawn.test_threads passed o0:01:28 load avg: 3.12 [ 51/491/1] test_json passed o0:01:28 load avg: 3.12 [ 52/491/1] test_subclassinit passed o0:01:28 load avg: 3.12 [ 53/491/1] test.test_future_stmt.test_future passed o0:01:29 load avg: 3.12 [ 54/491/1] test_descrtut passed o0:01:37 load avg: 2.95 [ 55/491/1] test.test_asyncio.test_ssl passed o0:01:47 load avg: 2.96 [ 56/491/1] test_zipimport passed (35.6 sec) o0:01:49 load avg: 2.88 [ 57/491/2] test_pickle worker non-zero exit code (Exit code -11 (SIGSEGV)) otest_class_dispatch_table (test.test_pickle.CChainDispatchTableTests.test_class_dispatch_table) ... ok otest_default_dispatch_table (test.test_pickle.CChainDispatchTableTests.test_default_dispatch_table) ... ok otest_dispatch_table_None_item (test.test_pickle.CChainDispatchTableTests.test_dispatch_table_None_item) ... ok otest_instance_dispatch_table (test.test_pickle.CChainDispatchTableTests.test_instance_dispatch_table) ... ok otest_class_dispatch_table (test.test_pickle.CDispatchTableTests.test_class_dispatch_table) ... ok otest_default_dispatch_table (test.test_pickle.CDispatchTableTests.test_default_dispatch_table) ... ok otest_dispatch_table_None_item (test.test_pickle.CDispatchTableTests.test_dispatch_table_None_item) ... ok otest_instance_dispatch_table (test.test_pickle.CDispatchTableTests.test_instance_dispatch_table) ... ok otest_appends_on_non_lists (test.test_pickle.CDumpPickle_LoadPickle.test_appends_on_non_lists) ... ok otest_attribute_name_interning (test.test_pickle.CDumpPickle_LoadPickle.test_attribute_name_interning) ... ok otest_buffers_error (test.test_pickle.CDumpPickle_LoadPickle.test_buffers_error) ... ok otest_buffers_numpy (test.test_pickle.CDumpPickle_LoadPickle.test_buffers_numpy) ... skipped 'Test needs Numpy' otest_builtin_exceptions (test.test_pickle.CDumpPickle_LoadPickle.test_builtin_exceptions) ... ok otest_builtin_functions (test.test_pickle.CDumpPickle_LoadPickle.test_builtin_functions) ... ok otest_builtin_types (test.test_pickle.CDumpPickle_LoadPickle.test_builtin_types) ... ok otest_bytearray (test.test_pickle.CDumpPickle_LoadPickle.test_bytearray) ... ok otest_bytearray_memoization (test.test_pickle.CDumpPickle_LoadPickle.test_bytearray_memoization) ... ok otest_bytes (test.test_pickle.CDumpPickle_LoadPickle.test_bytes) ... ok otest_bytes_memoization (test.test_pickle.CDumpPickle_LoadPickle.test_bytes_memoization) ... ok otest_c_methods (test.test_pickle.CDumpPickle_LoadPickle.test_c_methods) ... ok otest_compat_pickle (test.test_pickle.CDumpPickle_LoadPickle.test_compat_pickle) ... ok otest_complex_newobj (test.test_pickle.CDumpPickle_LoadPickle.test_complex_newobj) ... ok otest_complex_newobj_ex (test.test_pickle.CDumpPickle_LoadPickle.test_complex_newobj_ex) ... ok otest_dict_chunking (test.test_pickle.CDumpPickle_LoadPickle.test_dict_chunking) ... ok otest_dynamic_class (test.test_pickle.CDumpPickle_LoadPickle.test_dynamic_class) ... ok otest_ellipsis (test.test_pickle.CDumpPickle_LoadPickle.test_ellipsis) ... ok otest_evil_class_mutating_dict (test.test_pickle.CDumpPickle_LoadPickle.test_evil_class_mutating_dict) ... ok otest_float (test.test_pickle.CDumpPickle_LoadPickle.test_float) ... ok otest_float_format (test.test_pickle.CDumpPickle_LoadPickle.test_float_format) ... o test_float_format (test.test_pickle.CDumpPickle_LoadPickle.test_float_format) (locale='de_DE') ... skipped "no locale 'de_DE'" o test_float_format (test.test_pickle.CDumpPickle_LoadPickle.test_float_format) (locale='fr_FR') ... skipped "no locale 'fr_FR'" otest_framed_write_sizes_with_delayed_writer (test.test_pickle.CDumpPickle_LoadPickle.test_framed_write_sizes_with_delayed_writer) ... ok otest_framing_large_objects (test.test_pickle.CDumpPickle_LoadPickle.test_framing_large_objects) ... ok otest_framing_many_objects (test.test_pickle.CDumpPickle_LoadPickle.test_framing_many_objects) ... ok otest_getinitargs (test.test_pickle.CDumpPickle_LoadPickle.test_getinitargs) ... ok otest_global_ext1 (test.test_pickle.CDumpPickle_LoadPickle.test_global_ext1) ... ok otest_global_ext2 (test.test_pickle.CDumpPickle_LoadPickle.test_global_ext2) ... ok otest_global_ext4 (test.test_pickle.CDumpPickle_LoadPickle.test_global_ext4) ... ok otest_in_band_buffers (test.test_pickle.CDumpPickle_LoadPickle.test_in_band_buffers) ... ok otest_inband_accept_default_buffers_argument (test.test_pickle.CDumpPickle_LoadPickle.test_inband_accept_default_buffers_argument) ... ok otest_int_pickling_efficiency (test.test_pickle.CDumpPickle_LoadPickle.test_int_pickling_efficiency) ... ok otest_ints (test.test_pickle.CDumpPickle_LoadPickle.test_ints) ... ok otest_large_pickles (test.test_pickle.CDumpPickle_LoadPickle.test_large_pickles) ... ok otest_list_chunking (test.test_pickle.CDumpPickle_LoadPickle.test_list_chunking) ... ok otest_long (test.test_pickle.CDumpPickle_LoadPickle.test_long) ... ok otest_long1 (test.test_pickle.CDumpPickle_LoadPickle.test_long1) ... ok otest_long4 (test.test_pickle.CDumpPickle_LoadPickle.test_long4) ... ok otest_many_puts_and_gets (test.test_pickle.CDumpPickle_LoadPickle.test_many_puts_and_gets) ... ok otest_metaclass (test.test_pickle.CDumpPickle_LoadPickle.test_metaclass) ... ok otest_misc (test.test_pickle.CDumpPickle_LoadPickle.test_misc) ... ok otest_nested_names (test.test_pickle.CDumpPickle_LoadPickle.test_nested_names) ... ok otest_newobj_generic (test.test_pickle.CDumpPickle_LoadPickle.test_newobj_generic) ... ok otest_newobj_list (test.test_pickle.CDumpPickle_LoadPickle.test_newobj_list) ... ok otest_newobj_list_slots (test.test_pickle.CDumpPickle_LoadPickle.test_newobj_list_slots) ... ok otest_newobj_not_class (test.test_pickle.CDumpPickle_LoadPickle.test_newobj_not_class) ... ok otest_newobj_overridden_new (test.test_pickle.CDumpPickle_LoadPickle.test_newobj_overridden_new) ... ok otest_newobj_proxies (test.test_pickle.CDumpPickle_LoadPickle.test_newobj_proxies) ... ok otest_newobj_tuple (test.test_pickle.CDumpPickle_LoadPickle.test_newobj_tuple) ... ok otest_notimplemented (test.test_pickle.CDumpPickle_LoadPickle.test_notimplemented) ... ok otest_oob_buffers (test.test_pickle.CDumpPickle_LoadPickle.test_oob_buffers) ... ok otest_oob_buffers_writable_to_readonly (test.test_pickle.CDumpPickle_LoadPickle.test_oob_buffers_writable_to_readonly) ... ok otest_optional_frames (test.test_pickle.CDumpPickle_LoadPickle.test_optional_frames) ... ok otest_pickle_setstate_None (test.test_pickle.CDumpPickle_LoadPickle.test_pickle_setstate_None) ... ok otest_pickle_to_2x (test.test_pickle.CDumpPickle_LoadPickle.test_pickle_to_2x) ... ok otest_proto (test.test_pickle.CDumpPickle_LoadPickle.test_proto) ... ok otest_py_methods (test.test_pickle.CDumpPickle_LoadPickle.test_py_methods) ... ok otest_recursive_dict (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_dict) ... ok otest_recursive_dict_and_inst (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_dict_and_inst) ... ok otest_recursive_dict_key (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_dict_key) ... ok otest_recursive_dict_like (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_dict_like) ... ok otest_recursive_dict_like_key (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_dict_like_key) ... ok otest_recursive_dict_subclass (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_dict_subclass) ... ok otest_recursive_dict_subclass_and_inst (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_dict_subclass_and_inst) ... ok otest_recursive_dict_subclass_key (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_dict_subclass_key) ... ok otest_recursive_frozenset_and_inst (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_frozenset_and_inst) ... ok otest_recursive_frozenset_subclass_and_inst (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_frozenset_subclass_and_inst) ... ok otest_recursive_inst (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_inst) ... ok otest_recursive_inst_state (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_inst_state) ... ok otest_recursive_list (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_list) ... ok otest_recursive_list_and_inst (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_list_and_inst) ... ok otest_recursive_list_like (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_list_like) ... ok otest_recursive_list_subclass (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_list_subclass) ... ok otest_recursive_list_subclass_and_inst (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_list_subclass_and_inst) ... ok otest_recursive_multi (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_multi) ... ok otest_recursive_nested_names (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_nested_names) ... ok otest_recursive_nested_names2 (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_nested_names2) ... ok otest_recursive_set (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_set) ... ok otest_recursive_set_and_inst (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_set_and_inst) ... ok otest_recursive_set_subclass_and_inst (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_set_subclass_and_inst) ... ok otest_recursive_tuple_and_dict (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_tuple_and_dict) ... ok otest_recursive_tuple_and_dict_key (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_tuple_and_dict_key) ... ok otest_recursive_tuple_and_dict_like (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_tuple_and_dict_like) ... ok otest_recursive_tuple_and_dict_like_key (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_tuple_and_dict_like_key) ... ok otest_recursive_tuple_and_dict_subclass (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_tuple_and_dict_subclass) ... ok otest_recursive_tuple_and_dict_subclass_key (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_tuple_and_dict_subclass_key) ... ok otest_recursive_tuple_and_inst (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_tuple_and_inst) ... ok otest_recursive_tuple_and_inst_state (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_tuple_and_inst_state) ... ok otest_recursive_tuple_and_list (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_tuple_and_list) ... ok otest_recursive_tuple_and_list_like (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_tuple_and_list_like) ... ok otest_recursive_tuple_and_list_subclass (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_tuple_and_list_subclass) ... ok otest_recursive_tuple_subclass_and_inst (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_tuple_subclass_and_inst) ... ok otest_reduce (test.test_pickle.CDumpPickle_LoadPickle.test_reduce) ... ok otest_reduce_calls_base (test.test_pickle.CDumpPickle_LoadPickle.test_reduce_calls_base) ... ok otest_reduce_ex_called (test.test_pickle.CDumpPickle_LoadPickle.test_reduce_ex_called) ... ok otest_reduce_ex_calls_base (test.test_pickle.CDumpPickle_LoadPickle.test_reduce_ex_calls_base) ... ok otest_reduce_ex_overrides_reduce (test.test_pickle.CDumpPickle_LoadPickle.test_reduce_ex_overrides_reduce) ... ok otest_reduce_overrides_default_reduce_ex (test.test_pickle.CDumpPickle_LoadPickle.test_reduce_overrides_default_reduce_ex) ... ok otest_roundtrip_equality (test.test_pickle.CDumpPickle_LoadPickle.test_roundtrip_equality) ... ok otest_set_chunking (test.test_pickle.CDumpPickle_LoadPickle.test_set_chunking) ... ok otest_setitems_on_non_dicts (test.test_pickle.CDumpPickle_LoadPickle.test_setitems_on_non_dicts) ... ok otest_short_tuples (test.test_pickle.CDumpPickle_LoadPickle.test_short_tuples) ... ok otest_simple_newobj (test.test_pickle.CDumpPickle_LoadPickle.test_simple_newobj) ... ok otest_singleton_types (test.test_pickle.CDumpPickle_LoadPickle.test_singleton_types) ... ok otest_singletons (test.test_pickle.CDumpPickle_LoadPickle.test_singletons) ... ok otest_structseq (test.test_pickle.CDumpPickle_LoadPickle.test_structseq) ... ok otest_unicode (test.test_pickle.CDumpPickle_LoadPickle.test_unicode) ... ok otest_unicode_high_plane (test.test_pickle.CDumpPickle_LoadPickle.test_unicode_high_plane) ... ok otest_unicode_memoization (test.test_pickle.CDumpPickle_LoadPickle.test_unicode_memoization) ... ok otest_custom_pickler_dispatch_table_memleak (test.test_pickle.CIdPersPicklerTests.test_custom_pickler_dispatch_table_memleak) ... ok otest_pickler_instance_attribute (test.test_pickle.CIdPersPicklerTests.test_pickler_instance_attribute) ... ok otest_pickler_reference_cycle (test.test_pickle.CIdPersPicklerTests.test_pickler_reference_cycle) ... ok otest_pickler_super (test.test_pickle.CIdPersPicklerTests.test_pickler_super) ... ok otest_pickler_super_instance_attribute (test.test_pickle.CIdPersPicklerTests.test_pickler_super_instance_attribute) ... ok otest_protocol0_is_ascii_only (test.test_pickle.CIdPersPicklerTests.test_protocol0_is_ascii_only) ... ok otest_return_correct_type (test.test_pickle.CIdPersPicklerTests.test_return_correct_type) ... ok otest_unpickler_instance_attribute (test.test_pickle.CIdPersPicklerTests.test_unpickler_instance_attribute) ... ok otest_unpickler_reference_cycle (test.test_pickle.CIdPersPicklerTests.test_unpickler_reference_cycle) ... ok otest_unpickler_super (test.test_pickle.CIdPersPicklerTests.test_unpickler_super) ... ok otest_unpickler_super_instance_attribute (test.test_pickle.CIdPersPicklerTests.test_unpickler_super_instance_attribute) ... ok otest_persistence (test.test_pickle.CPersPicklerTests.test_persistence) ... ok otest_bad_init (test.test_pickle.CPickleTests.test_bad_init) ... ok otest_callapi (test.test_pickle.CPickleTests.test_callapi) ... ok otest_dump_closed_file (test.test_pickle.CPickleTests.test_dump_closed_file) ... ok otest_dump_load_oob_buffers (test.test_pickle.CPickleTests.test_dump_load_oob_buffers) ... ok otest_dump_text_file (test.test_pickle.CPickleTests.test_dump_text_file) ... ok otest_dumps_loads_oob_buffers (test.test_pickle.CPickleTests.test_dumps_loads_oob_buffers) ... ok otest_highest_protocol (test.test_pickle.CPickleTests.test_highest_protocol) ... ok otest_incomplete_input (test.test_pickle.CPickleTests.test_incomplete_input) ... ok otest_load_closed_file (test.test_pickle.CPickleTests.test_load_closed_file) ... ok otest_load_from_and_dump_to_file (test.test_pickle.CPickleTests.test_load_from_and_dump_to_file) ... ok otest_pickler_bad_file (test.test_pickle.CPickleTests.test_pickler_bad_file) ... ok otest_unpickler_bad_file (test.test_pickle.CPickleTests.test_unpickler_bad_file) ... ok otest_pickler_hook (test.test_pickle.CPicklerHookTests.test_pickler_hook) ... ok otest_reducer_override_no_reference_cycle (test.test_pickle.CPicklerHookTests.test_reducer_override_no_reference_cycle) ... ok otest_appends_on_non_lists (test.test_pickle.CPicklerTests.test_appends_on_non_lists) ... ok otest_attribute_name_interning (test.test_pickle.CPicklerTests.test_attribute_name_interning) ... ok otest_buffers_error (test.test_pickle.CPicklerTests.test_buffers_error) ... ok otest_buffers_numpy (test.test_pickle.CPicklerTests.test_buffers_numpy) ... skipped 'Test needs Numpy' otest_builtin_exceptions (test.test_pickle.CPicklerTests.test_builtin_exceptions) ... ok otest_builtin_functions (test.test_pickle.CPicklerTests.test_builtin_functions) ... ok otest_builtin_types (test.test_pickle.CPicklerTests.test_builtin_types) ... ok otest_bytearray (test.test_pickle.CPicklerTests.test_bytearray) ... ok otest_bytearray_memoization (test.test_pickle.CPicklerTests.test_bytearray_memoization) ... ok otest_bytes (test.test_pickle.CPicklerTests.test_bytes) ... ok otest_bytes_memoization (test.test_pickle.CPicklerTests.test_bytes_memoization) ... ok otest_c_methods (test.test_pickle.CPicklerTests.test_c_methods) ... ok otest_compat_pickle (test.test_pickle.CPicklerTests.test_compat_pickle) ... ok otest_complex_newobj (test.test_pickle.CPicklerTests.test_complex_newobj) ... ok otest_complex_newobj_ex (test.test_pickle.CPicklerTests.test_complex_newobj_ex) ... ok otest_dict_chunking (test.test_pickle.CPicklerTests.test_dict_chunking) ... ok otest_dynamic_class (test.test_pickle.CPicklerTests.test_dynamic_class) ... ok otest_ellipsis (test.test_pickle.CPicklerTests.test_ellipsis) ... ok otest_evil_class_mutating_dict (test.test_pickle.CPicklerTests.test_evil_class_mutating_dict) ... ok otest_float (test.test_pickle.CPicklerTests.test_float) ... ok otest_float_format (test.test_pickle.CPicklerTests.test_float_format) ... o test_float_format (test.test_pickle.CPicklerTests.test_float_format) (locale='de_DE') ... skipped "no locale 'de_DE'" o test_float_format (test.test_pickle.CPicklerTests.test_float_format) (locale='fr_FR') ... skipped "no locale 'fr_FR'" otest_framed_write_sizes_with_delayed_writer (test.test_pickle.CPicklerTests.test_framed_write_sizes_with_delayed_writer) ... ok otest_framing_large_objects (test.test_pickle.CPicklerTests.test_framing_large_objects) ... ok otest_framing_many_objects (test.test_pickle.CPicklerTests.test_framing_many_objects) ... ok otest_getinitargs (test.test_pickle.CPicklerTests.test_getinitargs) ... ok otest_global_ext1 (test.test_pickle.CPicklerTests.test_global_ext1) ... ok otest_global_ext2 (test.test_pickle.CPicklerTests.test_global_ext2) ... ok otest_global_ext4 (test.test_pickle.CPicklerTests.test_global_ext4) ... ok otest_in_band_buffers (test.test_pickle.CPicklerTests.test_in_band_buffers) ... ok otest_inband_accept_default_buffers_argument (test.test_pickle.CPicklerTests.test_inband_accept_default_buffers_argument) ... ok otest_int_pickling_efficiency (test.test_pickle.CPicklerTests.test_int_pickling_efficiency) ... ok otest_ints (test.test_pickle.CPicklerTests.test_ints) ... ok otest_large_pickles (test.test_pickle.CPicklerTests.test_large_pickles) ... ok otest_list_chunking (test.test_pickle.CPicklerTests.test_list_chunking) ... ok otest_long (test.test_pickle.CPicklerTests.test_long) ... ok otest_long1 (test.test_pickle.CPicklerTests.test_long1) ... ok otest_long4 (test.test_pickle.CPicklerTests.test_long4) ... ok otest_many_puts_and_gets (test.test_pickle.CPicklerTests.test_many_puts_and_gets) ... ok otest_metaclass (test.test_pickle.CPicklerTests.test_metaclass) ... ok otest_misc (test.test_pickle.CPicklerTests.test_misc) ... ok otest_nested_names (test.test_pickle.CPicklerTests.test_nested_names) ... ok otest_newobj_generic (test.test_pickle.CPicklerTests.test_newobj_generic) ... ok otest_newobj_list (test.test_pickle.CPicklerTests.test_newobj_list) ... ok otest_newobj_list_slots (test.test_pickle.CPicklerTests.test_newobj_list_slots) ... ok otest_newobj_not_class (test.test_pickle.CPicklerTests.test_newobj_not_class) ... ok otest_newobj_overridden_new (test.test_pickle.CPicklerTests.test_newobj_overridden_new) ... ok otest_newobj_proxies (test.test_pickle.CPicklerTests.test_newobj_proxies) ... ok otest_newobj_tuple (test.test_pickle.CPicklerTests.test_newobj_tuple) ... ok otest_notimplemented (test.test_pickle.CPicklerTests.test_notimplemented) ... ok otest_oob_buffers (test.test_pickle.CPicklerTests.test_oob_buffers) ... ok otest_oob_buffers_writable_to_readonly (test.test_pickle.CPicklerTests.test_oob_buffers_writable_to_readonly) ... ok otest_optional_frames (test.test_pickle.CPicklerTests.test_optional_frames) ... ok otest_pickle_setstate_None (test.test_pickle.CPicklerTests.test_pickle_setstate_None) ... ok otest_pickle_to_2x (test.test_pickle.CPicklerTests.test_pickle_to_2x) ... ok otest_proto (test.test_pickle.CPicklerTests.test_proto) ... ok otest_py_methods (test.test_pickle.CPicklerTests.test_py_methods) ... ok otest_recursive_dict (test.test_pickle.CPicklerTests.test_recursive_dict) ... ok otest_recursive_dict_and_inst (test.test_pickle.CPicklerTests.test_recursive_dict_and_inst) ... ok otest_recursive_dict_key (test.test_pickle.CPicklerTests.test_recursive_dict_key) ... ok otest_recursive_dict_like (test.test_pickle.CPicklerTests.test_recursive_dict_like) ... ok otest_recursive_dict_like_key (test.test_pickle.CPicklerTests.test_recursive_dict_like_key) ... ok otest_recursive_dict_subclass (test.test_pickle.CPicklerTests.test_recursive_dict_subclass) ... ok otest_recursive_dict_subclass_and_inst (test.test_pickle.CPicklerTests.test_recursive_dict_subclass_and_inst) ... ok otest_recursive_dict_subclass_key (test.test_pickle.CPicklerTests.test_recursive_dict_subclass_key) ... ok otest_recursive_frozenset_and_inst (test.test_pickle.CPicklerTests.test_recursive_frozenset_and_inst) ... ok otest_recursive_frozenset_subclass_and_inst (test.test_pickle.CPicklerTests.test_recursive_frozenset_subclass_and_inst) ... ok otest_recursive_inst (test.test_pickle.CPicklerTests.test_recursive_inst) ... ok otest_recursive_inst_state (test.test_pickle.CPicklerTests.test_recursive_inst_state) ... ok otest_recursive_list (test.test_pickle.CPicklerTests.test_recursive_list) ... ok otest_recursive_list_and_inst (test.test_pickle.CPicklerTests.test_recursive_list_and_inst) ... ok otest_recursive_list_like (test.test_pickle.CPicklerTests.test_recursive_list_like) ... ok otest_recursive_list_subclass (test.test_pickle.CPicklerTests.test_recursive_list_subclass) ... ok otest_recursive_list_subclass_and_inst (test.test_pickle.CPicklerTests.test_recursive_list_subclass_and_inst) ... ok otest_recursive_multi (test.test_pickle.CPicklerTests.test_recursive_multi) ... ok otest_recursive_nested_names (test.test_pickle.CPicklerTests.test_recursive_nested_names) ... ok otest_recursive_nested_names2 (test.test_pickle.CPicklerTests.test_recursive_nested_names2) ... ok otest_recursive_set (test.test_pickle.CPicklerTests.test_recursive_set) ... ok otest_recursive_set_and_inst (test.test_pickle.CPicklerTests.test_recursive_set_and_inst) ... ok otest_recursive_set_subclass_and_inst (test.test_pickle.CPicklerTests.test_recursive_set_subclass_and_inst) ... ok otest_recursive_tuple_and_dict (test.test_pickle.CPicklerTests.test_recursive_tuple_and_dict) ... ok otest_recursive_tuple_and_dict_key (test.test_pickle.CPicklerTests.test_recursive_tuple_and_dict_key) ... ok otest_recursive_tuple_and_dict_like (test.test_pickle.CPicklerTests.test_recursive_tuple_and_dict_like) ... ok otest_recursive_tuple_and_dict_like_key (test.test_pickle.CPicklerTests.test_recursive_tuple_and_dict_like_key) ... ok otest_recursive_tuple_and_dict_subclass (test.test_pickle.CPicklerTests.test_recursive_tuple_and_dict_subclass) ... ok otest_recursive_tuple_and_dict_subclass_key (test.test_pickle.CPicklerTests.test_recursive_tuple_and_dict_subclass_key) ... ok otest_recursive_tuple_and_inst (test.test_pickle.CPicklerTests.test_recursive_tuple_and_inst) ... ok otest_recursive_tuple_and_inst_state (test.test_pickle.CPicklerTests.test_recursive_tuple_and_inst_state) ... ok otest_recursive_tuple_and_list (test.test_pickle.CPicklerTests.test_recursive_tuple_and_list) ... ok otest_recursive_tuple_and_list_like (test.test_pickle.CPicklerTests.test_recursive_tuple_and_list_like) ... ok otest_recursive_tuple_and_list_subclass (test.test_pickle.CPicklerTests.test_recursive_tuple_and_list_subclass) ... ok otest_recursive_tuple_subclass_and_inst (test.test_pickle.CPicklerTests.test_recursive_tuple_subclass_and_inst) ... ok otest_reduce (test.test_pickle.CPicklerTests.test_reduce) ... ok otest_reduce_calls_base (test.test_pickle.CPicklerTests.test_reduce_calls_base) ... ok otest_reduce_ex_called (test.test_pickle.CPicklerTests.test_reduce_ex_called) ... ok otest_reduce_ex_calls_base (test.test_pickle.CPicklerTests.test_reduce_ex_calls_base) ... ok otest_reduce_ex_overrides_reduce (test.test_pickle.CPicklerTests.test_reduce_ex_overrides_reduce) ... ok otest_reduce_overrides_default_reduce_ex (test.test_pickle.CPicklerTests.test_reduce_overrides_default_reduce_ex) ... ok otest_roundtrip_equality (test.test_pickle.CPicklerTests.test_roundtrip_equality) ... ok otest_set_chunking (test.test_pickle.CPicklerTests.test_set_chunking) ... ok otest_setitems_on_non_dicts (test.test_pickle.CPicklerTests.test_setitems_on_non_dicts) ... ok otest_short_tuples (test.test_pickle.CPicklerTests.test_short_tuples) ... ok otest_simple_newobj (test.test_pickle.CPicklerTests.test_simple_newobj) ... ok otest_singleton_types (test.test_pickle.CPicklerTests.test_singleton_types) ... ok otest_singletons (test.test_pickle.CPicklerTests.test_singletons) ... ok otest_structseq (test.test_pickle.CPicklerTests.test_structseq) ... ok otest_unicode (test.test_pickle.CPicklerTests.test_unicode) ... ok otest_unicode_high_plane (test.test_pickle.CPicklerTests.test_unicode_high_plane) ... ok otest_unicode_memoization (test.test_pickle.CPicklerTests.test_unicode_memoization) ... ok otest_clear_pickler_memo (test.test_pickle.CPicklerUnpicklerObjectTests.test_clear_pickler_memo) ... ok otest_issue18339 (test.test_pickle.CPicklerUnpicklerObjectTests.test_issue18339) ... ok otest_multiple_unpicklings_minimal (test.test_pickle.CPicklerUnpicklerObjectTests.test_multiple_unpicklings_minimal) ... ok otest_multiple_unpicklings_seekable (test.test_pickle.CPicklerUnpicklerObjectTests.test_multiple_unpicklings_seekable) ... ok otest_multiple_unpicklings_unseekable (test.test_pickle.CPicklerUnpicklerObjectTests.test_multiple_unpicklings_unseekable) ... ok otest_pickle_invalid_reducer_override (test.test_pickle.CPicklerUnpicklerObjectTests.test_pickle_invalid_reducer_override) ... ok otest_priming_pickler_memo (test.test_pickle.CPicklerUnpicklerObjectTests.test_priming_pickler_memo) ... ok otest_priming_unpickler_memo (test.test_pickle.CPicklerUnpicklerObjectTests.test_priming_unpickler_memo) ... ok otest_reusing_unpickler_objects (test.test_pickle.CPicklerUnpicklerObjectTests.test_reusing_unpickler_objects) ... ok otest_unpickling_buffering_readline (test.test_pickle.CPicklerUnpicklerObjectTests.test_unpickling_buffering_readline) ... ok otest_bad_ext_code (test.test_pickle.CPicklingErrorTests.test_bad_ext_code) ... ok otest_bad_getattr (test.test_pickle.CPicklingErrorTests.test_bad_getattr) ... ok otest_bad_newobj_args (test.test_pickle.CPicklingErrorTests.test_bad_newobj_args) ... ok otest_bad_newobj_class (test.test_pickle.CPicklingErrorTests.test_bad_newobj_class) ... ok otest_bad_newobj_ex__class (test.test_pickle.CPicklingErrorTests.test_bad_newobj_ex__class) ... ok otest_bad_newobj_ex_args (test.test_pickle.CPicklingErrorTests.test_bad_newobj_ex_args) ... ok otest_bad_object_dict_items (test.test_pickle.CPicklingErrorTests.test_bad_object_dict_items) ... ok otest_bad_object_list_items (test.test_pickle.CPicklingErrorTests.test_bad_object_list_items) ... ok otest_bad_reconstructor (test.test_pickle.CPicklingErrorTests.test_bad_reconstructor) ... ok otest_bad_reconstructor_args (test.test_pickle.CPicklingErrorTests.test_bad_reconstructor_args) ... ok otest_bad_reduce_result (test.test_pickle.CPicklingErrorTests.test_bad_reduce_result) ... ok otest_bad_state_setter (test.test_pickle.CPicklingErrorTests.test_bad_state_setter) ... ok otest_buffer_callback_error (test.test_pickle.CPicklingErrorTests.test_buffer_callback_error) ... ok otest_evil_pickler_mutating_collection (test.test_pickle.CPicklingErrorTests.test_evil_pickler_mutating_collection) ... ok otest_global_lookup_error (test.test_pickle.CPicklingErrorTests.test_global_lookup_error) ... ok otest_local_lookup_error (test.test_pickle.CPicklingErrorTests.test_local_lookup_error) ... ok otest_nested_lookup_error (test.test_pickle.CPicklingErrorTests.test_nested_lookup_error) ... ok otest_non_continuous_buffer (test.test_pickle.CPicklingErrorTests.test_non_continuous_buffer) ... ok otest_nonencodable_global_name_error (test.test_pickle.CPicklingErrorTests.test_nonencodable_global_name_error) ... ok otest_nonencodable_module_name_error (test.test_pickle.CPicklingErrorTests.test_nonencodable_module_name_error) ... ok otest_picklebuffer_error (test.test_pickle.CPicklingErrorTests.test_picklebuffer_error) ... ok otest_reduce_None (test.test_pickle.CPicklingErrorTests.test_reduce_None) ... ok otest_reduce_ex_None (test.test_pickle.CPicklingErrorTests.test_reduce_ex_None) ... ok otest_unpickleable_dict_items (test.test_pickle.CPicklingErrorTests.test_unpickleable_dict_items) ... ok otest_unpickleable_frozenset_items (test.test_pickle.CPicklingErrorTests.test_unpickleable_frozenset_items) ... ok otest_unpickleable_list_items (test.test_pickle.CPicklingErrorTests.test_unpickleable_list_items) ... ok otest_unpickleable_newobj_args (test.test_pickle.CPicklingErrorTests.test_unpickleable_newobj_args) ... ok otest_unpickleable_newobj_class (test.test_pickle.CPicklingErrorTests.test_unpickleable_newobj_class) ... ok otest_unpickleable_newobj_ex_args (test.test_pickle.CPicklingErrorTests.test_unpickleable_newobj_ex_args) ... ok otest_unpickleable_newobj_ex_class (test.test_pickle.CPicklingErrorTests.test_unpickleable_newobj_ex_class) ... ok otest_unpickleable_newobj_ex_kwargs (test.test_pickle.CPicklingErrorTests.test_unpickleable_newobj_ex_kwargs) ... ok otest_unpickleable_object_dict_items (test.test_pickle.CPicklingErrorTests.test_unpickleable_object_dict_items) ... ok otest_unpickleable_object_list_items (test.test_pickle.CPicklingErrorTests.test_unpickleable_object_list_items) ... ok otest_unpickleable_reconstructor (test.test_pickle.CPicklingErrorTests.test_unpickleable_reconstructor) ... ok otest_unpickleable_reconstructor_args (test.test_pickle.CPicklingErrorTests.test_unpickleable_reconstructor_args) ... ok otest_unpickleable_set_items (test.test_pickle.CPicklingErrorTests.test_unpickleable_set_items) ... ok otest_unpickleable_state (test.test_pickle.CPicklingErrorTests.test_unpickleable_state) ... ok otest_unpickleable_state_setter (test.test_pickle.CPicklingErrorTests.test_unpickleable_state_setter) ... ok otest_unpickleable_state_with_state_setter (test.test_pickle.CPicklingErrorTests.test_unpickleable_state_with_state_setter) ... ok otest_unpickleable_tuple_items (test.test_pickle.CPicklingErrorTests.test_unpickleable_tuple_items) ... ok otest_wrong_newobj_class (test.test_pickle.CPicklingErrorTests.test_wrong_newobj_class) ... ok otest_wrong_newobj_ex_class (test.test_pickle.CPicklingErrorTests.test_wrong_newobj_ex_class) ... skipped 'only verified in the Python implementation' otest_wrong_object_lookup_error (test.test_pickle.CPicklingErrorTests.test_wrong_object_lookup_error) ... ok otest_bad_ext_code (test.test_pickle.CUnpicklerTests.test_bad_ext_code) ... ok otest_bad_ext_inverted_registry (test.test_pickle.CUnpicklerTests.test_bad_ext_inverted_registry) ... ok otest_bad_mark (test.test_pickle.CUnpicklerTests.test_bad_mark) ... ok otest_bad_newobj (test.test_pickle.CUnpicklerTests.test_bad_newobj) ... ok otest_bad_newobj_ex (test.test_pickle.CUnpicklerTests.test_bad_newobj_ex) ... ok otest_bad_reduce (test.test_pickle.CUnpicklerTests.test_bad_reduce) ... ok otest_bad_stack (test.test_pickle.CUnpicklerTests.test_bad_stack) ... ok otest_bad_state (test.test_pickle.CUnpicklerTests.test_bad_state) ... ok otest_badly_escaped_string (test.test_pickle.CUnpicklerTests.test_badly_escaped_string) ... ok otest_badly_quoted_string (test.test_pickle.CUnpicklerTests.test_badly_quoted_string) ... ok otest_binbytes (test.test_pickle.CUnpicklerTests.test_binbytes) ... ok otest_binbytes8 (test.test_pickle.CUnpicklerTests.test_binbytes8) ... ok otest_binget (test.test_pickle.CUnpicklerTests.test_binget) ... ok otest_binunicode8 (test.test_pickle.CUnpicklerTests.test_binunicode8) ... ok otest_bytearray8 (test.test_pickle.CUnpicklerTests.test_bytearray8) ... ok otest_compat_unpickle (test.test_pickle.CUnpicklerTests.test_compat_unpickle) ... ok otest_constants (test.test_pickle.CUnpicklerTests.test_constants) ... ok otest_correctly_quoted_string (test.test_pickle.CUnpicklerTests.test_correctly_quoted_string) ... ok otest_custom_find_class (test.test_pickle.CUnpicklerTests.test_custom_find_class) ... ok otest_dup (test.test_pickle.CUnpicklerTests.test_dup) ... ok otest_empty_bytestring (test.test_pickle.CUnpicklerTests.test_empty_bytestring) ... ok otest_find_class (test.test_pickle.CUnpicklerTests.test_find_class) ... ok otest_frame_readline (test.test_pickle.CUnpicklerTests.test_frame_readline) ... ok otest_get (test.test_pickle.CUnpicklerTests.test_get) ... ok otest_large_32b_binbytes8 (test.test_pickle.CUnpicklerTests.test_large_32b_binbytes8) ... skipped 'test is only meaningful on 32-bit builds' otest_large_32b_binunicode8 (test.test_pickle.CUnpicklerTests.test_large_32b_binunicode8) ... skipped 'test is only meaningful on 32-bit builds' otest_large_32b_bytearray8 (test.test_pickle.CUnpicklerTests.test_large_32b_bytearray8) ... skipped 'test is only meaningful on 32-bit builds' otest_load_classic_instance (test.test_pickle.CUnpicklerTests.test_load_classic_instance) ... ok otest_load_from_data0 (test.test_pickle.CUnpicklerTests.test_load_from_data0) ... ok otest_load_from_data1 (test.test_pickle.CUnpicklerTests.test_load_from_data1) ... ok otest_load_from_data2 (test.test_pickle.CUnpicklerTests.test_load_from_data2) ... ok otest_load_from_data3 (test.test_pickle.CUnpicklerTests.test_load_from_data3) ... ok otest_load_from_data4 (test.test_pickle.CUnpicklerTests.test_load_from_data4) ... ok otest_load_global (test.test_pickle.CUnpicklerTests.test_load_global) ... ok otest_load_long_python2_str_as_bytes (test.test_pickle.CUnpicklerTests.test_load_long_python2_str_as_bytes) ... ok otest_load_python2_str_as_bytes (test.test_pickle.CUnpicklerTests.test_load_python2_str_as_bytes) ... ok otest_load_python2_unicode_as_str (test.test_pickle.CUnpicklerTests.test_load_python2_unicode_as_str) ... ok otest_load_stack_global (test.test_pickle.CUnpicklerTests.test_load_stack_global) ... ok otest_long_binget (test.test_pickle.CUnpicklerTests.test_long_binget) ... ok otest_maxint64 (test.test_pickle.CUnpicklerTests.test_maxint64) ... ok otest_misc_get (test.test_pickle.CUnpicklerTests.test_misc_get) ... ok otest_negative_32b_binbytes (test.test_pickle.CUnpicklerTests.test_negative_32b_binbytes) ... skipped 'test is only meaningful on 32-bit builds' otest_negative_32b_binput (test.test_pickle.CUnpicklerTests.test_negative_32b_binput) ... skipped 'test is only meaningful on 32-bit builds' otest_negative_32b_binunicode (test.test_pickle.CUnpicklerTests.test_negative_32b_binunicode) ... skipped 'test is only meaningful on 32-bit builds' otest_negative_put (test.test_pickle.CUnpicklerTests.test_negative_put) ... ok otest_nondecimal_integers (test.test_pickle.CUnpicklerTests.test_nondecimal_integers) ... ok otest_short_binbytes (test.test_pickle.CUnpicklerTests.test_short_binbytes) ... ok otest_short_binunicode (test.test_pickle.CUnpicklerTests.test_short_binunicode) ... ok otest_truncated_data (test.test_pickle.CUnpicklerTests.test_truncated_data) ... ok otest_unpickle_from_2x (test.test_pickle.CUnpicklerTests.test_unpickle_from_2x) ... ok otest_unpickle_module_race (test.test_pickle.CUnpicklerTests.test_unpickle_module_race) ... ok otest_zero_padded_integers (test.test_pickle.CUnpicklerTests.test_zero_padded_integers) ... ok otest_invocation (test.test_pickle.CommandLineTest.test_invocation) ... ok otest_unknown_flag (test.test_pickle.CommandLineTest.test_unknown_flag) ... ok otest_exceptions (test.test_pickle.CompatPickleTests.test_exceptions) ... ok otest_import (test.test_pickle.CompatPickleTests.test_import) ... ok otest_import_mapping (test.test_pickle.CompatPickleTests.test_import_mapping) ... ok otest_multiprocessing_exceptions (test.test_pickle.CompatPickleTests.test_multiprocessing_exceptions) ... ok otest_name_mapping (test.test_pickle.CompatPickleTests.test_name_mapping) ... ok otest_reverse_import_mapping (test.test_pickle.CompatPickleTests.test_reverse_import_mapping) ... ok otest_reverse_name_mapping (test.test_pickle.CompatPickleTests.test_reverse_name_mapping) ... ok otest_appends_on_non_lists (test.test_pickle.DumpPickle_CLoadPickle.test_appends_on_non_lists) ... ok otest_attribute_name_interning (test.test_pickle.DumpPickle_CLoadPickle.test_attribute_name_interning) ... ok otest_buffers_error (test.test_pickle.DumpPickle_CLoadPickle.test_buffers_error) ... ok otest_buffers_numpy (test.test_pickle.DumpPickle_CLoadPickle.test_buffers_numpy) ... skipped 'Test needs Numpy' otest_builtin_exceptions (test.test_pickle.DumpPickle_CLoadPickle.test_builtin_exceptions) ... ok otest_builtin_functions (test.test_pickle.DumpPickle_CLoadPickle.test_builtin_functions) ... ok otest_builtin_types (test.test_pickle.DumpPickle_CLoadPickle.test_builtin_types) ... ok otest_bytearray (test.test_pickle.DumpPickle_CLoadPickle.test_bytearray) ... ok otest_bytearray_memoization (test.test_pickle.DumpPickle_CLoadPickle.test_bytearray_memoization) ... ok otest_bytes (test.test_pickle.DumpPickle_CLoadPickle.test_bytes) ... ok otest_bytes_memoization (test.test_pickle.DumpPickle_CLoadPickle.test_bytes_memoization) ... ok otest_c_methods (test.test_pickle.DumpPickle_CLoadPickle.test_c_methods) ... ok otest_compat_pickle (test.test_pickle.DumpPickle_CLoadPickle.test_compat_pickle) ... ok otest_complex_newobj (test.test_pickle.DumpPickle_CLoadPickle.test_complex_newobj) ... ok otest_complex_newobj_ex (test.test_pickle.DumpPickle_CLoadPickle.test_complex_newobj_ex) ... ok otest_dict_chunking (test.test_pickle.DumpPickle_CLoadPickle.test_dict_chunking) ... ok otest_dynamic_class (test.test_pickle.DumpPickle_CLoadPickle.test_dynamic_class) ... ok otest_ellipsis (test.test_pickle.DumpPickle_CLoadPickle.test_ellipsis) ... ok otest_evil_class_mutating_dict (test.test_pickle.DumpPickle_CLoadPickle.test_evil_class_mutating_dict) ... ok otest_float (test.test_pickle.DumpPickle_CLoadPickle.test_float) ... ok otest_float_format (test.test_pickle.DumpPickle_CLoadPickle.test_float_format) ... o test_float_format (test.test_pickle.DumpPickle_CLoadPickle.test_float_format) (locale='de_DE') ... skipped "no locale 'de_DE'" o test_float_format (test.test_pickle.DumpPickle_CLoadPickle.test_float_format) (locale='fr_FR') ... skipped "no locale 'fr_FR'" otest_framed_write_sizes_with_delayed_writer (test.test_pickle.DumpPickle_CLoadPickle.test_framed_write_sizes_with_delayed_writer) ... ok otest_framing_large_objects (test.test_pickle.DumpPickle_CLoadPickle.test_framing_large_objects) ... ok otest_framing_many_objects (test.test_pickle.DumpPickle_CLoadPickle.test_framing_many_objects) ... ok otest_getinitargs (test.test_pickle.DumpPickle_CLoadPickle.test_getinitargs) ... ok otest_global_ext1 (test.test_pickle.DumpPickle_CLoadPickle.test_global_ext1) ... ok otest_global_ext2 (test.test_pickle.DumpPickle_CLoadPickle.test_global_ext2) ... ok otest_global_ext4 (test.test_pickle.DumpPickle_CLoadPickle.test_global_ext4) ... ok otest_in_band_buffers (test.test_pickle.DumpPickle_CLoadPickle.test_in_band_buffers) ... ok otest_inband_accept_default_buffers_argument (test.test_pickle.DumpPickle_CLoadPickle.test_inband_accept_default_buffers_argument) ... ok otest_int_pickling_efficiency (test.test_pickle.DumpPickle_CLoadPickle.test_int_pickling_efficiency) ... ok otest_ints (test.test_pickle.DumpPickle_CLoadPickle.test_ints) ... ok otest_large_pickles (test.test_pickle.DumpPickle_CLoadPickle.test_large_pickles) ... ok otest_list_chunking (test.test_pickle.DumpPickle_CLoadPickle.test_list_chunking) ... ok otest_long (test.test_pickle.DumpPickle_CLoadPickle.test_long) ... ok otest_long1 (test.test_pickle.DumpPickle_CLoadPickle.test_long1) ... ok otest_long4 (test.test_pickle.DumpPickle_CLoadPickle.test_long4) ... ok otest_many_puts_and_gets (test.test_pickle.DumpPickle_CLoadPickle.test_many_puts_and_gets) ... ok otest_metaclass (test.test_pickle.DumpPickle_CLoadPickle.test_metaclass) ... ok otest_misc (test.test_pickle.DumpPickle_CLoadPickle.test_misc) ... ok otest_nested_names (test.test_pickle.DumpPickle_CLoadPickle.test_nested_names) ... ok otest_newobj_generic (test.test_pickle.DumpPickle_CLoadPickle.test_newobj_generic) ... ok otest_newobj_list (test.test_pickle.DumpPickle_CLoadPickle.test_newobj_list) ... ok otest_newobj_list_slots (test.test_pickle.DumpPickle_CLoadPickle.test_newobj_list_slots) ... ok otest_newobj_not_class (test.test_pickle.DumpPickle_CLoadPickle.test_newobj_not_class) ... ok otest_newobj_overridden_new (test.test_pickle.DumpPickle_CLoadPickle.test_newobj_overridden_new) ... ok otest_newobj_proxies (test.test_pickle.DumpPickle_CLoadPickle.test_newobj_proxies) ... ok otest_newobj_tuple (test.test_pickle.DumpPickle_CLoadPickle.test_newobj_tuple) ... ok otest_notimplemented (test.test_pickle.DumpPickle_CLoadPickle.test_notimplemented) ... ok otest_oob_buffers (test.test_pickle.DumpPickle_CLoadPickle.test_oob_buffers) ... ok otest_oob_buffers_writable_to_readonly (test.test_pickle.DumpPickle_CLoadPickle.test_oob_buffers_writable_to_readonly) ... ok otest_optional_frames (test.test_pickle.DumpPickle_CLoadPickle.test_optional_frames) ... ok otest_pickle_setstate_None (test.test_pickle.DumpPickle_CLoadPickle.test_pickle_setstate_None) ... ok otest_pickle_to_2x (test.test_pickle.DumpPickle_CLoadPickle.test_pickle_to_2x) ... ok otest_proto (test.test_pickle.DumpPickle_CLoadPickle.test_proto) ... ok otest_py_methods (test.test_pickle.DumpPickle_CLoadPickle.test_py_methods) ... ok otest_recursive_dict (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_dict) ... ok otest_recursive_dict_and_inst (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_dict_and_inst) ... ok otest_recursive_dict_key (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_dict_key) ... ok otest_recursive_dict_like (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_dict_like) ... ok otest_recursive_dict_like_key (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_dict_like_key) ... ok otest_recursive_dict_subclass (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_dict_subclass) ... ok otest_recursive_dict_subclass_and_inst (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_dict_subclass_and_inst) ... ok otest_recursive_dict_subclass_key (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_dict_subclass_key) ... ok otest_recursive_frozenset_and_inst (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_frozenset_and_inst) ... ok otest_recursive_frozenset_subclass_and_inst (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_frozenset_subclass_and_inst) ... ok otest_recursive_inst (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_inst) ... ok otest_recursive_inst_state (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_inst_state) ... ok otest_recursive_list (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_list) ... ok otest_recursive_list_and_inst (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_list_and_inst) ... ok otest_recursive_list_like (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_list_like) ... ok otest_recursive_list_subclass (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_list_subclass) ... ok otest_recursive_list_subclass_and_inst (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_list_subclass_and_inst) ... ok otest_recursive_multi (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_multi) ... ok otest_recursive_nested_names (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_nested_names) ... ok otest_recursive_nested_names2 (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_nested_names2) ... ok otest_recursive_set (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_set) ... ok otest_recursive_set_and_inst (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_set_and_inst) ... ok otest_recursive_set_subclass_and_inst (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_set_subclass_and_inst) ... ok otest_recursive_tuple_and_dict (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_tuple_and_dict) ... ok otest_recursive_tuple_and_dict_key (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_tuple_and_dict_key) ... ok otest_recursive_tuple_and_dict_like (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_tuple_and_dict_like) ... ok otest_recursive_tuple_and_dict_like_key (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_tuple_and_dict_like_key) ... ok otest_recursive_tuple_and_dict_subclass (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_tuple_and_dict_subclass) ... ok otest_recursive_tuple_and_dict_subclass_key (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_tuple_and_dict_subclass_key) ... ok otest_recursive_tuple_and_inst (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_tuple_and_inst) ... ok otest_recursive_tuple_and_inst_state (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_tuple_and_inst_state) ... ok otest_recursive_tuple_and_list (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_tuple_and_list) ... ok otest_recursive_tuple_and_list_like (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_tuple_and_list_like) ... ok otest_recursive_tuple_and_list_subclass (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_tuple_and_list_subclass) ... ok otest_recursive_tuple_subclass_and_inst (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_tuple_subclass_and_inst) ... ok otest_reduce (test.test_pickle.DumpPickle_CLoadPickle.test_reduce) ... ok otest_reduce_calls_base (test.test_pickle.DumpPickle_CLoadPickle.test_reduce_calls_base) ... ok otest_reduce_ex_called (test.test_pickle.DumpPickle_CLoadPickle.test_reduce_ex_called) ... ok otest_reduce_ex_calls_base (test.test_pickle.DumpPickle_CLoadPickle.test_reduce_ex_calls_base) ... ok otest_reduce_ex_overrides_reduce (test.test_pickle.DumpPickle_CLoadPickle.test_reduce_ex_overrides_reduce) ... ok otest_reduce_overrides_default_reduce_ex (test.test_pickle.DumpPickle_CLoadPickle.test_reduce_overrides_default_reduce_ex) ... ok otest_roundtrip_equality (test.test_pickle.DumpPickle_CLoadPickle.test_roundtrip_equality) ... ok otest_set_chunking (test.test_pickle.DumpPickle_CLoadPickle.test_set_chunking) ... ok otest_setitems_on_non_dicts (test.test_pickle.DumpPickle_CLoadPickle.test_setitems_on_non_dicts) ... ok otest_short_tuples (test.test_pickle.DumpPickle_CLoadPickle.test_short_tuples) ... ok otest_simple_newobj (test.test_pickle.DumpPickle_CLoadPickle.test_simple_newobj) ... ok otest_singleton_types (test.test_pickle.DumpPickle_CLoadPickle.test_singleton_types) ... ok otest_singletons (test.test_pickle.DumpPickle_CLoadPickle.test_singletons) ... ok otest_structseq (test.test_pickle.DumpPickle_CLoadPickle.test_structseq) ... ok otest_unicode (test.test_pickle.DumpPickle_CLoadPickle.test_unicode) ... ok otest_unicode_high_plane (test.test_pickle.DumpPickle_CLoadPickle.test_unicode_high_plane) ... ok otest_unicode_memoization (test.test_pickle.DumpPickle_CLoadPickle.test_unicode_memoization) ... ok otest_have_gc (test.test_pickle.HeapTypesTests.test_have_gc) ... ok otest_immutable (test.test_pickle.HeapTypesTests.test_immutable) ... ok otest_appends_on_non_lists (test.test_pickle.InMemoryPickleTests.test_appends_on_non_lists) ... ok otest_attribute_name_interning (test.test_pickle.InMemoryPickleTests.test_attribute_name_interning) ... ok otest_bad_ext_code (test.test_pickle.InMemoryPickleTests.test_bad_ext_code) ... ok otest_bad_ext_inverted_registry (test.test_pickle.InMemoryPickleTests.test_bad_ext_inverted_registry) ... ok otest_bad_mark (test.test_pickle.InMemoryPickleTests.test_bad_mark) ... ok otest_bad_newobj (test.test_pickle.InMemoryPickleTests.test_bad_newobj) ... ok otest_bad_newobj_ex (test.test_pickle.InMemoryPickleTests.test_bad_newobj_ex) ... ok otest_bad_reduce (test.test_pickle.InMemoryPickleTests.test_bad_reduce) ... ok otest_bad_stack (test.test_pickle.InMemoryPickleTests.test_bad_stack) ... ok otest_bad_state (test.test_pickle.InMemoryPickleTests.test_bad_state) ... ok otest_badly_escaped_string (test.test_pickle.InMemoryPickleTests.test_badly_escaped_string) ... ok otest_badly_quoted_string (test.test_pickle.InMemoryPickleTests.test_badly_quoted_string) ... ok otest_binbytes (test.test_pickle.InMemoryPickleTests.test_binbytes) ... ok otest_binbytes8 (test.test_pickle.InMemoryPickleTests.test_binbytes8) ... ok otest_binget (test.test_pickle.InMemoryPickleTests.test_binget) ... ok otest_binunicode8 (test.test_pickle.InMemoryPickleTests.test_binunicode8) ... ok otest_buffers_error (test.test_pickle.InMemoryPickleTests.test_buffers_error) ... ok otest_buffers_numpy (test.test_pickle.InMemoryPickleTests.test_buffers_numpy) ... skipped 'Test needs Numpy' otest_builtin_exceptions (test.test_pickle.InMemoryPickleTests.test_builtin_exceptions) ... ok otest_builtin_functions (test.test_pickle.InMemoryPickleTests.test_builtin_functions) ... ok otest_builtin_types (test.test_pickle.InMemoryPickleTests.test_builtin_types) ... ok otest_bytearray (test.test_pickle.InMemoryPickleTests.test_bytearray) ... ok otest_bytearray8 (test.test_pickle.InMemoryPickleTests.test_bytearray8) ... ok otest_bytearray_memoization (test.test_pickle.InMemoryPickleTests.test_bytearray_memoization) ... ok otest_bytes (test.test_pickle.InMemoryPickleTests.test_bytes) ... ok otest_bytes_memoization (test.test_pickle.InMemoryPickleTests.test_bytes_memoization) ... ok otest_c_methods (test.test_pickle.InMemoryPickleTests.test_c_methods) ... ok otest_compat_pickle (test.test_pickle.InMemoryPickleTests.test_compat_pickle) ... ok otest_compat_unpickle (test.test_pickle.InMemoryPickleTests.test_compat_unpickle) ... ok otest_complex_newobj (test.test_pickle.InMemoryPickleTests.test_complex_newobj) ... ok otest_complex_newobj_ex (test.test_pickle.InMemoryPickleTests.test_complex_newobj_ex) ... ok otest_constants (test.test_pickle.InMemoryPickleTests.test_constants) ... ok otest_correctly_quoted_string (test.test_pickle.InMemoryPickleTests.test_correctly_quoted_string) ... ok otest_dict_chunking (test.test_pickle.InMemoryPickleTests.test_dict_chunking) ... ok otest_dup (test.test_pickle.InMemoryPickleTests.test_dup) ... ok otest_dynamic_class (test.test_pickle.InMemoryPickleTests.test_dynamic_class) ... ok otest_ellipsis (test.test_pickle.InMemoryPickleTests.test_ellipsis) ... ok otest_empty_bytestring (test.test_pickle.InMemoryPickleTests.test_empty_bytestring) ... ok otest_evil_class_mutating_dict (test.test_pickle.InMemoryPickleTests.test_evil_class_mutating_dict) ... ok otest_float (test.test_pickle.InMemoryPickleTests.test_float) ... ok otest_float_format (test.test_pickle.InMemoryPickleTests.test_float_format) ... o test_float_format (test.test_pickle.InMemoryPickleTests.test_float_format) (locale='de_DE') ... skipped "no locale 'de_DE'" o test_float_format (test.test_pickle.InMemoryPickleTests.test_float_format) (locale='fr_FR') ... skipped "no locale 'fr_FR'" otest_frame_readline (test.test_pickle.InMemoryPickleTests.test_frame_readline) ... ok otest_framing_large_objects (test.test_pickle.InMemoryPickleTests.test_framing_large_objects) ... ok otest_framing_many_objects (test.test_pickle.InMemoryPickleTests.test_framing_many_objects) ... ok otest_get (test.test_pickle.InMemoryPickleTests.test_get) ... ok otest_getinitargs (test.test_pickle.InMemoryPickleTests.test_getinitargs) ... ok otest_global_ext1 (test.test_pickle.InMemoryPickleTests.test_global_ext1) ... ok otest_global_ext2 (test.test_pickle.InMemoryPickleTests.test_global_ext2) ... ok otest_global_ext4 (test.test_pickle.InMemoryPickleTests.test_global_ext4) ... ok otest_huge_bytes_32b (test.test_pickle.InMemoryPickleTests.test_huge_bytes_32b) ... skipped 'not enough memory: 5.0G minimum needed' otest_huge_bytes_64b (test.test_pickle.InMemoryPickleTests.test_huge_bytes_64b) ... skipped 'not enough memory: 10.0G minimum needed' otest_huge_long_32b (test.test_pickle.InMemoryPickleTests.test_huge_long_32b) ... skipped 'not enough memory: 7.2G minimum needed' otest_huge_str_32b (test.test_pickle.InMemoryPickleTests.test_huge_str_32b) ... skipped 'not enough memory: 16.0G minimum needed' otest_huge_str_64b (test.test_pickle.InMemoryPickleTests.test_huge_str_64b) ... skipped 'not enough memory: 32.0G minimum needed' otest_in_band_buffers (test.test_pickle.InMemoryPickleTests.test_in_band_buffers) ... ok otest_inband_accept_default_buffers_argument (test.test_pickle.InMemoryPickleTests.test_inband_accept_default_buffers_argument) ... ok otest_int_pickling_efficiency (test.test_pickle.InMemoryPickleTests.test_int_pickling_efficiency) ... ok otest_ints (test.test_pickle.InMemoryPickleTests.test_ints) ... ok otest_large_32b_binbytes8 (test.test_pickle.InMemoryPickleTests.test_large_32b_binbytes8) ... skipped 'test is only meaningful on 32-bit builds' otest_large_32b_binunicode8 (test.test_pickle.InMemoryPickleTests.test_large_32b_binunicode8) ... skipped 'test is only meaningful on 32-bit builds' otest_large_32b_bytearray8 (test.test_pickle.InMemoryPickleTests.test_large_32b_bytearray8) ... skipped 'test is only meaningful on 32-bit builds' otest_large_pickles (test.test_pickle.InMemoryPickleTests.test_large_pickles) ... ok otest_list_chunking (test.test_pickle.InMemoryPickleTests.test_list_chunking) ... ok otest_load_classic_instance (test.test_pickle.InMemoryPickleTests.test_load_classic_instance) ... ok otest_load_from_data0 (test.test_pickle.InMemoryPickleTests.test_load_from_data0) ... ok otest_load_from_data1 (test.test_pickle.InMemoryPickleTests.test_load_from_data1) ... ok otest_load_from_data2 (test.test_pickle.InMemoryPickleTests.test_load_from_data2) ... ok otest_load_from_data3 (test.test_pickle.InMemoryPickleTests.test_load_from_data3) ... ok otest_load_from_data4 (test.test_pickle.InMemoryPickleTests.test_load_from_data4) ... ok otest_load_global (test.test_pickle.InMemoryPickleTests.test_load_global) ... ok otest_load_long_python2_str_as_bytes (test.test_pickle.InMemoryPickleTests.test_load_long_python2_str_as_bytes) ... ok otest_load_python2_str_as_bytes (test.test_pickle.InMemoryPickleTests.test_load_python2_str_as_bytes) ... ok otest_load_python2_unicode_as_str (test.test_pickle.InMemoryPickleTests.test_load_python2_unicode_as_str) ... ok otest_load_stack_global (test.test_pickle.InMemoryPickleTests.test_load_stack_global) ... ok otest_long (test.test_pickle.InMemoryPickleTests.test_long) ... ok otest_long1 (test.test_pickle.InMemoryPickleTests.test_long1) ... ok otest_long4 (test.test_pickle.InMemoryPickleTests.test_long4) ... ok otest_long_binget (test.test_pickle.InMemoryPickleTests.test_long_binget) ... ok otest_many_puts_and_gets (test.test_pickle.InMemoryPickleTests.test_many_puts_and_gets) ... ok otest_maxint64 (test.test_pickle.InMemoryPickleTests.test_maxint64) ... ok otest_metaclass (test.test_pickle.InMemoryPickleTests.test_metaclass) ... ok otest_misc (test.test_pickle.InMemoryPickleTests.test_misc) ... ok otest_misc_get (test.test_pickle.InMemoryPickleTests.test_misc_get) ... ok otest_negative_32b_binbytes (test.test_pickle.InMemoryPickleTests.test_negative_32b_binbytes) ... skipped 'test is only meaningful on 32-bit builds' otest_negative_32b_binput (test.test_pickle.InMemoryPickleTests.test_negative_32b_binput) ... skipped 'test is only meaningful on 32-bit builds' otest_negative_32b_binunicode (test.test_pickle.InMemoryPickleTests.test_negative_32b_binunicode) ... skipped 'test is only meaningful on 32-bit builds' otest_negative_put (test.test_pickle.InMemoryPickleTests.test_negative_put) ... ok otest_nested_names (test.test_pickle.InMemoryPickleTests.test_nested_names) ... ok otest_newobj_generic (test.test_pickle.InMemoryPickleTests.test_newobj_generic) ... ok otest_newobj_list (test.test_pickle.InMemoryPickleTests.test_newobj_list) ... ok otest_newobj_list_slots (test.test_pickle.InMemoryPickleTests.test_newobj_list_slots) ... ok otest_newobj_not_class (test.test_pickle.InMemoryPickleTests.test_newobj_not_class) ... ok otest_newobj_overridden_new (test.test_pickle.InMemoryPickleTests.test_newobj_overridden_new) ... ok otest_newobj_proxies (test.test_pickle.InMemoryPickleTests.test_newobj_proxies) ... ok otest_newobj_tuple (test.test_pickle.InMemoryPickleTests.test_newobj_tuple) ... ok otest_nondecimal_integers (test.test_pickle.InMemoryPickleTests.test_nondecimal_integers) ... ok otest_notimplemented (test.test_pickle.InMemoryPickleTests.test_notimplemented) ... ok otest_oob_buffers (test.test_pickle.InMemoryPickleTests.test_oob_buffers) ... ok otest_oob_buffers_writable_to_readonly (test.test_pickle.InMemoryPickleTests.test_oob_buffers_writable_to_readonly) ... ok otest_optional_frames (test.test_pickle.InMemoryPickleTests.test_optional_frames) ... ok otest_pickle_setstate_None (test.test_pickle.InMemoryPickleTests.test_pickle_setstate_None) ... ok otest_pickle_to_2x (test.test_pickle.InMemoryPickleTests.test_pickle_to_2x) ... ok otest_proto (test.test_pickle.InMemoryPickleTests.test_proto) ... ok otest_py_methods (test.test_pickle.InMemoryPickleTests.test_py_methods) ... ok otest_recursive_dict (test.test_pickle.InMemoryPickleTests.test_recursive_dict) ... ok otest_recursive_dict_and_inst (test.test_pickle.InMemoryPickleTests.test_recursive_dict_and_inst) ... ok otest_recursive_dict_key (test.test_pickle.InMemoryPickleTests.test_recursive_dict_key) ... ok otest_recursive_dict_like (test.test_pickle.InMemoryPickleTests.test_recursive_dict_like) ... ok otest_recursive_dict_like_key (test.test_pickle.InMemoryPickleTests.test_recursive_dict_like_key) ... ok otest_recursive_dict_subclass (test.test_pickle.InMemoryPickleTests.test_recursive_dict_subclass) ... ok otest_recursive_dict_subclass_and_inst (test.test_pickle.InMemoryPickleTests.test_recursive_dict_subclass_and_inst) ... ok otest_recursive_dict_subclass_key (test.test_pickle.InMemoryPickleTests.test_recursive_dict_subclass_key) ... ok otest_recursive_frozenset_and_inst (test.test_pickle.InMemoryPickleTests.test_recursive_frozenset_and_inst) ... ok otest_recursive_frozenset_subclass_and_inst (test.test_pickle.InMemoryPickleTests.test_recursive_frozenset_subclass_and_inst) ... ok otest_recursive_inst (test.test_pickle.InMemoryPickleTests.test_recursive_inst) ... ok otest_recursive_inst_state (test.test_pickle.InMemoryPickleTests.test_recursive_inst_state) ... ok otest_recursive_list (test.test_pickle.InMemoryPickleTests.test_recursive_list) ... ok otest_recursive_list_and_inst (test.test_pickle.InMemoryPickleTests.test_recursive_list_and_inst) ... ok otest_recursive_list_like (test.test_pickle.InMemoryPickleTests.test_recursive_list_like) ... ok otest_recursive_list_subclass (test.test_pickle.InMemoryPickleTests.test_recursive_list_subclass) ... ok otest_recursive_list_subclass_and_inst (test.test_pickle.InMemoryPickleTests.test_recursive_list_subclass_and_inst) ... ok otest_recursive_multi (test.test_pickle.InMemoryPickleTests.test_recursive_multi) ... ok otest_recursive_nested_names (test.test_pickle.InMemoryPickleTests.test_recursive_nested_names) ... ok otest_recursive_nested_names2 (test.test_pickle.InMemoryPickleTests.test_recursive_nested_names2) ... ok otest_recursive_set (test.test_pickle.InMemoryPickleTests.test_recursive_set) ... ok otest_recursive_set_and_inst (test.test_pickle.InMemoryPickleTests.test_recursive_set_and_inst) ... ok otest_recursive_set_subclass_and_inst (test.test_pickle.InMemoryPickleTests.test_recursive_set_subclass_and_inst) ... ok otest_recursive_tuple_and_dict (test.test_pickle.InMemoryPickleTests.test_recursive_tuple_and_dict) ... ok otest_recursive_tuple_and_dict_key (test.test_pickle.InMemoryPickleTests.test_recursive_tuple_and_dict_key) ... ok otest_recursive_tuple_and_dict_like (test.test_pickle.InMemoryPickleTests.test_recursive_tuple_and_dict_like) ... ok otest_recursive_tuple_and_dict_like_key (test.test_pickle.InMemoryPickleTests.test_recursive_tuple_and_dict_like_key) ... ok otest_recursive_tuple_and_dict_subclass (test.test_pickle.InMemoryPickleTests.test_recursive_tuple_and_dict_subclass) ... ok otest_recursive_tuple_and_dict_subclass_key (test.test_pickle.InMemoryPickleTests.test_recursive_tuple_and_dict_subclass_key) ... ok otest_recursive_tuple_and_inst (test.test_pickle.InMemoryPickleTests.test_recursive_tuple_and_inst) ... ok otest_recursive_tuple_and_inst_state (test.test_pickle.InMemoryPickleTests.test_recursive_tuple_and_inst_state) ... ok otest_recursive_tuple_and_list (test.test_pickle.InMemoryPickleTests.test_recursive_tuple_and_list) ... ok otest_recursive_tuple_and_list_like (test.test_pickle.InMemoryPickleTests.test_recursive_tuple_and_list_like) ... ok otest_recursive_tuple_and_list_subclass (test.test_pickle.InMemoryPickleTests.test_recursive_tuple_and_list_subclass) ... ok otest_recursive_tuple_subclass_and_inst (test.test_pickle.InMemoryPickleTests.test_recursive_tuple_subclass_and_inst) ... ok otest_reduce (test.test_pickle.InMemoryPickleTests.test_reduce) ... ok otest_reduce_calls_base (test.test_pickle.InMemoryPickleTests.test_reduce_calls_base) ... ok otest_reduce_ex_called (test.test_pickle.InMemoryPickleTests.test_reduce_ex_called) ... ok otest_reduce_ex_calls_base (test.test_pickle.InMemoryPickleTests.test_reduce_ex_calls_base) ... ok otest_reduce_ex_overrides_reduce (test.test_pickle.InMemoryPickleTests.test_reduce_ex_overrides_reduce) ... ok otest_reduce_overrides_default_reduce_ex (test.test_pickle.InMemoryPickleTests.test_reduce_overrides_default_reduce_ex) ... ok otest_roundtrip_equality (test.test_pickle.InMemoryPickleTests.test_roundtrip_equality) ... ok otest_set_chunking (test.test_pickle.InMemoryPickleTests.test_set_chunking) ... ok otest_setitems_on_non_dicts (test.test_pickle.InMemoryPickleTests.test_setitems_on_non_dicts) ... ok otest_short_binbytes (test.test_pickle.InMemoryPickleTests.test_short_binbytes) ... ok otest_short_binunicode (test.test_pickle.InMemoryPickleTests.test_short_binunicode) ... ok otest_short_tuples (test.test_pickle.InMemoryPickleTests.test_short_tuples) ... ok otest_simple_newobj (test.test_pickle.InMemoryPickleTests.test_simple_newobj) ... ok otest_singleton_types (test.test_pickle.InMemoryPickleTests.test_singleton_types) ... ok otest_singletons (test.test_pickle.InMemoryPickleTests.test_singletons) ... ok otest_structseq (test.test_pickle.InMemoryPickleTests.test_structseq) ... ok otest_truncated_data (test.test_pickle.InMemoryPickleTests.test_truncated_data) ... ok otest_unicode (test.test_pickle.InMemoryPickleTests.test_unicode) ... ok otest_unicode_high_plane (test.test_pickle.InMemoryPickleTests.test_unicode_high_plane) ... ok otest_unicode_memoization (test.test_pickle.InMemoryPickleTests.test_unicode_memoization) ... ok otest_unpickle_from_2x (test.test_pickle.InMemoryPickleTests.test_unpickle_from_2x) ... ok otest_unpickle_module_race (test.test_pickle.InMemoryPickleTests.test_unpickle_module_race) ... ok otest_zero_padded_integers (test.test_pickle.InMemoryPickleTests.test_zero_padded_integers) ... ok otest_lazy_import (test.test_pickle.LazyImportTest.test_lazy_import) ... ok otest_class_dispatch_table (test.test_pickle.PyChainDispatchTableTests.test_class_dispatch_table) ... ok otest_default_dispatch_table (test.test_pickle.PyChainDispatchTableTests.test_default_dispatch_table) ... ok otest_dispatch_table_None_item (test.test_pickle.PyChainDispatchTableTests.test_dispatch_table_None_item) ... ok otest_instance_dispatch_table (test.test_pickle.PyChainDispatchTableTests.test_instance_dispatch_table) ... ok otest_class_dispatch_table (test.test_pickle.PyDispatchTableTests.test_class_dispatch_table) ... ok otest_default_dispatch_table (test.test_pickle.PyDispatchTableTests.test_default_dispatch_table) ... ok otest_dispatch_table_None_item (test.test_pickle.PyDispatchTableTests.test_dispatch_table_None_item) ... ok otest_instance_dispatch_table (test.test_pickle.PyDispatchTableTests.test_instance_dispatch_table) ... ok otest_custom_pickler_dispatch_table_memleak (test.test_pickle.PyIdPersPicklerTests.test_custom_pickler_dispatch_table_memleak) ... ok otest_pickler_instance_attribute (test.test_pickle.PyIdPersPicklerTests.test_pickler_instance_attribute) ... ok otest_pickler_reference_cycle (test.test_pickle.PyIdPersPicklerTests.test_pickler_reference_cycle) ... ok otest_pickler_super (test.test_pickle.PyIdPersPicklerTests.test_pickler_super) ... ok otest_pickler_super_instance_attribute (test.test_pickle.PyIdPersPicklerTests.test_pickler_super_instance_attribute) ... ok otest_protocol0_is_ascii_only (test.test_pickle.PyIdPersPicklerTests.test_protocol0_is_ascii_only) ... ok otest_return_correct_type (test.test_pickle.PyIdPersPicklerTests.test_return_correct_type) ... ok otest_unpickler_instance_attribute (test.test_pickle.PyIdPersPicklerTests.test_unpickler_instance_attribute) ... ok otest_unpickler_reference_cycle (test.test_pickle.PyIdPersPicklerTests.test_unpickler_reference_cycle) ... ok otest_unpickler_super (test.test_pickle.PyIdPersPicklerTests.test_unpickler_super) ... ok otest_unpickler_super_instance_attribute (test.test_pickle.PyIdPersPicklerTests.test_unpickler_super_instance_attribute) ... ok otest_persistence (test.test_pickle.PyPersPicklerTests.test_persistence) ... ok otest_bad_init (test.test_pickle.PyPickleTests.test_bad_init) ... ok otest_callapi (test.test_pickle.PyPickleTests.test_callapi) ... ok otest_dump_closed_file (test.test_pickle.PyPickleTests.test_dump_closed_file) ... ok otest_dump_load_oob_buffers (test.test_pickle.PyPickleTests.test_dump_load_oob_buffers) ... ok otest_dump_text_file (test.test_pickle.PyPickleTests.test_dump_text_file) ... ok otest_dumps_loads_oob_buffers (test.test_pickle.PyPickleTests.test_dumps_loads_oob_buffers) ... ok otest_highest_protocol (test.test_pickle.PyPickleTests.test_highest_protocol) ... ok otest_incomplete_input (test.test_pickle.PyPickleTests.test_incomplete_input) ... ok otest_load_closed_file (test.test_pickle.PyPickleTests.test_load_closed_file) ... ok otest_load_from_and_dump_to_file (test.test_pickle.PyPickleTests.test_load_from_and_dump_to_file) ... ok otest_pickler_bad_file (test.test_pickle.PyPickleTests.test_pickler_bad_file) ... ok otest_unpickler_bad_file (test.test_pickle.PyPickleTests.test_unpickler_bad_file) ... ok otest_pickler_hook (test.test_pickle.PyPicklerHookTests.test_pickler_hook) ... ok otest_reducer_override_no_reference_cycle (test.test_pickle.PyPicklerHookTests.test_reducer_override_no_reference_cycle) ... ok otest_appends_on_non_lists (test.test_pickle.PyPicklerTests.test_appends_on_non_lists) ... ok otest_attribute_name_interning (test.test_pickle.PyPicklerTests.test_attribute_name_interning) ... ok otest_buffers_error (test.test_pickle.PyPicklerTests.test_buffers_error) ... ok otest_buffers_numpy (test.test_pickle.PyPicklerTests.test_buffers_numpy) ... skipped 'Test needs Numpy' otest_builtin_exceptions (test.test_pickle.PyPicklerTests.test_builtin_exceptions) ... ok otest_builtin_functions (test.test_pickle.PyPicklerTests.test_builtin_functions) ... ok otest_builtin_types (test.test_pickle.PyPicklerTests.test_builtin_types) ... ok otest_bytearray (test.test_pickle.PyPicklerTests.test_bytearray) ... ok otest_bytearray_memoization (test.test_pickle.PyPicklerTests.test_bytearray_memoization) ... ok otest_bytes (test.test_pickle.PyPicklerTests.test_bytes) ... ok otest_bytes_memoization (test.test_pickle.PyPicklerTests.test_bytes_memoization) ... ok otest_c_methods (test.test_pickle.PyPicklerTests.test_c_methods) ... ok otest_compat_pickle (test.test_pickle.PyPicklerTests.test_compat_pickle) ... ok otest_complex_newobj (test.test_pickle.PyPicklerTests.test_complex_newobj) ... ok otest_complex_newobj_ex (test.test_pickle.PyPicklerTests.test_complex_newobj_ex) ... ok otest_dict_chunking (test.test_pickle.PyPicklerTests.test_dict_chunking) ... ok otest_dynamic_class (test.test_pickle.PyPicklerTests.test_dynamic_class) ... ok otest_ellipsis (test.test_pickle.PyPicklerTests.test_ellipsis) ... ok otest_evil_class_mutating_dict (test.test_pickle.PyPicklerTests.test_evil_class_mutating_dict) ... ok otest_float (test.test_pickle.PyPicklerTests.test_float) ... ok otest_float_format (test.test_pickle.PyPicklerTests.test_float_format) ... o test_float_format (test.test_pickle.PyPicklerTests.test_float_format) (locale='de_DE') ... skipped "no locale 'de_DE'" o test_float_format (test.test_pickle.PyPicklerTests.test_float_format) (locale='fr_FR') ... skipped "no locale 'fr_FR'" otest_framed_write_sizes_with_delayed_writer (test.test_pickle.PyPicklerTests.test_framed_write_sizes_with_delayed_writer) ... ok otest_framing_large_objects (test.test_pickle.PyPicklerTests.test_framing_large_objects) ... ok otest_framing_many_objects (test.test_pickle.PyPicklerTests.test_framing_many_objects) ... ok otest_getinitargs (test.test_pickle.PyPicklerTests.test_getinitargs) ... ok otest_global_ext1 (test.test_pickle.PyPicklerTests.test_global_ext1) ... ok otest_global_ext2 (test.test_pickle.PyPicklerTests.test_global_ext2) ... ok otest_global_ext4 (test.test_pickle.PyPicklerTests.test_global_ext4) ... ok otest_in_band_buffers (test.test_pickle.PyPicklerTests.test_in_band_buffers) ... ok otest_inband_accept_default_buffers_argument (test.test_pickle.PyPicklerTests.test_inband_accept_default_buffers_argument) ... ok otest_int_pickling_efficiency (test.test_pickle.PyPicklerTests.test_int_pickling_efficiency) ... ok otest_ints (test.test_pickle.PyPicklerTests.test_ints) ... ok otest_large_pickles (test.test_pickle.PyPicklerTests.test_large_pickles) ... ok otest_list_chunking (test.test_pickle.PyPicklerTests.test_list_chunking) ... ok otest_long (test.test_pickle.PyPicklerTests.test_long) ... ok otest_long1 (test.test_pickle.PyPicklerTests.test_long1) ... ok otest_long4 (test.test_pickle.PyPicklerTests.test_long4) ... ok otest_many_puts_and_gets (test.test_pickle.PyPicklerTests.test_many_puts_and_gets) ... ok otest_metaclass (test.test_pickle.PyPicklerTests.test_metaclass) ... ok otest_misc (test.test_pickle.PyPicklerTests.test_misc) ... ok otest_nested_names (test.test_pickle.PyPicklerTests.test_nested_names) ... ok otest_newobj_generic (test.test_pickle.PyPicklerTests.test_newobj_generic) ... ok otest_newobj_list (test.test_pickle.PyPicklerTests.test_newobj_list) ... ok otest_newobj_list_slots (test.test_pickle.PyPicklerTests.test_newobj_list_slots) ... ok otest_newobj_not_class (test.test_pickle.PyPicklerTests.test_newobj_not_class) ... ok otest_newobj_overridden_new (test.test_pickle.PyPicklerTests.test_newobj_overridden_new) ... ok otest_newobj_proxies (test.test_pickle.PyPicklerTests.test_newobj_proxies) ... ok otest_newobj_tuple (test.test_pickle.PyPicklerTests.test_newobj_tuple) ... ok otest_notimplemented (test.test_pickle.PyPicklerTests.test_notimplemented) ... ok otest_oob_buffers (test.test_pickle.PyPicklerTests.test_oob_buffers) ... ok otest_oob_buffers_writable_to_readonly (test.test_pickle.PyPicklerTests.test_oob_buffers_writable_to_readonly) ... ok otest_optional_frames (test.test_pickle.PyPicklerTests.test_optional_frames) ... ok otest_pickle_setstate_None (test.test_pickle.PyPicklerTests.test_pickle_setstate_None) ... ok otest_pickle_to_2x (test.test_pickle.PyPicklerTests.test_pickle_to_2x) ... ok otest_proto (test.test_pickle.PyPicklerTests.test_proto) ... ok otest_py_methods (test.test_pickle.PyPicklerTests.test_py_methods) ... ok otest_recursive_dict (test.test_pickle.PyPicklerTests.test_recursive_dict) ... ok otest_recursive_dict_and_inst (test.test_pickle.PyPicklerTests.test_recursive_dict_and_inst) ... ok otest_recursive_dict_key (test.test_pickle.PyPicklerTests.test_recursive_dict_key) ... ok otest_recursive_dict_like (test.test_pickle.PyPicklerTests.test_recursive_dict_like) ... ok otest_recursive_dict_like_key (test.test_pickle.PyPicklerTests.test_recursive_dict_like_key) ... ok otest_recursive_dict_subclass (test.test_pickle.PyPicklerTests.test_recursive_dict_subclass) ... ok otest_recursive_dict_subclass_and_inst (test.test_pickle.PyPicklerTests.test_recursive_dict_subclass_and_inst) ... ok otest_recursive_dict_subclass_key (test.test_pickle.PyPicklerTests.test_recursive_dict_subclass_key) ... ok otest_recursive_frozenset_and_inst (test.test_pickle.PyPicklerTests.test_recursive_frozenset_and_inst) ... ok otest_recursive_frozenset_subclass_and_inst (test.test_pickle.PyPicklerTests.test_recursive_frozenset_subclass_and_inst) ... ok otest_recursive_inst (test.test_pickle.PyPicklerTests.test_recursive_inst) ... ok otest_recursive_inst_state (test.test_pickle.PyPicklerTests.test_recursive_inst_state) ... ok otest_recursive_list (test.test_pickle.PyPicklerTests.test_recursive_list) ... ok otest_recursive_list_and_inst (test.test_pickle.PyPicklerTests.test_recursive_list_and_inst) ... ok otest_recursive_list_like (test.test_pickle.PyPicklerTests.test_recursive_list_like) ... ok otest_recursive_list_subclass (test.test_pickle.PyPicklerTests.test_recursive_list_subclass) ... ok otest_recursive_list_subclass_and_inst (test.test_pickle.PyPicklerTests.test_recursive_list_subclass_and_inst) ... ok otest_recursive_multi (test.test_pickle.PyPicklerTests.test_recursive_multi) ... ok otest_recursive_nested_names (test.test_pickle.PyPicklerTests.test_recursive_nested_names) ... ok otest_recursive_nested_names2 (test.test_pickle.PyPicklerTests.test_recursive_nested_names2) ... ok otest_recursive_set (test.test_pickle.PyPicklerTests.test_recursive_set) ... ok otest_recursive_set_and_inst (test.test_pickle.PyPicklerTests.test_recursive_set_and_inst) ... ok otest_recursive_set_subclass_and_inst (test.test_pickle.PyPicklerTests.test_recursive_set_subclass_and_inst) ... ok otest_recursive_tuple_and_dict (test.test_pickle.PyPicklerTests.test_recursive_tuple_and_dict) ... ok otest_recursive_tuple_and_dict_key (test.test_pickle.PyPicklerTests.test_recursive_tuple_and_dict_key) ... ok otest_recursive_tuple_and_dict_like (test.test_pickle.PyPicklerTests.test_recursive_tuple_and_dict_like) ... ok otest_recursive_tuple_and_dict_like_key (test.test_pickle.PyPicklerTests.test_recursive_tuple_and_dict_like_key) ... ok otest_recursive_tuple_and_dict_subclass (test.test_pickle.PyPicklerTests.test_recursive_tuple_and_dict_subclass) ... ok otest_recursive_tuple_and_dict_subclass_key (test.test_pickle.PyPicklerTests.test_recursive_tuple_and_dict_subclass_key) ... ok otest_recursive_tuple_and_inst (test.test_pickle.PyPicklerTests.test_recursive_tuple_and_inst) ... ok otest_recursive_tuple_and_inst_state (test.test_pickle.PyPicklerTests.test_recursive_tuple_and_inst_state) ... ok otest_recursive_tuple_and_list (test.test_pickle.PyPicklerTests.test_recursive_tuple_and_list) ... ok otest_recursive_tuple_and_list_like (test.test_pickle.PyPicklerTests.test_recursive_tuple_and_list_like) ... ok otest_recursive_tuple_and_list_subclass (test.test_pickle.PyPicklerTests.test_recursive_tuple_and_list_subclass) ... ok otest_recursive_tuple_subclass_and_inst (test.test_pickle.PyPicklerTests.test_recursive_tuple_subclass_and_inst) ... ok otest_reduce (test.test_pickle.PyPicklerTests.test_reduce) ... ok otest_reduce_calls_base (test.test_pickle.PyPicklerTests.test_reduce_calls_base) ... ok otest_reduce_ex_called (test.test_pickle.PyPicklerTests.test_reduce_ex_called) ... ok otest_reduce_ex_calls_base (test.test_pickle.PyPicklerTests.test_reduce_ex_calls_base) ... ok otest_reduce_ex_overrides_reduce (test.test_pickle.PyPicklerTests.test_reduce_ex_overrides_reduce) ... ok otest_reduce_overrides_default_reduce_ex (test.test_pickle.PyPicklerTests.test_reduce_overrides_default_reduce_ex) ... ok otest_roundtrip_equality (test.test_pickle.PyPicklerTests.test_roundtrip_equality) ... ok otest_set_chunking (test.test_pickle.PyPicklerTests.test_set_chunking) ... ok otest_setitems_on_non_dicts (test.test_pickle.PyPicklerTests.test_setitems_on_non_dicts) ... ok otest_short_tuples (test.test_pickle.PyPicklerTests.test_short_tuples) ... ok otest_simple_newobj (test.test_pickle.PyPicklerTests.test_simple_newobj) ... ok otest_singleton_types (test.test_pickle.PyPicklerTests.test_singleton_types) ... ok otest_singletons (test.test_pickle.PyPicklerTests.test_singletons) ... ok otest_structseq (test.test_pickle.PyPicklerTests.test_structseq) ... ok otest_unicode (test.test_pickle.PyPicklerTests.test_unicode) ... ok otest_unicode_high_plane (test.test_pickle.PyPicklerTests.test_unicode_high_plane) ... ok otest_unicode_memoization (test.test_pickle.PyPicklerTests.test_unicode_memoization) ... ok otest_clear_pickler_memo (test.test_pickle.PyPicklerUnpicklerObjectTests.test_clear_pickler_memo) ... ok otest_multiple_unpicklings_minimal (test.test_pickle.PyPicklerUnpicklerObjectTests.test_multiple_unpicklings_minimal) ... ok otest_multiple_unpicklings_seekable (test.test_pickle.PyPicklerUnpicklerObjectTests.test_multiple_unpicklings_seekable) ... ok otest_multiple_unpicklings_unseekable (test.test_pickle.PyPicklerUnpicklerObjectTests.test_multiple_unpicklings_unseekable) ... Fatal Python error: Segmentation fault o oCurrent thread 0x00007ff448140740 [python] (most recent call first): o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/pickle.py", line 291 in read o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/pickle.py", line 1322 in load o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/pickletester.py", line 4829 in _check_multiple_unpicklings o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/pickletester.py", line 4838 in test_multiple_unpicklings_unseekable o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/unittest/case.py", line 613 in _callTestMethod o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/unittest/case.py", line 667 in run o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/unittest/case.py", line 723 in __call__ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/unittest/suite.py", line 122 in run o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/unittest/suite.py", line 84 in __call__ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/unittest/suite.py", line 122 in run o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/unittest/suite.py", line 84 in __call__ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/unittest/runner.py", line 257 in run o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/libregrtest/single.py", line 84 in _run_suite o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/libregrtest/single.py", line 42 in run_unittest o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/libregrtest/single.py", line 162 in test_func o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/libregrtest/single.py", line 118 in regrtest_runner o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/libregrtest/single.py", line 165 in _load_run_test o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/libregrtest/single.py", line 210 in _runtest_env_changed_exc o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/libregrtest/single.py", line 319 in _runtest o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/libregrtest/single.py", line 348 in run_single_test o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/libregrtest/worker.py", line 92 in worker_process o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/libregrtest/worker.py", line 127 in main o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/libregrtest/worker.py", line 131 in o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/runpy.py", line 88 in _run_code o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/runpy.py", line 198 in _run_module_as_main o oCurrent thread's C stack trace (most recent call first): o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at _Py_DumpStack+0x33 [0x55c0198d12fb] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x308691 [0x55c0198e4691] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x30890a [0x55c0198e490a] o Binary file "/lib/x86_64-linux-gnu/libc.so.6", at +0x3bfd0 [0x7ff44817efd0] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at _PyEval_EvalFrameDefault+0x640c [0x55c0198296b1] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x269fea [0x55c019845fea] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x26a188 [0x55c019846188] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x1187dc [0x55c0196f47dc] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x11b735 [0x55c0196f7735] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x11b89a [0x55c0196f789a] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x11a0b8 [0x55c0196f60b8] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x11a3a8 [0x55c0196f63a8] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at PyObject_Call+0x20 [0x55c0196f63e0] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at _PyEval_EvalFrameDefault+0x741c [0x55c01982a6c1] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x269fea [0x55c019845fea] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x26a188 [0x55c019846188] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x1187dc [0x55c0196f47dc] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x119e05 [0x55c0196f5e05] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x119fcf [0x55c0196f5fcf] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x1ac3f6 [0x55c0197883f6] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x1ac4d4 [0x55c0197884d4] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at _PyObject_MakeTpCall+0xce [0x55c0196f497e] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x118bb1 [0x55c0196f4bb1] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at PyObject_Vectorcall+0x23 [0x55c0196f4bff] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at _PyEval_EvalFrameDefault+0xb857 [0x55c01982eafc] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x269fea [0x55c019845fea] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x26a188 [0x55c019846188] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x1187dc [0x55c0196f47dc] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x11b735 [0x55c0196f7735] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x11b89a [0x55c0196f789a] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x11a0b8 [0x55c0196f60b8] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x11a3a8 [0x55c0196f63a8] o o oExtension modules: _testbuffer, _testinternalcapi (total: 2) o0:01:50 load avg: 2.88 [ 58/491/2] test_codecmaps_tw passed o0:01:50 load avg: 2.88 [ 59/491/2] test_fcntl passed o0:01:50 load avg: 2.88 [ 60/491/2] test_iterlen passed o0:01:50 load avg: 2.88 [ 61/491/2] test.test_asyncio.test_threads passed o0:01:51 load avg: 2.88 [ 62/491/2] test_smtplib passed o0:01:52 load avg: 2.88 [ 63/491/2] test_marshal passed o0:01:52 load avg: 2.88 [ 64/491/2] test_csv passed o0:01:53 load avg: 2.88 [ 65/491/2] test_pep646_syntax passed o0:01:53 load avg: 2.88 [ 66/491/2] test_module passed o0:01:53 load avg: 2.88 [ 67/491/2] test_codecencodings_cn passed o0:01:57 load avg: 2.81 [ 68/491/2] test_collections passed o0:01:59 load avg: 2.66 [ 69/491/2] test_remote_pdb passed o0:02:08 load avg: 2.61 [ 70/491/2] test_faulthandler passed o0:02:08 load avg: 2.61 [ 71/491/2] test_setcomps passed o0:02:08 load avg: 2.61 [ 72/491/2] test_codecencodings_kr passed o0:02:09 load avg: 2.64 [ 73/491/2] test_list passed o0:02:10 load avg: 2.64 [ 74/491/2] test_dict passed o0:02:10 load avg: 2.64 [ 75/491/2] test_compiler_assemble passed o0:02:11 load avg: 2.64 [ 76/491/2] test_strtod passed o0:02:12 load avg: 2.64 [ 77/491/2] test_utf8_mode passed o0:02:12 load avg: 2.64 [ 78/491/2] test_zipapp passed o0:02:12 load avg: 2.64 [ 79/491/2] test_positional_only_arg passed o0:02:12 load avg: 2.64 [ 80/491/2] test_type_cache passed o0:02:13 load avg: 2.64 [ 81/491/2] test_heapq passed o0:02:13 load avg: 2.64 [ 82/491/2] test_abstract_numbers passed o0:02:24 load avg: 2.62 [ 83/491/2] test_interpreters passed o0:02:29 load avg: 2.52 [ 84/491/2] test.test_asyncio.test_eager_task_factory passed o0:02:29 load avg: 2.52 [ 85/491/2] test_stat passed o0:02:30 load avg: 2.52 [ 86/491/2] test_xxlimited passed -- running (1): test_statistics (30.1 sec) o0:02:30 load avg: 2.52 [ 87/491/2] test_generated_cases passed -- running (1): test_statistics (30.4 sec) o0:02:32 load avg: 2.52 [ 88/491/2] test_sys_settrace passed -- running (1): test_statistics (33.0 sec) o0:02:33 load avg: 2.52 [ 89/491/2] test_print passed -- running (1): test_statistics (33.1 sec) o0:02:33 load avg: 2.52 [ 90/491/2] test_tuple passed -- running (1): test_statistics (33.8 sec) o0:02:38 load avg: 2.48 [ 91/491/2] test_datetime passed -- running (1): test_statistics (38.2 sec) o0:02:40 load avg: 2.44 [ 92/491/2] test.test_asyncio.test_free_threading passed -- running (1): test_statistics (40.3 sec) o0:02:40 load avg: 2.44 [ 93/491/2] test_secrets passed -- running (1): test_statistics (40.4 sec) o0:02:40 load avg: 2.44 [ 94/491/2] test_monitoring passed -- running (1): test_statistics (40.6 sec) o0:02:47 load avg: 2.49 [ 95/491/2] test_ftplib passed -- running (1): test_statistics (47.4 sec) o0:02:47 load avg: 2.49 [ 96/491/2] test_abc passed -- running (1): test_statistics (47.6 sec) o0:02:47 load avg: 2.49 [ 97/491/2] test_math_property passed -- running (1): test_statistics (47.7 sec) o0:02:51 load avg: 2.53 [ 98/491/2] test_statistics passed (51.7 sec) o0:02:53 load avg: 2.53 [ 99/491/2] test_http_cookies passed o0:02:54 load avg: 2.53 [100/491/2] test_colorsys passed o0:02:57 load avg: 2.48 [101/491/2] test_httplib passed o0:02:57 load avg: 2.48 [102/491/2] test_netrc passed o0:02:57 load avg: 2.48 [103/491/2] test_super passed o0:02:57 load avg: 2.48 [104/491/2] test_string_literals passed o0:02:58 load avg: 2.48 [105/491/2] test_httpservers passed o0:02:58 load avg: 2.48 [106/491/2] test_build_details passed o0:02:59 load avg: 2.48 [107/491/2] test_extcall passed o0:02:59 load avg: 2.48 [108/491/2] test_epoll passed o0:03:03 load avg: 2.53 [109/491/2] test_embed passed o0:03:14 load avg: 2.77 [110/491/2] test_capi passed o0:03:26 load avg: 2.81 [111/491/2] test_peg_generator passed o0:03:27 load avg: 2.81 [112/491/2] test_descr passed o0:03:27 load avg: 2.81 [113/491/2] test_utf8source passed o0:03:27 load avg: 2.81 [114/491/2] test_tomllib passed o0:03:29 load avg: 2.81 [115/491/2] test.test_inspect.test_inspect passed o0:03:44 load avg: 2.97 [116/491/2] test.test_asyncio.test_events passed -- running (1): test.test_multiprocessing_spawn.test_processes (41.1 sec) o0:03:45 load avg: 2.97 [117/491/2] test.test_future_stmt.test_future_flags passed -- running (1): test.test_multiprocessing_spawn.test_processes (41.6 sec) o0:03:48 load avg: 2.97 [118/491/2] test_time passed -- running (1): test.test_multiprocessing_spawn.test_processes (44.8 sec) o0:03:49 load avg: 2.97 [119/491/2] test_zlib passed -- running (1): test.test_multiprocessing_spawn.test_processes (45.4 sec) o0:03:49 load avg: 2.97 [120/491/2] test_script_helper passed -- running (1): test.test_multiprocessing_spawn.test_processes (45.7 sec) o0:03:50 load avg: 2.89 [121/491/2] test_deque passed -- running (1): test.test_multiprocessing_spawn.test_processes (47.2 sec) o0:03:54 load avg: 2.82 [122/491/2] test.test_multiprocessing_spawn.test_processes passed (51.0 sec) o0:04:09 load avg: 2.42 [123/491/2] test_imaplib passed o0:04:12 load avg: 2.42 [124/491/2] test_gc passed o0:04:12 load avg: 2.42 [125/491/2] test_configparser passed o0:04:13 load avg: 2.42 [126/491/2] test_dbm_gnu passed o0:04:13 load avg: 2.42 [127/491/2] test_linecache passed o0:04:14 load avg: 2.42 [128/491/2] test_ioctl passed o0:04:14 load avg: 2.42 [129/491/2] test_optimizer passed o0:04:14 load avg: 2.42 [130/491/2] test.test_gdb.test_misc skipped otest.test_gdb.test_misc skipped -- Couldn't find gdb program on the path: [Errno 2] No such file or directory: 'gdb' o0:04:15 load avg: 2.39 [131/491/2] test_urllib2 passed o0:04:16 load avg: 2.39 [132/491/2] test_zoneinfo passed o0:04:20 load avg: 2.35 [133/491/2] test_str passed o0:04:20 load avg: 2.35 [134/491/2] test_structseq passed o0:04:21 load avg: 2.35 [135/491/2] test.test_asyncio.test_windows_utils skipped otest.test_asyncio.test_windows_utils skipped -- Windows only o0:04:21 load avg: 2.35 [136/491/2] test_sched passed o0:04:22 load avg: 2.35 [137/491/2] test_urlparse passed o0:04:22 load avg: 2.35 [138/491/2] test.test_gdb.test_cfunction skipped otest.test_gdb.test_cfunction skipped -- Couldn't find gdb program on the path: [Errno 2] No such file or directory: 'gdb' o0:04:25 load avg: 2.33 [139/491/2] test_itertools passed -- running (1): test_signal (31.0 sec) o0:04:26 load avg: 2.33 [140/491/2] test_ipaddress passed -- running (1): test_signal (31.3 sec) o0:04:26 load avg: 2.33 [141/491/2] test_with passed -- running (1): test_signal (31.5 sec) o0:04:26 load avg: 2.33 [142/491/2] test_posixpath passed -- running (1): test_signal (31.8 sec) o0:04:45 load avg: 2.10 [143/491/2] test_threading passed -- running (1): test_signal (50.4 sec) o0:04:45 load avg: 2.10 [144/491/2] test_ttk skipped -- running (1): test_signal (50.6 sec) otest_ttk skipped -- No module named '_tkinter' o0:04:45 load avg: 2.10 [145/491/2] test_codeccallbacks passed -- running (1): test_signal (50.8 sec) o0:04:45 load avg: 2.10 [146/491/2] test_exception_variations passed -- running (1): test_signal (50.9 sec) o0:04:49 load avg: 2.10 [147/491/2] test_cmd_line passed -- running (1): test_signal (54.7 sec) o0:04:50 load avg: 2.09 [148/491/2] test_builtin passed -- running (1): test_signal (55.4 sec) o0:04:50 load avg: 2.09 [149/491/2] test_unicode_file passed -- running (1): test_signal (55.6 sec) o0:04:50 load avg: 2.09 [150/491/2] test_iter passed -- running (1): test_signal (55.8 sec) o0:04:54 load avg: 2.01 [151/491/2] test_codecmaps_kr passed -- running (1): test_signal (1 min) o0:04:55 load avg: 2.01 [152/491/2] test_http_cookiejar passed -- running (1): test_signal (1 min) o0:04:55 load avg: 2.01 [153/491/2] test_zstd skipped -- running (1): test_signal (1 min) otest_zstd skipped -- No module named '_zstd' o0:04:55 load avg: 2.01 [154/491/2] test_quopri passed -- running (1): test_signal (1 min) o0:04:57 load avg: 2.01 [155/491/2] test_signal passed (1 min 3 sec) o0:04:59 load avg: 2.01 [156/491/2] test_gzip passed o0:05:03 load avg: 2.09 [157/491/2] test_decimal passed o0:05:03 load avg: 2.09 [158/491/2] test_syntax passed o0:05:04 load avg: 2.09 [159/491/2] test_email passed o0:05:04 load avg: 2.16 [160/491/3] test_re failed (1 error) otest_atomic_group (test.test_re.DebugTests.test_atomic_group) ... ok otest_debug_flag (test.test_re.DebugTests.test_debug_flag) ... ok otest_possesive_repeat (test.test_re.DebugTests.test_possesive_repeat) ... ok otest_possesive_repeat_one (test.test_re.DebugTests.test_possesive_repeat_one) ... ok otest_re_benchmarks (test.test_re.ExternalTests.test_re_benchmarks) ore_tests benchmarks ... ok otest_re_tests (test.test_re.ExternalTests.test_re_tests) ore_tests test suite ... ok otest_case_helpers (test.test_re.ImplementationTest.test_case_helpers) ... ok otest_dealloc (test.test_re.ImplementationTest.test_dealloc) ... ok otest_deprecated_modules (test.test_re.ImplementationTest.test_deprecated_modules) ... ok otest_disallow_instantiation (test.test_re.ImplementationTest.test_disallow_instantiation) ... ok otest_immutable (test.test_re.ImplementationTest.test_immutable) ... ok otest_overlap_table (test.test_re.ImplementationTest.test_overlap_table) ... ok otest_repeat_minmax_overflow_maxrepeat (test.test_re.ImplementationTest.test_repeat_minmax_overflow_maxrepeat) ... ok otest_signedness (test.test_re.ImplementationTest.test_signedness) ... ok otest_sre_template_invalid_group_index (test.test_re.ImplementationTest.test_sre_template_invalid_group_index) ... ok otest_bytes (test.test_re.PatternReprTests.test_bytes) ... ok otest_flags_repr (test.test_re.PatternReprTests.test_flags_repr) ... ok otest_inline_flags (test.test_re.PatternReprTests.test_inline_flags) ... ok otest_locale (test.test_re.PatternReprTests.test_locale) ... ok otest_long_pattern (test.test_re.PatternReprTests.test_long_pattern) ... ok otest_multiple_flags (test.test_re.PatternReprTests.test_multiple_flags) ... ok otest_quotes (test.test_re.PatternReprTests.test_quotes) ... ok otest_single_flag (test.test_re.PatternReprTests.test_single_flag) ... ok otest_unicode_flag (test.test_re.PatternReprTests.test_unicode_flag) ... ok otest_unknown_flags (test.test_re.PatternReprTests.test_unknown_flags) ... ok otest_without_flags (test.test_re.PatternReprTests.test_without_flags) ... ok otest_ASSERT_NOT_mark_bug (test.test_re.ReTests.test_ASSERT_NOT_mark_bug) ... ok otest_MARK_PUSH_macro_bug (test.test_re.ReTests.test_MARK_PUSH_macro_bug) ... ok otest_MIN_REPEAT_ONE_mark_bug (test.test_re.ReTests.test_MIN_REPEAT_ONE_mark_bug) ... ok otest_MIN_UNTIL_mark_bug (test.test_re.ReTests.test_MIN_UNTIL_mark_bug) ... ok otest_REPEAT_ONE_mark_bug (test.test_re.ReTests.test_REPEAT_ONE_mark_bug) ... ok otest_anyall (test.test_re.ReTests.test_anyall) ... ok otest_ascii_and_unicode_flag (test.test_re.ReTests.test_ascii_and_unicode_flag) ... ok otest_atomic_grouping (test.test_re.ReTests.test_atomic_grouping) oTest Atomic Grouping ... ok otest_backref_group_name_in_exception (test.test_re.ReTests.test_backref_group_name_in_exception) ... ok otest_basic_re_sub (test.test_re.ReTests.test_basic_re_sub) ... ok otest_big_codesize (test.test_re.ReTests.test_big_codesize) ... ERROR otest_bigcharset (test.test_re.ReTests.test_bigcharset) ... ok otest_branching (test.test_re.ReTests.test_branching) oTest Branching ... ok otest_bug_113254 (test.test_re.ReTests.test_bug_113254) ... ok otest_bug_114660 (test.test_re.ReTests.test_bug_114660) ... ok otest_bug_117612 (test.test_re.ReTests.test_bug_117612) ... ok otest_bug_1661 (test.test_re.ReTests.test_bug_1661) ... ok otest_bug_16688 (test.test_re.ReTests.test_bug_16688) ... ok otest_bug_20998 (test.test_re.ReTests.test_bug_20998) ... ok otest_bug_2537 (test.test_re.ReTests.test_bug_2537) ... ok otest_bug_29444 (test.test_re.ReTests.test_bug_29444) ... ok otest_bug_34294 (test.test_re.ReTests.test_bug_34294) ... ok otest_bug_3629 (test.test_re.ReTests.test_bug_3629) ... ok otest_bug_40736 (test.test_re.ReTests.test_bug_40736) ... ok otest_bug_418626 (test.test_re.ReTests.test_bug_418626) ... ok otest_bug_448951 (test.test_re.ReTests.test_bug_448951) ... ok otest_bug_449000 (test.test_re.ReTests.test_bug_449000) ... ok otest_bug_449964 (test.test_re.ReTests.test_bug_449964) ... ok otest_bug_527371 (test.test_re.ReTests.test_bug_527371) ... ok otest_bug_581080 (test.test_re.ReTests.test_bug_581080) ... ok otest_bug_612074 (test.test_re.ReTests.test_bug_612074) ... ok otest_bug_6509 (test.test_re.ReTests.test_bug_6509) ... ok otest_bug_6561 (test.test_re.ReTests.test_bug_6561) ... ok otest_bug_725106 (test.test_re.ReTests.test_bug_725106) ... ok otest_bug_725149 (test.test_re.ReTests.test_bug_725149) ... ok otest_bug_764548 (test.test_re.ReTests.test_bug_764548) ... ok otest_bug_817234 (test.test_re.ReTests.test_bug_817234) ... ok otest_bug_926075 (test.test_re.ReTests.test_bug_926075) ... ok otest_bug_931848 (test.test_re.ReTests.test_bug_931848) ... ok otest_bug_gh100061 (test.test_re.ReTests.test_bug_gh100061) ... ok otest_bug_gh101955 (test.test_re.ReTests.test_bug_gh101955) ... ok otest_bug_gh91616 (test.test_re.ReTests.test_bug_gh91616) ... ok otest_bytes_str_mixing (test.test_re.ReTests.test_bytes_str_mixing) ... ok otest_category (test.test_re.ReTests.test_category) ... ok otest_character_set_any (test.test_re.ReTests.test_character_set_any) ... ok otest_character_set_errors (test.test_re.ReTests.test_character_set_errors) ... ok otest_character_set_none (test.test_re.ReTests.test_character_set_none) ... ok otest_comments (test.test_re.ReTests.test_comments) ... ok otest_compile (test.test_re.ReTests.test_compile) ... ok otest_constants (test.test_re.ReTests.test_constants) ... ok otest_copying (test.test_re.ReTests.test_copying) ... ok otest_dollar_matches_twice (test.test_re.ReTests.test_dollar_matches_twice) oTest that $ does not include \n ... ok otest_empty_array (test.test_re.ReTests.test_empty_array) ... ok otest_enum (test.test_re.ReTests.test_enum) ... ok otest_error (test.test_re.ReTests.test_error) ... ok otest_error_is_PatternError_alias (test.test_re.ReTests.test_error_is_PatternError_alias) ... ok otest_expand (test.test_re.ReTests.test_expand) ... ok otest_fail (test.test_re.ReTests.test_fail) ... ok otest_findall_atomic_grouping (test.test_re.ReTests.test_findall_atomic_grouping) ... ok otest_findall_possessive_quantifiers (test.test_re.ReTests.test_findall_possessive_quantifiers) ... ok otest_finditer (test.test_re.ReTests.test_finditer) ... ok otest_flags (test.test_re.ReTests.test_flags) ... ok otest_fullmatch_atomic_grouping (test.test_re.ReTests.test_fullmatch_atomic_grouping) ... ok otest_fullmatch_possessive_quantifiers (test.test_re.ReTests.test_fullmatch_possessive_quantifiers) ... ok otest_getattr (test.test_re.ReTests.test_getattr) ... ok otest_group (test.test_re.ReTests.test_group) ... ok otest_group_name_in_exception (test.test_re.ReTests.test_group_name_in_exception) ... ok otest_groupdict (test.test_re.ReTests.test_groupdict) ... ok otest_ignore_case (test.test_re.ReTests.test_ignore_case) ... ok otest_ignore_case_range (test.test_re.ReTests.test_ignore_case_range) ... ok otest_ignore_case_set (test.test_re.ReTests.test_ignore_case_set) ... ok otest_ignore_spaces (test.test_re.ReTests.test_ignore_spaces) ... ok otest_inline_flags (test.test_re.ReTests.test_inline_flags) ... ok otest_issue17998 (test.test_re.ReTests.test_issue17998) ... ok otest_keep_buffer (test.test_re.ReTests.test_keep_buffer) ... ok otest_keyword_parameters (test.test_re.ReTests.test_keyword_parameters) ... ok otest_large_search (test.test_re.ReTests.test_large_search) ... ok otest_large_subn (test.test_re.ReTests.test_large_subn) ... ok otest_locale_caching (test.test_re.ReTests.test_locale_caching) ... skipped 'test needs en_US.iso88591 locale' otest_locale_compiled (test.test_re.ReTests.test_locale_compiled) ... skipped 'test needs en_US.iso88591 locale' otest_locale_flag (test.test_re.ReTests.test_locale_flag) ... ok otest_look_behind_overflow (test.test_re.ReTests.test_look_behind_overflow) ... ok otest_lookahead (test.test_re.ReTests.test_lookahead) ... ok otest_lookbehind (test.test_re.ReTests.test_lookbehind) ... ok otest_match_getitem (test.test_re.ReTests.test_match_getitem) ... ok otest_match_repr (test.test_re.ReTests.test_match_repr) ... ok otest_memory_leaks (test.test_re.ReTests.test_memory_leaks) ... ok otest_misc_errors (test.test_re.ReTests.test_misc_errors) ... ok otest_misuse_flags (test.test_re.ReTests.test_misuse_flags) ... ok otest_multiple_repeat (test.test_re.ReTests.test_multiple_repeat) ... ok otest_named_unicode_escapes (test.test_re.ReTests.test_named_unicode_escapes) ... ok otest_not_literal (test.test_re.ReTests.test_not_literal) ... ok otest_nothing_to_repeat (test.test_re.ReTests.test_nothing_to_repeat) ... ok otest_other_escapes (test.test_re.ReTests.test_other_escapes) ... ok otest_pattern_compare (test.test_re.ReTests.test_pattern_compare) ... ok otest_pattern_compare_bytes (test.test_re.ReTests.test_pattern_compare_bytes) ... ok otest_pickling (test.test_re.ReTests.test_pickling) ... ok otest_possessive_quantifiers (test.test_re.ReTests.test_possessive_quantifiers) oTest Possessive Quantifiers ... ok otest_possible_set_operations (test.test_re.ReTests.test_possible_set_operations) ... ok otest_qualified_re_split (test.test_re.ReTests.test_qualified_re_split) ... ok otest_qualified_re_sub (test.test_re.ReTests.test_qualified_re_sub) ... ok otest_re_escape (test.test_re.ReTests.test_re_escape) ... ok otest_re_escape_bytes (test.test_re.ReTests.test_re_escape_bytes) ... ok otest_re_escape_non_ascii (test.test_re.ReTests.test_re_escape_non_ascii) ... ok otest_re_escape_non_ascii_bytes (test.test_re.ReTests.test_re_escape_non_ascii_bytes) ... ok otest_re_findall (test.test_re.ReTests.test_re_findall) ... ok otest_re_fullmatch (test.test_re.ReTests.test_re_fullmatch) ... ok otest_re_groupref (test.test_re.ReTests.test_re_groupref) ... ok otest_re_groupref_exists (test.test_re.ReTests.test_re_groupref_exists) ... ok otest_re_groupref_exists_errors (test.test_re.ReTests.test_re_groupref_exists_errors) ... ok otest_re_groupref_exists_validation_bug (test.test_re.ReTests.test_re_groupref_exists_validation_bug) ... ok otest_re_groupref_overflow (test.test_re.ReTests.test_re_groupref_overflow) ... ok otest_re_match (test.test_re.ReTests.test_re_match) ... ok otest_re_split (test.test_re.ReTests.test_re_split) ... ok otest_re_subn (test.test_re.ReTests.test_re_subn) ... ok otest_regression_gh94675 (test.test_re.ReTests.test_regression_gh94675) ... ok otest_repeat_minmax (test.test_re.ReTests.test_repeat_minmax) ... ok otest_repeat_minmax_overflow (test.test_re.ReTests.test_repeat_minmax_overflow) ... ok otest_scanner (test.test_re.ReTests.test_scanner) ... ok otest_scoped_flags (test.test_re.ReTests.test_scoped_flags) ... ok otest_search_anchor_at_beginning (test.test_re.ReTests.test_search_anchor_at_beginning) ... ok otest_search_coverage (test.test_re.ReTests.test_search_coverage) ... ok otest_search_dot_unicode (test.test_re.ReTests.test_search_dot_unicode) ... ok otest_search_star_plus (test.test_re.ReTests.test_search_star_plus) ... ok otest_special_escapes (test.test_re.ReTests.test_special_escapes) ... ok otest_sre_byte_class_literals (test.test_re.ReTests.test_sre_byte_class_literals) ... ok otest_sre_byte_literals (test.test_re.ReTests.test_sre_byte_literals) ... ok otest_sre_character_class_literals (test.test_re.ReTests.test_sre_character_class_literals) ... ok otest_sre_character_literals (test.test_re.ReTests.test_sre_character_literals) ... ok otest_stack_overflow (test.test_re.ReTests.test_stack_overflow) ... ok otest_sub_template_numeric_escape (test.test_re.ReTests.test_sub_template_numeric_escape) ... ok otest_symbolic_groups (test.test_re.ReTests.test_symbolic_groups) ... ok otest_symbolic_groups_errors (test.test_re.ReTests.test_symbolic_groups_errors) ... ok otest_symbolic_refs (test.test_re.ReTests.test_symbolic_refs) ... ok otest_symbolic_refs_errors (test.test_re.ReTests.test_symbolic_refs_errors) ... ok otest_unlimited_zero_width_repeat (test.test_re.ReTests.test_unlimited_zero_width_repeat) ... ok otest_weakref (test.test_re.ReTests.test_weakref) ... ok otest_word_boundaries (test.test_re.ReTests.test_word_boundaries) ... ok otest_zerowidth (test.test_re.ReTests.test_zerowidth) ... ok o o====================================================================== oERROR: test_big_codesize (test.test_re.ReTests.test_big_codesize) o---------------------------------------------------------------------- oTraceback (most recent call last): o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_re.py", line 1028, in test_big_codesize o r = re.compile('|'.join(('%d'%x for x in range(10000)))) o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/re/__init__.py", line 289, in compile o return _compile(pattern, flags) o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/re/__init__.py", line 350, in _compile o p = _compiler.compile(pattern, flags) o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/re/_compiler.py", line 762, in compile o p = _parser.parse(p, flags) o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/re/_parser.py", line 973, in parse o p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/re/_parser.py", line 460, in _parse_sub o itemsappend(_parse(source, state, verbose, nested + 1, o ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ o not nested and not items)) o ^^^^^^^^^^^^^^^^^^^^^^^^^ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/re/_parser.py", line 875, in _parse o raise AssertionError("unsupported special character %r" % (char,)) o ^^^^ oUnboundLocalError: cannot access local variable 'char' where it is not associated with a value o o---------------------------------------------------------------------- oRan 165 tests in 0.619s o oFAILED (errors=1, skipped=2) otest test_re failed o0:05:04 load avg: 2.16 [161/491/3] test_openpty passed o0:05:05 load avg: 2.16 [162/491/3] test_getopt passed o0:05:05 load avg: 2.16 [163/491/3] test_crossinterp passed o0:05:05 load avg: 2.16 [164/491/3] test_errno passed o0:05:05 load avg: 2.16 [165/491/3] test_htmlparser passed o0:05:32 load avg: 2.10 [166/491/3] test_xmlrpc passed o0:05:46 load avg: 2.08 [167/491/3] test.test_multiprocessing_fork.test_threads passed -- running (1): test_math (40.8 sec) o0:05:46 load avg: 2.08 [168/491/3] test_winapi skipped -- running (1): test_math (40.9 sec) otest_winapi skipped -- No module named '_winapi' o0:05:54 load avg: 2.14 [169/491/3] test_math passed (49.5 sec) o0:05:55 load avg: 2.14 [170/491/3] test_grp passed o0:06:00 load avg: 2.05 [171/491/3] test_wait4 passed o0:06:00 load avg: 2.05 [172/491/3] test_struct passed o0:06:01 load avg: 2.05 [173/491/3] test_winsound skipped otest_winsound skipped -- No module named 'winsound' o0:06:01 load avg: 2.05 [174/491/3] test_format passed o0:06:04 load avg: 2.05 [175/491/3] test_cmd_line_script passed o0:06:04 load avg: 2.04 [176/491/3] test.test_asyncio.test_server passed o0:06:06 load avg: 2.04 [177/491/3] test__interpchannels passed o0:06:06 load avg: 2.04 [178/491/3] test_platform passed o0:06:10 load avg: 2.12 [179/491/3] test_support passed o0:06:13 load avg: 2.12 [180/491/3] test_hashlib passed o0:06:17 load avg: 2.19 [181/491/3] test_largefile passed o0:06:24 load avg: 2.26 [182/491/3] test_buffer passed o0:06:24 load avg: 2.32 [183/491/3] test_optparse passed o0:06:25 load avg: 2.32 [184/491/3] test_genexps passed o0:06:25 load avg: 2.32 [185/491/3] test.test_gdb.test_pretty_print skipped otest.test_gdb.test_pretty_print skipped -- Couldn't find gdb program on the path: [Errno 2] No such file or directory: 'gdb' o0:06:29 load avg: 2.37 [186/491/3] test_compileall passed o0:06:59 load avg: 2.24 [187/491/3] test_io passed (34.4 sec) o0:06:59 load avg: 2.30 [188/491/3] test_keyword passed o0:06:59 load avg: 2.30 [189/491/3] test_minidom passed -- running (1): test_tokenize (30.0 sec) o0:07:00 load avg: 2.30 [190/491/3] test_stable_abi_ctypes passed -- running (1): test_tokenize (30.2 sec) o0:07:00 load avg: 2.30 [191/491/3] test_msvcrt skipped -- running (1): test_tokenize (30.4 sec) otest_msvcrt skipped -- windows related tests o0:07:00 load avg: 2.30 [192/491/3] test_pulldom passed -- running (1): test_tokenize (30.6 sec) o0:07:00 load avg: 2.30 [193/491/3] test_univnewlines passed -- running (1): test_tokenize (30.8 sec) o0:07:02 load avg: 2.30 [194/491/3] test_file_eintr passed -- running (1): test_tokenize (32.4 sec) o0:07:02 load avg: 2.30 [195/491/3] test_bigmem passed -- running (1): test_tokenize (32.6 sec) o0:07:02 load avg: 2.30 [196/491/3] test_complex passed -- running (1): test_tokenize (32.9 sec) o0:07:03 load avg: 2.30 [197/491/3] test_array passed -- running (1): test_tokenize (33.8 sec) o0:07:03 load avg: 2.30 [198/491/3] test_picklebuffer passed -- running (1): test_tokenize (34.0 sec) o0:07:04 load avg: 2.30 [199/491/3] test_tokenize passed (34.3 sec) o0:07:04 load avg: 2.30 [200/491/3] test_uuid passed o0:07:04 load avg: 2.30 [201/491/3] test_generators passed o0:07:04 load avg: 2.28 [202/491/3] test_sys_setprofile passed o0:07:11 load avg: 2.18 [203/491/3] test_smtpnet passed o0:07:12 load avg: 2.18 [204/491/3] test_userstring passed o0:07:16 load avg: 2.16 [205/491/3] test_poll passed o0:07:17 load avg: 2.16 [206/491/3] test_select passed o0:07:17 load avg: 2.16 [207/491/3] test_codeop passed o0:07:18 load avg: 2.16 [208/491/3] test_xml_dom_xmlbuilder passed o0:07:32 load avg: 2.13 [209/491/3] test.test_multiprocessing_forkserver.test_threads passed o0:07:32 load avg: 2.13 [210/491/3] test_dynamicclassattribute passed o0:07:32 load avg: 2.13 [211/491/3] test_bool passed o0:07:32 load avg: 2.13 [212/491/3] test_genericpath passed o0:07:34 load avg: 2.13 [213/491/3] test.test_asyncio.test_base_events passed o0:07:36 load avg: 2.20 [214/491/3] test_frame passed o0:07:36 load avg: 2.20 [215/491/3] test_curses passed o0:07:36 load avg: 2.20 [216/491/3] test_lltrace passed o0:07:38 load avg: 2.20 [217/491/3] test_docxmlrpc passed o0:07:43 load avg: 2.18 [218/491/3] test_cext passed (30.4 sec) o0:07:43 load avg: 2.18 [219/491/3] test_syslog passed o0:07:45 load avg: 2.25 [220/491/3] test_c_locale_coercion passed o0:07:45 load avg: 2.25 [221/491/3] test_sort passed o0:07:45 load avg: 2.25 [222/491/3] test_genericalias passed o0:07:47 load avg: 2.25 [223/491/3] test_mailbox passed o0:07:47 load avg: 2.25 [224/491/3] test_resource passed o0:07:51 load avg: 2.23 [225/491/3] test_pdb passed o0:08:05 load avg: 2.18 [226/491/3] test.test_concurrent_futures.test_as_completed passed o0:08:05 load avg: 2.18 [227/491/3] test_gettext passed o0:08:06 load avg: 2.18 [228/491/3] test_file passed o0:08:06 load avg: 2.18 [229/491/3] test_copy passed o0:08:06 load avg: 2.18 [230/491/3] test_userlist passed o0:08:10 load avg: 2.24 [231/491/3] test_trace passed o0:08:10 load avg: 2.24 [232/491/3] test_winreg skipped otest_winreg skipped -- No module named 'winreg' o0:08:11 load avg: 2.24 [233/491/4] test_sys worker non-zero exit code (Exit code -6 (SIGABRT)) otest_exc_info_no_exception (test.test_sys.ActiveExceptionTests.test_exc_info_no_exception) ... ok otest_exc_info_with_exception_instance (test.test_sys.ActiveExceptionTests.test_exc_info_with_exception_instance) ... ok otest_exc_info_with_exception_type (test.test_sys.ActiveExceptionTests.test_exc_info_with_exception_type) ... ok otest_sys_exception_no_exception (test.test_sys.ActiveExceptionTests.test_sys_exception_no_exception) ... ok otest_sys_exception_with_exception_instance (test.test_sys.ActiveExceptionTests.test_sys_exception_with_exception_instance) ... ok otest_sys_exception_with_exception_type (test.test_sys.ActiveExceptionTests.test_sys_exception_with_exception_type) ... ok otest_custom_displayhook (test.test_sys.DisplayHookTest.test_custom_displayhook) ... ok otest_gh130163 (test.test_sys.DisplayHookTest.test_gh130163) ... ok otest_lost_displayhook (test.test_sys.DisplayHookTest.test_lost_displayhook) ... ok otest_original_displayhook (test.test_sys.DisplayHookTest.test_original_displayhook) ... ok otest_excepthook (test.test_sys.ExceptHookTest.test_excepthook) ... ok otest_excepthook_bytes_filename (test.test_sys.ExceptHookTest.test_excepthook_bytes_filename) ... ok otest_original_excepthook (test.test_sys.ExceptHookTest.test_original_excepthook) ... ok otest_asyncgen_hooks (test.test_sys.SizeofTest.test_asyncgen_hooks) ... ok otest_changing_sys_stderr_and_removing_reference (test.test_sys.SizeofTest.test_changing_sys_stderr_and_removing_reference) ... ok otest_default (test.test_sys.SizeofTest.test_default) ... ok otest_errors (test.test_sys.SizeofTest.test_errors) ... ok otest_gc_head_size (test.test_sys.SizeofTest.test_gc_head_size) ... ok otest_objecttypes (test.test_sys.SizeofTest.test_objecttypes) ... ok otest_pythontypes (test.test_sys.SizeofTest.test_pythontypes) ... ok otest_slots (test.test_sys.SizeofTest.test_slots) ... ok otest_43581 (test.test_sys.SysModuleTest.test_43581) ... ok otest__enablelegacywindowsfsencoding (test.test_sys.SysModuleTest.test__enablelegacywindowsfsencoding) ... skipped 'needs sys._enablelegacywindowsfsencoding()' otest_attributes (test.test_sys.SysModuleTest.test_attributes) ... ok otest_c_locale_surrogateescape (test.test_sys.SysModuleTest.test_c_locale_surrogateescape) ... ok otest_call_tracing (test.test_sys.SysModuleTest.test_call_tracing) ... ok otest_clear_type_cache (test.test_sys.SysModuleTest.test_clear_type_cache) ... ok otest_current_exceptions (test.test_sys.SysModuleTest.test_current_exceptions) ... ok otest_current_frames (test.test_sys.SysModuleTest.test_current_frames) ... python: Python/generated_cases.c.h:8487: _PyEval_EvalFrameDefault: Assertion `oparg & 1' failed. oFatal Python error: Aborted o oThread 0x00007f6bb9be56c0 [Thread-2 (f123)] (most recent call first): o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py", line 362 in wait o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py", line 662 in wait o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_sys.py", line 517 in g456 o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_sys.py", line 512 in f123 o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py", line 1016 in run o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py", line 1074 in _bootstrap_inner o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py", line 1036 in _bootstrap o oCurrent thread 0x00007f6bbbb67740 [python] (most recent call first): o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/unittest/case.py", line 922 in assertEqual o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_sys.py", line 558 in test_current_frames o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/support/threading_helper.py", line 66 in decorator o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/unittest/case.py", line 613 in _callTestMethod o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/unittest/case.py", line 667 in run o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/unittest/case.py", line 723 in __call__ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/unittest/suite.py", line 122 in run o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/unittest/suite.py", line 84 in __call__ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/unittest/suite.py", line 122 in run o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/unittest/suite.py", line 84 in __call__ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/unittest/runner.py", line 257 in run o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/libregrtest/single.py", line 84 in _run_suite o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/libregrtest/single.py", line 42 in run_unittest o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/libregrtest/single.py", line 162 in test_func o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/libregrtest/single.py", line 118 in regrtest_runner o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/libregrtest/single.py", line 165 in _load_run_test o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/libregrtest/single.py", line 210 in _runtest_env_changed_exc o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/libregrtest/single.py", line 319 in _runtest o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/libregrtest/single.py", line 348 in run_single_test o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/libregrtest/worker.py", line 92 in worker_process o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/libregrtest/worker.py", line 127 in main o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/libregrtest/worker.py", line 131 in o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/runpy.py", line 88 in _run_code o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/runpy.py", line 198 in _run_module_as_main o oCurrent thread's C stack trace (most recent call first): o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at _Py_DumpStack+0x33 [0x562b44fb32fb] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x308691 [0x562b44fc6691] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x30890a [0x562b44fc690a] o Binary file "/lib/x86_64-linux-gnu/libc.so.6", at +0x3bfd0 [0x7f6bbbba5fd0] o Binary file "/lib/x86_64-linux-gnu/libc.so.6", at +0x8ad3c [0x7f6bbbbf4d3c] o Binary file "/lib/x86_64-linux-gnu/libc.so.6", at gsignal+0x12 [0x7f6bbbba5f32] o Binary file "/lib/x86_64-linux-gnu/libc.so.6", at abort+0xd3 [0x7f6bbbb90472] o Binary file "/lib/x86_64-linux-gnu/libc.so.6", at +0x26395 [0x7f6bbbb90395] o Binary file "/lib/x86_64-linux-gnu/libc.so.6", at +0x34e32 [0x7f6bbbb9ee32] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at _PyEval_EvalFrameDefault+0x17ad6 [0x562b44f1cd7b] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x269fea [0x562b44f27fea] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x26a188 [0x562b44f28188] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x1187dc [0x562b44dd67dc] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x11b735 [0x562b44dd9735] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x11b89a [0x562b44dd989a] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x11a0b8 [0x562b44dd80b8] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x11a3a8 [0x562b44dd83a8] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at PyObject_Call+0x20 [0x562b44dd83e0] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at _PyEval_EvalFrameDefault+0x741c [0x562b44f0c6c1] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x269fea [0x562b44f27fea] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x26a188 [0x562b44f28188] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x1187dc [0x562b44dd67dc] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x119e05 [0x562b44dd7e05] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x119fcf [0x562b44dd7fcf] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x1ac3f6 [0x562b44e6a3f6] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x1ac4d4 [0x562b44e6a4d4] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at _PyObject_MakeTpCall+0xce [0x562b44dd697e] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x118bb1 [0x562b44dd6bb1] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at PyObject_Vectorcall+0x23 [0x562b44dd6bff] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at _PyEval_EvalFrameDefault+0xb857 [0x562b44f10afc] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x269fea [0x562b44f27fea] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x26a188 [0x562b44f28188] o o oExtension modules: _testinternalcapi (total: 1) o0:08:11 load avg: 2.24 [234/491/4] test_shlex passed o0:08:14 load avg: 2.24 [235/491/4] test_exceptions passed o0:08:14 load avg: 2.24 [236/491/4] test_operator passed o0:08:14 load avg: 2.24 [237/491/4] test_typechecks passed o0:08:14 load avg: 2.30 [238/491/4] test_baseexception passed o0:08:15 load avg: 2.30 [239/491/4] test__colorize passed o0:08:15 load avg: 2.30 [240/491/4] test_cmd passed o0:08:16 load avg: 2.30 [241/491/4] test_pow passed o0:08:16 load avg: 2.30 [242/491/4] test_tkinter skipped otest_tkinter skipped -- No module named '_tkinter' o0:08:22 load avg: 2.28 [243/491/4] test_cppext passed (30.7 sec) o0:08:22 load avg: 2.28 [244/491/4] test_dictviews passed o0:08:22 load avg: 2.28 [245/491/4] test_tstring passed o0:08:24 load avg: 2.28 [246/491/4] test_isinstance passed o0:08:27 load avg: 2.26 [247/491/4] test_ssl passed o0:08:28 load avg: 2.26 [248/491/4] test_traceback passed o0:08:28 load avg: 2.26 [249/491/4] test_enumerate passed o0:08:30 load avg: 2.24 [250/491/4] test_import passed o0:08:31 load avg: 2.24 [251/491/4] test.test_asyncio.test_context passed o0:08:35 load avg: 2.22 [252/491/4] test_set passed o0:08:35 load avg: 2.22 [253/491/4] test_nturl2path passed o0:08:36 load avg: 2.22 [254/491/4] test_difflib passed o0:08:36 load avg: 2.22 [255/491/4] test_ordered_dict passed o0:08:42 load avg: 2.36 [256/491/4] test_codecmaps_jp passed o0:09:07 load avg: 2.64 [257/491/4] test.test_concurrent_futures.test_process_pool passed (38.8 sec) o0:09:08 load avg: 2.64 [258/491/4] test_pyclbr passed o0:09:08 load avg: 2.64 [259/491/4] test_pyexpat passed o0:09:09 load avg: 2.64 [260/491/4] test_typing passed o0:09:23 load avg: 4.87 [261/491/4] test.test_concurrent_futures.test_interpreter_pool passed -- running (1): test.test_multiprocessing_forkserver.test_processes (41.2 sec) o0:09:25 load avg: 4.64 [262/491/4] test_external_inspection passed -- running (1): test.test_multiprocessing_forkserver.test_processes (42.5 sec) o0:09:25 load avg: 4.64 [263/491/4] test_longexp passed -- running (1): test.test_multiprocessing_forkserver.test_processes (42.8 sec) o0:09:25 load avg: 4.64 [264/491/4] test_fractions passed -- running (1): test.test_multiprocessing_forkserver.test_processes (43.0 sec) o0:09:26 load avg: 4.64 [265/491/4] test_mmap passed -- running (1): test.test_multiprocessing_forkserver.test_processes (43.3 sec) o0:09:26 load avg: 4.64 [266/491/4] test.test_asyncio.test_protocols passed -- running (1): test.test_multiprocessing_forkserver.test_processes (43.6 sec) o0:09:29 load avg: 4.64 [267/491/4] test.test_multiprocessing_forkserver.test_processes passed (46.3 sec) o0:09:29 load avg: 4.64 [268/491/4] test_shelve passed o0:09:29 load avg: 4.64 [269/491/4] test_perf_profiler passed o0:09:42 load avg: 4.12 [270/491/4] test_os passed o0:09:43 load avg: 4.12 [271/491/4] test_tarfile passed o0:09:43 load avg: 4.12 [272/491/4] test_except_star passed o0:09:47 load avg: 3.87 [273/491/4] test.test_asyncio.test_sslproto passed o0:09:47 load avg: 3.87 [274/491/4] test_timeit passed o0:09:47 load avg: 3.87 [275/491/4] test_html passed o0:09:48 load avg: 3.87 [276/491/4] test.test_asyncio.test_selector_events passed o0:09:48 load avg: 3.87 [277/491/4] test_webbrowser passed o0:09:52 load avg: 3.96 [278/491/4] test_timeout passed o0:09:52 load avg: 3.96 [279/491/4] test_augassign passed o0:09:52 load avg: 3.96 [280/491/4] test_type_params passed o0:09:53 load avg: 3.96 [281/491/4] test_dbm_sqlite3 passed o0:09:53 load avg: 3.96 [282/491/4] test_android skipped otest_android skipped -- Android-specific o0:09:55 load avg: 3.80 [283/491/4] test.test_asyncio.test_sendfile passed o0:10:03 load avg: 3.58 [284/491/4] test.test_multiprocessing_forkserver.test_manager passed o0:10:03 load avg: 3.58 [285/491/4] test_ucn passed o0:10:05 load avg: 3.45 [286/491/4] test_functools passed o0:10:05 load avg: 3.45 [287/491/4] test_string passed o0:10:06 load avg: 3.45 [288/491/4] test.test_asyncio.test_timeouts passed o0:10:06 load avg: 3.45 [289/491/4] test.test_asyncio.test_transports passed o0:10:07 load avg: 3.45 [290/491/4] test_sax passed o0:10:07 load avg: 3.45 [291/491/4] test.test_asyncio.test_proactor_events passed o0:10:07 load avg: 3.45 [292/491/4] test_finalization passed o0:10:09 load avg: 3.45 [293/491/4] test_enum passed o0:10:09 load avg: 3.45 [294/491/4] test_apple skipped otest_apple skipped -- Apple-specific o0:10:14 load avg: 3.26 [295/491/4] test_codecmaps_cn passed o0:10:14 load avg: 3.26 [296/491/4] test_keywordonlyarg passed o0:10:14 load avg: 3.26 [297/491/4] test.test_asyncio.test_buffered_proto passed o0:10:15 load avg: 3.16 [298/491/4] test_bufio passed o0:10:15 load avg: 3.16 [299/491/4] test_cmath passed o0:10:15 load avg: 3.16 [300/491/4] test_types passed o0:10:21 load avg: 3.06 [301/491/4] test_logging passed o0:10:21 load avg: 3.06 [302/491/4] test_xml_etree_c passed o0:10:21 load avg: 3.06 [303/491/4] test_tcl skipped otest_tcl skipped -- No module named '_tkinter' o0:10:22 load avg: 3.06 [304/491/4] test_yield_from passed o0:10:34 load avg: 2.97 [305/491/4] test_multiprocessing_main_handling passed o0:10:39 load avg: 2.97 [306/491/4] test_compile passed o0:10:42 load avg: 2.98 [307/491/4] test_pyrepl passed o0:10:42 load avg: 2.98 [308/491/4] test_shutil passed o0:10:43 load avg: 2.98 [309/491/5] test_unparse failed (2 errors) otest_backslash_in_format_spec (test.test_unparse.CosmeticTestCase.test_backslash_in_format_spec) ... ok otest_class_bases_and_keywords (test.test_unparse.CosmeticTestCase.test_class_bases_and_keywords) ... ok otest_docstrings (test.test_unparse.CosmeticTestCase.test_docstrings) ... ok otest_docstrings_negative_cases (test.test_unparse.CosmeticTestCase.test_docstrings_negative_cases) ... ok otest_fstrings (test.test_unparse.CosmeticTestCase.test_fstrings) ... ok otest_lambda_parameters (test.test_unparse.CosmeticTestCase.test_lambda_parameters) ... ok otest_multiquote_joined_string (test.test_unparse.CosmeticTestCase.test_multiquote_joined_string) ... ok otest_quote_in_format_spec (test.test_unparse.CosmeticTestCase.test_quote_in_format_spec) ... ok otest_simple_expressions_parens (test.test_unparse.CosmeticTestCase.test_simple_expressions_parens) ... ok otest_slices (test.test_unparse.CosmeticTestCase.test_slices) ... ok otest_star_expr_assign_target (test.test_unparse.CosmeticTestCase.test_star_expr_assign_target) ... ok otest_star_expr_assign_target_multiple (test.test_unparse.CosmeticTestCase.test_star_expr_assign_target_multiple) ... ok otest_tstr (test.test_unparse.CosmeticTestCase.test_tstr) ... ok otest_type_params (test.test_unparse.CosmeticTestCase.test_type_params) ... ok otest_unary_op_factor (test.test_unparse.CosmeticTestCase.test_unary_op_factor) ... ok otest_files (test.test_unparse.DirectoryTestCase.test_files) ... o test_files (test.test_unparse.DirectoryTestCase.test_files) (code1='"""Test the datetime module."""\nimport bisect\nimport contextlib\nimport copy\nimport decimal\nimport io\nimport itertools\nimport os\nimport pickle\nimport random\nimport re\nimport struct\nimport sys\nimport textwrap\nimport unittest\nimport warnings\n\nfrom array import array\n\nfrom operator import lt, le, gt, ge, eq, ne, truediv, floordiv, mod\n\nfrom test import support\nfrom test.support import is_resource_enabled, ALWAYS_EQ, LARGEST, SMALLEST\nfrom test.support import os_helper, script_helper, warnings_helper\n\nimport datetime as datetime_module\nfrom datetime import MINYEAR, MAXYEAR\nfrom datetime import timedelta\nfrom datetime import tzinfo\nfrom datetime import time\nfrom datetime import timezone\nfrom datetime import UTC\nfrom datetime import date, datetime\nimport time as _time\n\ntry:\n import _testcapi\nexcept ImportError:\n _testcapi = None\ntry:\n import _interpreters\nexcept ModuleNotFoundError:\n _interpreters = None\n\n# Needed by test_datetime\nimport _strptime\ntry:\n import _pydatetime\nexcept ImportError:\n pass\n#\n\npickle_loads = {pickle.loads, pickle._loads}\n\npickle_choices = [(pickle, pickle, proto)\n for proto in range(pickle.HIGHEST_PROTOCOL + 1)]\nassert len(pickle_choices) == pickle.HIGHEST_PROTOCOL + 1\n\nEPOCH_NAIVE = datetime(1970, 1, 1, 0, 0) # For calculating transitions\n\n# An arbitrary collection of objects of non-datetime types, for testing\n# mixed-type comparisons.\nOTHERSTUFF = (10, 34.5, "abc", {}, [], ())\n\n# XXX Copied from test_float.\nINF = float("inf")\nNAN = float("nan")\n\n\n#############################################################################\n# module tests\n\nclass TestModule(unittest.TestCase):\n\n def test_constants(self):\n datetime = datetime_module\n self.assertEqual(datetime.MINYEAR, 1)\n self.assertEqual(datetime.MAXYEAR, 9999)\n\n def test_utc_alias(self):\n self.assertIs(UTC, timezone.utc)\n\n def test_all(self):\n """Test that __all__ only points to valid attributes."""\n all_attrs = dir(datetime_module)\n for attr in datetime_module.__all__:\n self.assertIn(attr, all_attrs)\n\n def test_name_cleanup(self):\n if \'_Pure\' in self.__class__.__name__:\n self.skipTest(\'Only run for Fast C implementation\')\n\n datetime = datetime_module\n names = set(name for name in dir(datetime)\n if not name.startswith(\'__\') and not name.endswith(\'__\'))\n allowed = set([\'MAXYEAR\', \'MINYEAR\', \'date\', \'d o if isinstance(dstoffset, int):\n dstoffset = timedelta(minutes=dstoffset)\n self.__offset = offset\n self.__name = name\n self.__dstoffset = dstoffset\n def __repr__(self):\n return self.__name.lower()\n def utcoffset(self, dt):\n return self.__offset\n def tzname(self, dt):\n return self.__name\n def dst(self, dt):\n return self.__dstoffset\n\nclass PicklableFixedOffset(FixedOffset):\n\n def __init__(self, offset=None, name=None, dstoffset=None):\n FixedOffset.__init__(self, offset, name, dstoffset)\n\nclass PicklableFixedOffsetWithSlots(PicklableFixedOffset):\n __slots__ = \'_FixedOffset__offset\', \'_FixedOffset__name\', \'spam\'\n\nclass _TZInfo(tzinfo):\n def utcoffset(self, datetime_module):\n return random.random()\n\nclass TestTZInfo(unittest.TestCase):\n\n def test_refcnt_crash_bug_22044(self):\n tz1 = _TZInfo()\n dt1 = datetime(2014, 7, 21, 11, 32, 3, 0, tz1)\n with self.assertRaises(TypeError):\n dt1.utcoffset()\n\n def test_non_abstractness(self):\n # In order to allow subclasses to get pickled, the C implementation\n # wasn\'t able to get away with having __init__ raise\n # NotImplementedError.\n useless = tzinfo()\n dt = datetime.max\n self.assertRaises(NotImplementedError, useless.tzname, dt)\n self.assertRaises(NotImplementedError, useless.utcoffset, dt)\n self.assertRaises(NotImplementedError, useless.dst, dt)\n\n def test_subclass_must_override(self):\n class NotEnough(tzinfo):\n def __init__(self, offset, name):\n self.__offset = offset\n self.__name = name\n self.assertIsSubclass(NotEnough, tzinfo)\n ne = NotEnough(3, "NotByALongShot")\n self.assertIsInstance(ne, tzinfo)\n\n dt = datetime.now()\n self.assertRaises(NotImplementedError, ne.tzname, dt)\n self.assertRaises(NotImplementedError, ne.utcoffset, dt)\n self.assertRaises(NotImplementedError, ne.dst, dt)\n\n def test_normal(self):\n fo = FixedOffset(3, "Three")\n self.assertIsInstance(fo, tzinfo)\n for dt in datetime.now(), None:\n self.assertEqual(fo.utcoffset(dt), timedelta(minutes=3))\n self.assertEqual(fo.tzname(dt), "Three")\n self.assertEqual(fo.dst(dt), timedelta(minutes=42))\n\n def test_pickling_base(self):\n # There\'s no point to pickling tzinfo objects on their own (they\n # carry no data), but they need to be picklable anyway else\n # concrete subclasses can\'t be pickled.\n orig = tzinfo.__new__(tzinfo)\n self.assertIs(type(orig), tzinfo)\n for pickler, unpickler, proto in pickle_choices:\n green = pickler.dumps(orig, proto)\n derived = unpickler.loads(green)\n self.assertIs(type(derived), tzinfo)\n\n def test_pickling_subclass(self):\n # Make sure we can pickle/unpickle an instance of a subclass.\n offset = timedelta(minutes=-300)\n for otype, args in [\n (PicklableFixedOffset, (offset, \'cookie\')),\n (PicklableFixedOffsetWithSlots, (offset, \'cookie\')),\n (timezone, (offset,)),\n (timezone, (offset, "EST"))]:\n orig = otype(*args)\n oname = orig.tzname(None)\n self.assertIsInstance(orig, tzinfo)\n self.assertIs(type(orig), otype)\n self.assertEqual(orig.utcoffset(None), offset)\n self.assertEqual(orig.tzname(None), oname)\n for pickler, unpickler, proto in pickle_choices:\n green = pickler.dumps(orig, proto)\n derived = unpickler.loads(green)\n self.assertIsInstance(derived, tzinfo)\n self.assertIs(type(derived), otype)\n self.assertEqual(derived.utcoffset(None), offset)\n self.assertEqual(derived.tzname(None), oname)\n self.assertNotHasAttr(derived, \'spam\')\n\n o oezone(ZERO, \'\\ud800\').tzname(None))\n\n # Sub-minute offsets:\n self.assertEqual(\'UTC+01:06:40\', timezone(timedelta(0, 4000)).tzname(None))\n self.assertEqual(\'UTC-01:06:40\',\n timezone(-timedelta(0, 4000)).tzname(None))\n self.assertEqual(\'UTC+01:06:40.000001\',\n timezone(timedelta(0, 4000, 1)).tzname(None))\n self.assertEqual(\'UTC-01:06:40.000001\',\n timezone(-timedelta(0, 4000, 1)).tzname(None))\n\n with self.assertRaises(TypeError): self.EST.tzname(\'\')\n with self.assertRaises(TypeError): self.EST.tzname(5)\n\n def test_fromutc(self):\n with self.assertRaises(ValueError):\n timezone.utc.fromutc(self.DT)\n with self.assertRaises(TypeError):\n timezone.utc.fromutc(\'not datetime\')\n for tz in [self.EST, self.ACDT, Eastern]:\n utctime = self.DT.replace(tzinfo=tz)\n local = tz.fromutc(utctime)\n self.assertEqual(local - utctime, tz.utcoffset(local))\n self.assertEqual(local,\n self.DT.replace(tzinfo=timezone.utc))\n\n def test_comparison(self):\n self.assertNotEqual(timezone(ZERO), timezone(HOUR))\n self.assertEqual(timezone(HOUR), timezone(HOUR))\n self.assertEqual(timezone(-5 * HOUR), timezone(-5 * HOUR, \'EST\'))\n with self.assertRaises(TypeError): timezone(ZERO) < timezone(ZERO)\n self.assertIn(timezone(ZERO), {timezone(ZERO)})\n self.assertTrue(timezone(ZERO) != None)\n self.assertFalse(timezone(ZERO) == None)\n\n tz = timezone(ZERO)\n self.assertTrue(tz == ALWAYS_EQ)\n self.assertFalse(tz != ALWAYS_EQ)\n self.assertTrue(tz < LARGEST)\n self.assertFalse(tz > LARGEST)\n self.assertTrue(tz <= LARGEST)\n self.assertFalse(tz >= LARGEST)\n self.assertFalse(tz < SMALLEST)\n self.assertTrue(tz > SMALLEST)\n self.assertFalse(tz <= SMALLEST)\n self.assertTrue(tz >= SMALLEST)\n\n def test_aware_datetime(self):\n # test that timezone instances can be used by datetime\n t = datetime(1, 1, 1)\n for tz in [timezone.min, timezone.max, timezone.utc]:\n self.assertEqual(tz.tzname(t),\n t.replace(tzinfo=tz).tzname())\n self.assertEqual(tz.utcoffset(t),\n t.replace(tzinfo=tz).utcoffset())\n self.assertEqual(tz.dst(t),\n t.replace(tzinfo=tz).dst())\n\n def test_pickle(self):\n for tz in self.ACDT, self.EST, timezone.min, timezone.max:\n for pickler, unpickler, proto in pickle_choices:\n tz_copy = unpickler.loads(pickler.dumps(tz, proto))\n self.assertEqual(tz_copy, tz)\n tz = timezone.utc\n for pickler, unpickler, proto in pickle_choices:\n tz_copy = unpickler.loads(pickler.dumps(tz, proto))\n self.assertIs(tz_copy, tz)\n\n def test_copy(self):\n for tz in self.ACDT, self.EST, timezone.min, timezone.max:\n tz_copy = copy.copy(tz)\n self.assertEqual(tz_copy, tz)\n tz = timezone.utc\n tz_copy = copy.copy(tz)\n self.assertIs(tz_copy, tz)\n\n def test_deepcopy(self):\n for tz in self.ACDT, self.EST, timezone.min, timezone.max:\n tz_copy = copy.deepcopy(tz)\n self.assertEqual(tz_copy, tz)\n tz = timezone.utc\n tz_copy = copy.deepcopy(tz)\n self.assertIs(tz_copy, tz)\n\n def test_offset_boundaries(self):\n # Test timedeltas close to the boundaries\n time_deltas = [\n timedelta(hours=23, minutes=59),\n timedelta(hours=23, minutes=59, seconds=59),\n timedelta(hours=23, minutes=59, seconds=59, microseconds=999999),\n ]\n time_deltas.extend([-delta for delta in time_deltas])\n\n for delta in time_deltas:\n with self.subTest(test_type=\'good\', delta=delta):\n o oCheck type of args to constructor\n ra(TypeError, lambda: td(weeks=\'1\'))\n ra(TypeError, lambda: td(days=\'1\'))\n ra(TypeError, lambda: td(hours=\'1\'))\n ra(TypeError, lambda: td(minutes=\'1\'))\n ra(TypeError, lambda: td(seconds=\'1\'))\n ra(TypeError, lambda: td(milliseconds=\'1\'))\n ra(TypeError, lambda: td(microseconds=\'1\'))\n\n def test_computations(self):\n eq = self.assertEqual\n td = timedelta\n\n a = td(7) # One week\n b = td(0, 60) # One minute\n c = td(0, 0, 1000) # One millisecond\n eq(a+b+c, td(7, 60, 1000))\n eq(a-b, td(6, 24*3600 - 60))\n eq(b.__rsub__(a), td(6, 24*3600 - 60))\n eq(-a, td(-7))\n eq(+a, td(7))\n eq(-b, td(-1, 24*3600 - 60))\n eq(-c, td(-1, 24*3600 - 1, 999000))\n eq(abs(a), a)\n eq(abs(-a), a)\n eq(td(6, 24*3600), a)\n eq(td(0, 0, 60*1000000), b)\n eq(a*10, td(70))\n eq(a*10, 10*a)\n eq(a*10, 10*a)\n eq(b*10, td(0, 600))\n eq(10*b, td(0, 600))\n eq(b*10, td(0, 600))\n eq(c*10, td(0, 0, 10000))\n eq(10*c, td(0, 0, 10000))\n eq(c*10, td(0, 0, 10000))\n eq(a*-1, -a)\n eq(b*-2, -b-b)\n eq(c*-2, -c+-c)\n eq(b*(60*24), (b*60)*24)\n eq(b*(60*24), (60*b)*24)\n eq(c*1000, td(0, 1))\n eq(1000*c, td(0, 1))\n eq(a//7, td(1))\n eq(b//10, td(0, 6))\n eq(c//1000, td(0, 0, 1))\n eq(a//10, td(0, 7*24*360))\n eq(a//3600000, td(0, 0, 7*24*1000))\n eq(a/0.5, td(14))\n eq(b/0.5, td(0, 120))\n eq(a/7, td(1))\n eq(b/10, td(0, 6))\n eq(c/1000, td(0, 0, 1))\n eq(a/10, td(0, 7*24*360))\n eq(a/3600000, td(0, 0, 7*24*1000))\n\n # Multiplication by float\n us = td(microseconds=1)\n eq((3*us) * 0.5, 2*us)\n eq((5*us) * 0.5, 2*us)\n eq(0.5 * (3*us), 2*us)\n eq(0.5 * (5*us), 2*us)\n eq((-3*us) * 0.5, -2*us)\n eq((-5*us) * 0.5, -2*us)\n\n # Issue #23521\n eq(td(seconds=1) * 0.123456, td(microseconds=123456))\n eq(td(seconds=1) * 0.6112295, td(microseconds=611229))\n\n # Division by int and float\n eq((3*us) / 2, 2*us)\n eq((5*us) / 2, 2*us)\n eq((-3*us) / 2.0, -2*us)\n eq((-5*us) / 2.0, -2*us)\n eq((3*us) / -2, -2*us)\n eq((5*us) / -2, -2*us)\n eq((3*us) / -2.0, -2*us)\n eq((5*us) / -2.0, -2*us)\n for i in range(-10, 10):\n eq((i*us/3)//us, round(i/3))\n for i in range(-10, 10):\n eq((i*us/-3)//us, round(i/-3))\n\n # Issue #23521\n eq(td(seconds=1) / (1 / 0.6112295), td(microseconds=611229))\n\n # Issue #11576\n eq(td(999999999, 86399, 999999) - td(999999999, 86399, 999998),\n td(0, 0, 1))\n eq(td(999999999, 1, 1) - td(999999999, 1, 0),\n td(0, 0, 1))\n\n def test_disallowed_computations(self):\n a = timedelta(42)\n\n # Add/sub ints or floats should be illegal\n for i in 1, 1.0:\n self.assertRaises(TypeError, lambda: a+i)\n self.assertRaises(TypeError, lambda: a-i)\n self.assertRaises(TypeError, lambda: i+a)\n self.assertRaises(TypeError, lambda: i-a)\n\n # Division of int by timedelta doesn\'t make sense.\n # Division by zero doesn\'t make sense.\n zero = 0\n self.assertRaises(TypeError, lambda: zero // a)\n self.assertRaises(ZeroDivisionError, lambda: a // zero)\n self.assertRaises(ZeroDivisionError, lambda: a / zero)\n self.assertRaises(ZeroDivisionError, lambda: a / 0.0)\n self.assertRaises(TypeError, lambda: a / \'\')\n\n @support.requires_IEEE_754\n def test_disallowed_special(self):\n a = timedelta(42)\n self.assertRaises(ValueError, a.__mul__, NAN)\n self.assertRaises(ValueError, a.__truediv__, NAN)\n\n def test_basic_attributes(self):\n days, seconds, us = 1, 7, 31\n o ours=23, minutes=12, seconds=34)),\n "-210 days, 23:12:34")\n\n eq(str(td(milliseconds=1)), "0:00:00.001000")\n eq(str(td(microseconds=3)), "0:00:00.000003")\n\n eq(str(td(days=999999999, hours=23, minutes=59, seconds=59,\n microseconds=999999)),\n "999999999 days, 23:59:59.999999")\n\n # test the Doc/library/datetime.rst recipe\n eq(f\'-({-td(hours=-1)!s})\', "-(1:00:00)")\n\n def test_repr(self):\n name = \'datetime.\' + self.theclass.__name__\n self.assertEqual(repr(self.theclass(1)),\n "%s(days=1)" % name)\n self.assertEqual(repr(self.theclass(10, 2)),\n "%s(days=10, seconds=2)" % name)\n self.assertEqual(repr(self.theclass(-10, 2, 400000)),\n "%s(days=-10, seconds=2, microseconds=400000)" % name)\n self.assertEqual(repr(self.theclass(seconds=60)),\n "%s(seconds=60)" % name)\n self.assertEqual(repr(self.theclass()),\n "%s(0)" % name)\n self.assertEqual(repr(self.theclass(microseconds=100)),\n "%s(microseconds=100)" % name)\n self.assertEqual(repr(self.theclass(days=1, microseconds=100)),\n "%s(days=1, microseconds=100)" % name)\n self.assertEqual(repr(self.theclass(seconds=1, microseconds=100)),\n "%s(seconds=1, microseconds=100)" % name)\n\n def test_repr_subclass(self):\n """Subclasses should have bare names in the repr (gh-107773)."""\n td = SubclassTimeDelta(days=1)\n self.assertEqual(repr(td), "SubclassTimeDelta(days=1)")\n td = SubclassTimeDelta(seconds=30)\n self.assertEqual(repr(td), "SubclassTimeDelta(seconds=30)")\n td = SubclassTimeDelta(weeks=2)\n self.assertEqual(repr(td), "SubclassTimeDelta(days=14)")\n\n def test_roundtrip(self):\n for td in (timedelta(days=999999999, hours=23, minutes=59,\n seconds=59, microseconds=999999),\n timedelta(days=-999999999),\n timedelta(days=-999999999, seconds=1),\n timedelta(days=1, seconds=2, microseconds=3)):\n\n # Verify td -> string -> td identity.\n s = repr(td)\n self.assertStartsWith(s, \'datetime.\')\n s = s[9:]\n td2 = eval(s)\n self.assertEqual(td, td2)\n\n # Verify identity via reconstructing from pieces.\n td2 = timedelta(td.days, td.seconds, td.microseconds)\n self.assertEqual(td, td2)\n\n def test_resolution_info(self):\n self.assertIsInstance(timedelta.min, timedelta)\n self.assertIsInstance(timedelta.max, timedelta)\n self.assertIsInstance(timedelta.resolution, timedelta)\n self.assertTrue(timedelta.max > timedelta.min)\n self.assertEqual(timedelta.min, timedelta(-999999999))\n self.assertEqual(timedelta.max, timedelta(999999999, 24*3600-1, 1e6-1))\n self.assertEqual(timedelta.resolution, timedelta(0, 0, 1))\n\n def test_overflow(self):\n tiny = timedelta.resolution\n\n td = timedelta.min + tiny\n td -= tiny # no problem\n self.assertRaises(OverflowError, td.__sub__, tiny)\n self.assertRaises(OverflowError, td.__add__, -tiny)\n\n td = timedelta.max - tiny\n td += tiny # no problem\n self.assertRaises(OverflowError, td.__add__, tiny)\n self.assertRaises(OverflowError, td.__sub__, -tiny)\n\n self.assertRaises(OverflowError, lambda: -timedelta.max)\n\n day = timedelta(1)\n self.assertRaises(OverflowError, day.__mul__, 10**9)\n self.assertRaises(OverflowError, day.__mul__, 1e9)\n self.assertRaises(OverflowError, day.__truediv__, 1e-20)\n self.assertRaises(OverflowError, day.__truediv__, 1e-10)\n self.assertRaises(OverflowError, day.__truediv__, 9e-10)\n\n @support.requires_IEEE_754\n def _test_overflow_special(self):\n o oSubclass(2018, 1, 6, 13)),\n (\'sub\', lambda d, t: d - t, DateTimeSubclass(2018, 1, 4, 12)),\n ]\n\n for name, func, expected in tests:\n with self.subTest(name):\n act = func(d1, td)\n self.assertEqual(act, expected)\n self.assertIsInstance(act, DateTimeSubclass)\n\n def test_division(self):\n t = timedelta(hours=1, minutes=24, seconds=19)\n second = timedelta(seconds=1)\n self.assertEqual(t / second, 5059.0)\n self.assertEqual(t // second, 5059)\n\n t = timedelta(minutes=2, seconds=30)\n minute = timedelta(minutes=1)\n self.assertEqual(t / minute, 2.5)\n self.assertEqual(t // minute, 2)\n\n zerotd = timedelta(0)\n self.assertRaises(ZeroDivisionError, truediv, t, zerotd)\n self.assertRaises(ZeroDivisionError, floordiv, t, zerotd)\n\n # self.assertRaises(TypeError, truediv, t, 2)\n # note: floor division of a timedelta by an integer *is*\n # currently permitted.\n\n def test_remainder(self):\n t = timedelta(minutes=2, seconds=30)\n minute = timedelta(minutes=1)\n r = t % minute\n self.assertEqual(r, timedelta(seconds=30))\n\n t = timedelta(minutes=-2, seconds=30)\n r = t % minute\n self.assertEqual(r, timedelta(seconds=30))\n\n zerotd = timedelta(0)\n self.assertRaises(ZeroDivisionError, mod, t, zerotd)\n\n self.assertRaises(TypeError, mod, t, 10)\n\n def test_divmod(self):\n t = timedelta(minutes=2, seconds=30)\n minute = timedelta(minutes=1)\n q, r = divmod(t, minute)\n self.assertEqual(q, 2)\n self.assertEqual(r, timedelta(seconds=30))\n\n t = timedelta(minutes=-2, seconds=30)\n q, r = divmod(t, minute)\n self.assertEqual(q, -2)\n self.assertEqual(r, timedelta(seconds=30))\n\n zerotd = timedelta(0)\n self.assertRaises(ZeroDivisionError, divmod, t, zerotd)\n\n self.assertRaises(TypeError, divmod, t, 10)\n\n def test_issue31293(self):\n # The interpreter shouldn\'t crash in case a timedelta is divided or\n # multiplied by a float with a bad as_integer_ratio() method.\n def get_bad_float(bad_ratio):\n class BadFloat(float):\n def as_integer_ratio(self):\n return bad_ratio\n return BadFloat()\n\n with self.assertRaises(TypeError):\n timedelta() / get_bad_float(1 << 1000)\n with self.assertRaises(TypeError):\n timedelta() * get_bad_float(1 << 1000)\n\n for bad_ratio in [(), (42, ), (1, 2, 3)]:\n with self.assertRaises(ValueError):\n timedelta() / get_bad_float(bad_ratio)\n with self.assertRaises(ValueError):\n timedelta() * get_bad_float(bad_ratio)\n\n def test_issue31752(self):\n # The interpreter shouldn\'t crash because divmod() returns negative\n # remainder.\n class BadInt(int):\n def __mul__(self, other):\n return Prod()\n def __rmul__(self, other):\n return Prod()\n def __floordiv__(self, other):\n return Prod()\n def __rfloordiv__(self, other):\n return Prod()\n\n class Prod:\n def __add__(self, other):\n return Sum()\n def __radd__(self, other):\n return Sum()\n\n class Sum(int):\n def __divmod__(self, other):\n return divmodresult\n\n for divmodresult in [None, (), (0, 1, 2), (0, -1)]:\n with self.subTest(divmodresult=divmodresult):\n # The following examples should not crash.\n try:\n timedelta(microseconds=BadInt(1))\n except TypeError:\n pass\n try:\n timedelta(hours=BadInt(1))\n except TypeError:\n pass\n o o\'%j\', \'2/03\', \'%j/%y\', d2),\n (\'%w\', \'6/04/03\', \'%w/%U/%y\', d1),\n # %u requires a single digit.\n (\'%W\', \'6/4/2003\', \'%u/%W/%Y\', d1),\n (\'%V\', \'6/4/2003\', \'%u/%V/%G\', d3),\n ]\n for reason, string, format, target in inputs:\n reason = \'test single digit \' + reason\n with self.subTest(reason=reason,\n string=string,\n format=format,\n target=target):\n newdate = strptime(string, format)\n self.assertEqual(newdate, target, msg=reason)\n\n @warnings_helper.ignore_warnings(category=DeprecationWarning)\n def test_strptime_leap_year(self):\n # GH-70647: warns if parsing a format with a day and no year.\n with self.assertRaises(ValueError):\n # The existing behavior that GH-70647 seeks to change.\n date.strptime(\'02-29\', \'%m-%d\')\n with self._assertNotWarns(DeprecationWarning):\n date.strptime(\'20-03-14\', \'%y-%m-%d\')\n date.strptime(\'02-29,2024\', \'%m-%d,%Y\')\n\nclass SubclassDate(date):\n sub_var = 1\n\nclass TestDate(HarmlessMixedComparison, unittest.TestCase):\n # Tests here should pass for both dates and datetimes, except for a\n # few tests that TestDateTime overrides.\n\n theclass = date\n\n def test_basic_attributes(self):\n dt = self.theclass(2002, 3, 1)\n self.assertEqual(dt.year, 2002)\n self.assertEqual(dt.month, 3)\n self.assertEqual(dt.day, 1)\n\n def test_roundtrip(self):\n for dt in (self.theclass(1, 2, 3),\n self.theclass.today()):\n # Verify dt -> string -> date identity.\n s = repr(dt)\n self.assertStartsWith(s, \'datetime.\')\n s = s[9:]\n dt2 = eval(s)\n self.assertEqual(dt, dt2)\n\n # Verify identity via reconstructing from pieces.\n dt2 = self.theclass(dt.year, dt.month, dt.day)\n self.assertEqual(dt, dt2)\n\n def test_repr_subclass(self):\n """Subclasses should have bare names in the repr (gh-107773)."""\n td = SubclassDate(1, 2, 3)\n self.assertEqual(repr(td), "SubclassDate(1, 2, 3)")\n td = SubclassDate(2014, 1, 1)\n self.assertEqual(repr(td), "SubclassDate(2014, 1, 1)")\n td = SubclassDate(2010, 10, day=10)\n self.assertEqual(repr(td), "SubclassDate(2010, 10, 10)")\n\n def test_ordinal_conversions(self):\n # Check some fixed values.\n for y, m, d, n in [(1, 1, 1, 1), # calendar origin\n (1, 12, 31, 365),\n (2, 1, 1, 366),\n # first example from "Calendrical Calculations"\n (1945, 11, 12, 710347)]:\n d = self.theclass(y, m, d)\n self.assertEqual(n, d.toordinal())\n fromord = self.theclass.fromordinal(n)\n self.assertEqual(d, fromord)\n if hasattr(fromord, "hour"):\n # if we\'re checking something fancier than a date, verify\n # the extra fields have been zeroed out\n self.assertEqual(fromord.hour, 0)\n self.assertEqual(fromord.minute, 0)\n self.assertEqual(fromord.second, 0)\n self.assertEqual(fromord.microsecond, 0)\n\n # Check first and last days of year spottily across the whole\n # range of years supported.\n for year in range(MINYEAR, MAXYEAR+1, 7):\n # Verify (year, 1, 1) -> ordinal -> y, m, d is identity.\n d = self.theclass(year, 1, 1)\n n = d.toordinal()\n d2 = self.theclass.fromordinal(n)\n self.assertEqual(d, d2)\n # Verify that moving back a day gets to the end of year-1.\n if year > 1:\n d = self.theclass.fromordinal(n-1)\n d2 = self.theclass(year-1, 12, 31)\n self. o o2002, 3, 1))\n self.assertEqual(-day + a, self.theclass(2002, 3, 1))\n self.assertEqual(a + week, self.theclass(2002, 3, 9))\n self.assertEqual(a - week, self.theclass(2002, 2, 23))\n self.assertEqual(a + 52*week, self.theclass(2003, 3, 1))\n self.assertEqual(a - 52*week, self.theclass(2001, 3, 3))\n self.assertEqual((a + week) - a, week)\n self.assertEqual((a + day) - a, day)\n self.assertEqual((a - week) - a, -week)\n self.assertEqual((a - day) - a, -day)\n self.assertEqual(a - (a + week), -week)\n self.assertEqual(a - (a + day), -day)\n self.assertEqual(a - (a - week), week)\n self.assertEqual(a - (a - day), day)\n self.assertEqual(c - (c - day), day)\n\n # Add/sub ints or floats should be illegal\n for i in 1, 1.0:\n self.assertRaises(TypeError, lambda: a+i)\n self.assertRaises(TypeError, lambda: a-i)\n self.assertRaises(TypeError, lambda: i+a)\n self.assertRaises(TypeError, lambda: i-a)\n\n # delta - date is senseless.\n self.assertRaises(TypeError, lambda: day - a)\n # mixing date and (delta or date) via * or // is senseless\n self.assertRaises(TypeError, lambda: day * a)\n self.assertRaises(TypeError, lambda: a * day)\n self.assertRaises(TypeError, lambda: day // a)\n self.assertRaises(TypeError, lambda: a // day)\n self.assertRaises(TypeError, lambda: a * a)\n self.assertRaises(TypeError, lambda: a // a)\n # date + date is senseless\n self.assertRaises(TypeError, lambda: a + a)\n\n def test_overflow(self):\n tiny = self.theclass.resolution\n\n for delta in [tiny, timedelta(1), timedelta(2)]:\n dt = self.theclass.min + delta\n dt -= delta # no problem\n self.assertRaises(OverflowError, dt.__sub__, delta)\n self.assertRaises(OverflowError, dt.__add__, -delta)\n\n dt = self.theclass.max - delta\n dt += delta # no problem\n self.assertRaises(OverflowError, dt.__add__, delta)\n self.assertRaises(OverflowError, dt.__sub__, -delta)\n\n def test_fromtimestamp(self):\n import time\n\n # Try an arbitrary fixed value.\n year, month, day = 1999, 9, 19\n ts = time.mktime((year, month, day, 0, 0, 0, 0, 0, -1))\n d = self.theclass.fromtimestamp(ts)\n self.assertEqual(d.year, year)\n self.assertEqual(d.month, month)\n self.assertEqual(d.day, day)\n\n def test_insane_fromtimestamp(self):\n # It\'s possible that some platform maps time_t to double,\n # and that this test will fail there. This test should\n # exempt such platforms (provided they return reasonable\n # results!).\n for insane in -1e200, 1e200:\n self.assertRaises(OverflowError, self.theclass.fromtimestamp,\n insane)\n\n def test_fromtimestamp_with_none_arg(self):\n # See gh-120268 for more details\n with self.assertRaises(TypeError):\n self.theclass.fromtimestamp(None)\n\n def test_today(self):\n import time\n\n # We claim that today() is like fromtimestamp(time.time()), so\n # prove it.\n for dummy in range(3):\n today = self.theclass.today()\n ts = time.time()\n todayagain = self.theclass.fromtimestamp(ts)\n if today == todayagain:\n break\n # There are several legit reasons that could fail:\n # 1. It recently became midnight, between the today() and the\n # time() calls.\n # 2. The platform time() has such fine resolution that we\'ll\n # never get the same value twice.\n # 3. The platform time() has poor resolution, and we just\n # happened to call today() right before a resolution quantum\n # boundary.\n # 4. The system clock got fiddled between calls.\n # I o o3 d:02 y:05")\n self.assertEqual(t.strftime(""), "") # SF bug #761337\n self.assertEqual(t.strftime(\'x\'*1000), \'x\'*1000) # SF bug #1556784\n\n self.assertRaises(TypeError, t.strftime) # needs an arg\n self.assertRaises(TypeError, t.strftime, "one", "two") # too many args\n self.assertRaises(TypeError, t.strftime, 42) # arg wrong type\n\n # test that unicode input is allowed (issue 2782)\n self.assertEqual(t.strftime("%m"), "03")\n\n # A naive object replaces %z, %:z and %Z w/ empty strings.\n self.assertEqual(t.strftime("\'%z\' \'%:z\' \'%Z\'"), "\'\' \'\' \'\'")\n\n #make sure that invalid format specifiers are handled correctly\n #self.assertRaises(ValueError, t.strftime, "%e")\n #self.assertRaises(ValueError, t.strftime, "%")\n #self.assertRaises(ValueError, t.strftime, "%#")\n\n #oh well, some systems just ignore those invalid ones.\n #at least, exercise them to make sure that no crashes\n #are generated\n for f in ["%e", "%", "%#"]:\n try:\n t.strftime(f)\n except ValueError:\n pass\n\n # bpo-34482: Check that surrogates don\'t cause a crash.\n try:\n t.strftime(\'%y\\ud800%m\')\n except UnicodeEncodeError:\n pass\n\n #check that this standard extension works\n t.strftime("%f")\n\n # bpo-41260: The parameter was named "fmt" in the pure python impl.\n t.strftime(format="%f")\n\n def test_strftime_trailing_percent(self):\n # bpo-35066: Make sure trailing \'%\' doesn\'t cause datetime\'s strftime to\n # complain. Different libcs have different handling of trailing\n # percents, so we simply check datetime\'s strftime acts the same as\n # time.strftime.\n t = self.theclass(2005, 3, 2)\n try:\n _time.strftime(\'%\')\n except ValueError:\n self.skipTest(\'time module does not support trailing %\')\n self.assertEqual(t.strftime(\'%\'), _time.strftime(\'%\', t.timetuple()))\n self.assertEqual(\n t.strftime("m:%m d:%d y:%y %"),\n _time.strftime("m:03 d:02 y:05 %", t.timetuple()),\n )\n\n def test_format(self):\n dt = self.theclass(2007, 9, 10)\n self.assertEqual(dt.__format__(\'\'), str(dt))\n\n with self.assertRaisesRegex(TypeError, \'must be str, not int\'):\n dt.__format__(123)\n\n # check that a derived class\'s __str__() gets called\n class A(self.theclass):\n def __str__(self):\n return \'A\'\n a = A(2007, 9, 10)\n self.assertEqual(a.__format__(\'\'), \'A\')\n\n # check that a derived class\'s strftime gets called\n class B(self.theclass):\n def strftime(self, format_spec):\n return \'B\'\n b = B(2007, 9, 10)\n self.assertEqual(b.__format__(\'\'), str(dt))\n\n for fmt in ["m:%m d:%d y:%y",\n "m:%m d:%d y:%y H:%H M:%M S:%S",\n "%z %:z %Z",\n ]:\n self.assertEqual(dt.__format__(fmt), dt.strftime(fmt))\n self.assertEqual(a.__format__(fmt), dt.strftime(fmt))\n self.assertEqual(b.__format__(fmt), \'B\')\n\n def test_resolution_info(self):\n # XXX: Should min and max respect subclassing?\n if issubclass(self.theclass, datetime):\n expected_class = datetime\n else:\n expected_class = date\n self.assertIsInstance(self.theclass.min, expected_class)\n self.assertIsInstance(self.theclass.max, expected_class)\n self.assertIsInstance(self.theclass.resolution, timedelta)\n self.assertTrue(self.theclass.max > self.theclass.min)\n\n def test_extreme_timedelta(self):\n big = self.theclass.max - self.theclass.min\n # 3652058 days, 23 hours, 59 minutes, 59 seconds, 999999 microseconds\n n = (big.days*24*3600 + big.seconds)*1000000 + big.microseconds o oelf.assertEqual(1 == our, False)\n self.assertEqual(our != 1, True)\n self.assertEqual(1 != our, True)\n\n # But the ordering is undefined\n self.assertRaises(TypeError, lambda: our < 1)\n self.assertRaises(TypeError, lambda: 1 < our)\n\n # Repeat those tests with a different class\n\n class SomeClass:\n pass\n\n their = SomeClass()\n self.assertEqual(our == their, False)\n self.assertEqual(their == our, False)\n self.assertEqual(our != their, True)\n self.assertEqual(their != our, True)\n self.assertRaises(TypeError, lambda: our < their)\n self.assertRaises(TypeError, lambda: their < our)\n\n def test_bool(self):\n # All dates are considered true.\n self.assertTrue(self.theclass.min)\n self.assertTrue(self.theclass.max)\n\n def test_strftime_y2k(self):\n # Test that years less than 1000 are 0-padded; note that the beginning\n # of an ISO 8601 year may fall in an ISO week of the year before, and\n # therefore needs an offset of -1 when formatting with \'%G\'.\n dataset = (\n (1, 0),\n (49, -1),\n (70, 0),\n (99, 0),\n (100, -1),\n (999, 0),\n (1000, 0),\n (1970, 0),\n )\n specifiers = \'YG\'\n if _time.strftime(\'%F\', (1900, 1, 1, 0, 0, 0, 0, 1, 0)) == \'1900-01-01\':\n specifiers += \'FC\'\n for year, g_offset in dataset:\n for specifier in specifiers:\n with self.subTest(year=year, specifier=specifier):\n d = self.theclass(year, 1, 1)\n if specifier == \'G\':\n year += g_offset\n if specifier == \'C\':\n expected = f"{year // 100:02d}"\n else:\n expected = f"{year:04d}"\n if specifier == \'F\':\n expected += f"-01-01"\n self.assertEqual(d.strftime(f"%{specifier}"), expected)\n\n def test_replace(self):\n cls = self.theclass\n args = [1, 2, 3]\n base = cls(*args)\n self.assertEqual(base.replace(), base)\n self.assertEqual(copy.replace(base), base)\n\n changes = (("year", 2),\n ("month", 3),\n ("day", 4))\n for i, (name, newval) in enumerate(changes):\n newargs = args[:]\n newargs[i] = newval\n expected = cls(*newargs)\n self.assertEqual(base.replace(**{name: newval}), expected)\n self.assertEqual(copy.replace(base, **{name: newval}), expected)\n\n # Out of bounds.\n base = cls(2000, 2, 29)\n self.assertRaises(ValueError, base.replace, year=2001)\n self.assertRaises(ValueError, copy.replace, base, year=2001)\n\n def test_subclass_replace(self):\n class DateSubclass(self.theclass):\n def __new__(cls, *args, **kwargs):\n result = self.theclass.__new__(cls, *args, **kwargs)\n result.extra = 7\n return result\n\n dt = DateSubclass(2012, 1, 1)\n\n test_cases = [\n (\'self.replace\', dt.replace(year=2013)),\n (\'copy.replace\', copy.replace(dt, year=2013)),\n ]\n\n for name, res in test_cases:\n with self.subTest(name):\n self.assertIs(type(res), DateSubclass)\n self.assertEqual(res.year, 2013)\n self.assertEqual(res.month, 1)\n self.assertEqual(res.extra, 7)\n\n def test_subclass_date(self):\n\n class C(self.theclass):\n theAnswer = 42\n\n def __new__(cls, *args, **kws):\n temp = kws.copy()\n extra = temp.pop(\'extra\')\n result = self.theclass.__new__(cls, *args, **temp)\n result.extra = extra\n return result\n\n def newmeth(self, star o o r"(year|month|day) must be in \\d+\\.\\.\\d+, not \\d+"\n )\n test_cases = [\n (2009, 13, 1), # Month out of range\n (2009, 0, 1), # Month out of range\n (10000, 12, 31), # Year out of range\n (0, 12, 31), # Year out of range\n ]\n for case in test_cases:\n with self.subTest(case):\n with self.assertRaisesRegex(ValueError, pattern):\n self.theclass(*case)\n\n # days out of range have their own error message, see issue 70647\n with self.assertRaises(ValueError) as msg:\n self.theclass(2009, 1, 32)\n self.assertIn(f"day 32 must be in range 1..31 for month 1 in year 2009", str(msg.exception))\n\n def test_fromisoformat(self):\n # Test that isoformat() is reversible\n base_dates = [\n (1, 1, 1),\n (1000, 2, 14),\n (1900, 1, 1),\n (2000, 2, 29),\n (2004, 11, 12),\n (2004, 4, 3),\n (2017, 5, 30)\n ]\n\n for dt_tuple in base_dates:\n dt = self.theclass(*dt_tuple)\n dt_str = dt.isoformat()\n with self.subTest(dt_str=dt_str):\n dt_rt = self.theclass.fromisoformat(dt.isoformat())\n\n self.assertEqual(dt, dt_rt)\n\n def test_fromisoformat_date_examples(self):\n examples = [\n (\'00010101\', self.theclass(1, 1, 1)),\n (\'20000101\', self.theclass(2000, 1, 1)),\n (\'20250102\', self.theclass(2025, 1, 2)),\n (\'99991231\', self.theclass(9999, 12, 31)),\n (\'0001-01-01\', self.theclass(1, 1, 1)),\n (\'2000-01-01\', self.theclass(2000, 1, 1)),\n (\'2025-01-02\', self.theclass(2025, 1, 2)),\n (\'9999-12-31\', self.theclass(9999, 12, 31)),\n (\'2025W01\', self.theclass(2024, 12, 30)),\n (\'2025-W01\', self.theclass(2024, 12, 30)),\n (\'2025W014\', self.theclass(2025, 1, 2)),\n (\'2025-W01-4\', self.theclass(2025, 1, 2)),\n (\'2026W01\', self.theclass(2025, 12, 29)),\n (\'2026-W01\', self.theclass(2025, 12, 29)),\n (\'2026W013\', self.theclass(2025, 12, 31)),\n (\'2026-W01-3\', self.theclass(2025, 12, 31)),\n (\'2022W52\', self.theclass(2022, 12, 26)),\n (\'2022-W52\', self.theclass(2022, 12, 26)),\n (\'2022W527\', self.theclass(2023, 1, 1)),\n (\'2022-W52-7\', self.theclass(2023, 1, 1)),\n (\'2015W534\', self.theclass(2015, 12, 31)), # Has week 53\n (\'2015-W53-4\', self.theclass(2015, 12, 31)), # Has week 53\n (\'2015-W53-5\', self.theclass(2016, 1, 1)),\n (\'2020W531\', self.theclass(2020, 12, 28)), # Leap year\n (\'2020-W53-1\', self.theclass(2020, 12, 28)), # Leap year\n (\'2020-W53-6\', self.theclass(2021, 1, 2)),\n ]\n\n for input_str, expected in examples:\n with self.subTest(input_str=input_str):\n actual = self.theclass.fromisoformat(input_str)\n self.assertEqual(actual, expected)\n\n def test_fromisoformat_subclass(self):\n class DateSubclass(self.theclass):\n pass\n\n dt = DateSubclass(2014, 12, 14)\n\n dt_rt = DateSubclass.fromisoformat(dt.isoformat())\n\n self.assertIsInstance(dt_rt, DateSubclass)\n\n def test_fromisoformat_fails(self):\n # Test that fromisoformat() fails on invalid values\n bad_strs = [\n \'\', # Empty string\n \'\\ud800\', # bpo-34454: Surrogate code point\n \'009-03-04\', # Not 10 characters\n \'123456789\', # Not a date\n \'200a-12-04\', # Invalid character in year\n \'2009-1a-04\', # Invalid character in month\n \'2009-12-0a\', # Invalid character in day\n \'2009-01-32\', # Invalid day\n o o self.assertEqual(dt.microsecond, 0)\n\n def test_basic_attributes_nonzero(self):\n # Make sure all attributes are non-zero so bugs in\n # bit-shifting access show up.\n dt = self.theclass(2002, 3, 1, 12, 59, 59, 8000)\n self.assertEqual(dt.year, 2002)\n self.assertEqual(dt.month, 3)\n self.assertEqual(dt.day, 1)\n self.assertEqual(dt.hour, 12)\n self.assertEqual(dt.minute, 59)\n self.assertEqual(dt.second, 59)\n self.assertEqual(dt.microsecond, 8000)\n\n def test_roundtrip(self):\n for dt in (self.theclass(1, 2, 3, 4, 5, 6, 7),\n self.theclass.now()):\n # Verify dt -> string -> datetime identity.\n s = repr(dt)\n self.assertStartsWith(s, \'datetime.\')\n s = s[9:]\n dt2 = eval(s)\n self.assertEqual(dt, dt2)\n\n # Verify identity via reconstructing from pieces.\n dt2 = self.theclass(dt.year, dt.month, dt.day,\n dt.hour, dt.minute, dt.second,\n dt.microsecond)\n self.assertEqual(dt, dt2)\n\n def test_isoformat(self):\n t = self.theclass(1, 2, 3, 4, 5, 1, 123)\n self.assertEqual(t.isoformat(), "0001-02-03T04:05:01.000123")\n self.assertEqual(t.isoformat(\'T\'), "0001-02-03T04:05:01.000123")\n self.assertEqual(t.isoformat(\' \'), "0001-02-03 04:05:01.000123")\n self.assertEqual(t.isoformat(\'\\x00\'), "0001-02-03\\x0004:05:01.000123")\n # bpo-34482: Check that surrogates are handled properly.\n self.assertEqual(t.isoformat(\'\\ud800\'),\n "0001-02-03\\ud80004:05:01.000123")\n self.assertEqual(t.isoformat(timespec=\'hours\'), "0001-02-03T04")\n self.assertEqual(t.isoformat(timespec=\'minutes\'), "0001-02-03T04:05")\n self.assertEqual(t.isoformat(timespec=\'seconds\'), "0001-02-03T04:05:01")\n self.assertEqual(t.isoformat(timespec=\'milliseconds\'), "0001-02-03T04:05:01.000")\n self.assertEqual(t.isoformat(timespec=\'microseconds\'), "0001-02-03T04:05:01.000123")\n self.assertEqual(t.isoformat(timespec=\'auto\'), "0001-02-03T04:05:01.000123")\n self.assertEqual(t.isoformat(sep=\' \', timespec=\'minutes\'), "0001-02-03 04:05")\n self.assertRaises(ValueError, t.isoformat, timespec=\'foo\')\n # bpo-34482: Check that surrogates are handled properly.\n self.assertRaises(ValueError, t.isoformat, timespec=\'\\ud800\')\n # str is ISO format with the separator forced to a blank.\n self.assertEqual(str(t), "0001-02-03 04:05:01.000123")\n\n t = self.theclass(1, 2, 3, 4, 5, 1, 999500, tzinfo=timezone.utc)\n self.assertEqual(t.isoformat(timespec=\'milliseconds\'), "0001-02-03T04:05:01.999+00:00")\n\n t = self.theclass(1, 2, 3, 4, 5, 1, 999500)\n self.assertEqual(t.isoformat(timespec=\'milliseconds\'), "0001-02-03T04:05:01.999")\n\n t = self.theclass(1, 2, 3, 4, 5, 1)\n self.assertEqual(t.isoformat(timespec=\'auto\'), "0001-02-03T04:05:01")\n self.assertEqual(t.isoformat(timespec=\'milliseconds\'), "0001-02-03T04:05:01.000")\n self.assertEqual(t.isoformat(timespec=\'microseconds\'), "0001-02-03T04:05:01.000000")\n\n t = self.theclass(2, 3, 2)\n self.assertEqual(t.isoformat(), "0002-03-02T00:00:00")\n self.assertEqual(t.isoformat(\'T\'), "0002-03-02T00:00:00")\n self.assertEqual(t.isoformat(\' \'), "0002-03-02 00:00:00")\n # str is ISO format with the separator forced to a blank.\n self.assertEqual(str(t), "0002-03-02 00:00:00")\n # ISO format with timezone\n tz = FixedOffset(timedelta(seconds=16), \'XXX\')\n t = self.theclass(2, 3, 2, tzinfo=tz)\n self.assertEqual(t.isoformat(), "0002-03-02T00:00:00+00:00:16")\n\n def test_isoformat_timezone(self):\n tzoffsets = [\n (\'05:00\', timedelta(hours=5)),\n (\'02:00\', timedelta(hours=2)),\n (\'06:27\', o o_constructor_arguments(self):\n # bad years\n self.theclass(MINYEAR, 1, 1) # no exception\n self.theclass(MAXYEAR, 1, 1) # no exception\n self.assertRaises(ValueError, self.theclass, MINYEAR-1, 1, 1)\n self.assertRaises(ValueError, self.theclass, MAXYEAR+1, 1, 1)\n # bad months\n self.theclass(2000, 1, 1) # no exception\n self.theclass(2000, 12, 1) # no exception\n self.assertRaises(ValueError, self.theclass, 2000, 0, 1)\n self.assertRaises(ValueError, self.theclass, 2000, 13, 1)\n # bad days\n self.theclass(2000, 2, 29) # no exception\n self.theclass(2004, 2, 29) # no exception\n self.theclass(2400, 2, 29) # no exception\n self.assertRaises(ValueError, self.theclass, 2000, 2, 30)\n self.assertRaises(ValueError, self.theclass, 2001, 2, 29)\n self.assertRaises(ValueError, self.theclass, 2100, 2, 29)\n self.assertRaises(ValueError, self.theclass, 1900, 2, 29)\n self.assertRaises(ValueError, self.theclass, 2000, 1, 0)\n self.assertRaises(ValueError, self.theclass, 2000, 1, 32)\n # bad hours\n self.theclass(2000, 1, 31, 0) # no exception\n self.theclass(2000, 1, 31, 23) # no exception\n self.assertRaises(ValueError, self.theclass, 2000, 1, 31, -1)\n self.assertRaises(ValueError, self.theclass, 2000, 1, 31, 24)\n # bad minutes\n self.theclass(2000, 1, 31, 23, 0) # no exception\n self.theclass(2000, 1, 31, 23, 59) # no exception\n self.assertRaises(ValueError, self.theclass, 2000, 1, 31, 23, -1)\n self.assertRaises(ValueError, self.theclass, 2000, 1, 31, 23, 60)\n # bad seconds\n self.theclass(2000, 1, 31, 23, 59, 0) # no exception\n self.theclass(2000, 1, 31, 23, 59, 59) # no exception\n self.assertRaises(ValueError, self.theclass, 2000, 1, 31, 23, 59, -1)\n self.assertRaises(ValueError, self.theclass, 2000, 1, 31, 23, 59, 60)\n # bad microseconds\n self.theclass(2000, 1, 31, 23, 59, 59, 0) # no exception\n self.theclass(2000, 1, 31, 23, 59, 59, 999999) # no exception\n self.assertRaises(ValueError, self.theclass,\n 2000, 1, 31, 23, 59, 59, -1)\n self.assertRaises(ValueError, self.theclass,\n 2000, 1, 31, 23, 59, 59,\n 1000000)\n # bad fold\n self.assertRaises(ValueError, self.theclass,\n 2000, 1, 31, fold=-1)\n self.assertRaises(ValueError, self.theclass,\n 2000, 1, 31, fold=2)\n # Positional fold:\n self.assertRaises(TypeError, self.theclass,\n 2000, 1, 31, 23, 59, 59, 0, None, 1)\n\n def test_hash_equality(self):\n d = self.theclass(2000, 12, 31, 23, 30, 17)\n e = self.theclass(2000, 12, 31, 23, 30, 17)\n self.assertEqual(d, e)\n self.assertEqual(hash(d), hash(e))\n\n dic = {d: 1}\n dic[e] = 2\n self.assertEqual(len(dic), 1)\n self.assertEqual(dic[d], 2)\n self.assertEqual(dic[e], 2)\n\n d = self.theclass(2001, 1, 1, 0, 5, 17)\n e = self.theclass(2001, 1, 1, 0, 5, 17)\n self.assertEqual(d, e)\n self.assertEqual(hash(d), hash(e))\n\n dic = {d: 1}\n dic[e] = 2\n self.assertEqual(len(dic), 1)\n self.assertEqual(dic[d], 2)\n self.assertEqual(dic[e], 2)\n\n def test_computations(self):\n a = self.theclass(2002, 1, 31)\n b = self.theclass(1956, 1, 31)\n diff = a-b\n self.assertEqual(diff.days, 46*365 + len(range(1956, 2002, 4)))\n self.assertEqual(diff.seconds, 0)\n self.assertEqual(diff.microseconds, 0)\n a = self.theclass(2002, 3, 2, 17, 6)\n millisec = timedelta(0, 0, 1000)\n hour = timedelta(0, 3600)\n day = timedelta(1)\n week = timedelta(7)\n self.assertEqual(a + hour, self.theclass(2002, 3, 2, 18, 6))\n se o oed)\n self.assertTrue(isinstance(derived, SubclassDatetime))\n\n def test_compat_unpickle(self):\n tests = [\n b\'cdatetime\\ndatetime\\n(\'\n b"S\'\\\\x07\\\\xdf\\\\x0b\\\\x1b\\\\x14;\\\\x01\\\\x00\\\\x10\\\\x00\'\\ntR.",\n\n b\'cdatetime\\ndatetime\\n(\'\n b\'U\\n\\x07\\xdf\\x0b\\x1b\\x14;\\x01\\x00\\x10\\x00tR.\',\n\n b\'\\x80\\x02cdatetime\\ndatetime\\n\'\n b\'U\\n\\x07\\xdf\\x0b\\x1b\\x14;\\x01\\x00\\x10\\x00\\x85R.\',\n ]\n args = 2015, 11, 27, 20, 59, 1, 64**2\n expected = self.theclass(*args)\n for data in tests:\n for loads in pickle_loads:\n derived = loads(data, encoding=\'latin1\')\n self.assertEqual(derived, expected)\n\n def test_more_compare(self):\n # The test_compare() inherited from TestDate covers the error cases.\n # We just want to test lexicographic ordering on the members datetime\n # has that date lacks.\n args = [2000, 11, 29, 20, 58, 16, 999998]\n t1 = self.theclass(*args)\n t2 = self.theclass(*args)\n self.assertEqual(t1, t2)\n self.assertTrue(t1 <= t2)\n self.assertTrue(t1 >= t2)\n self.assertFalse(t1 != t2)\n self.assertFalse(t1 < t2)\n self.assertFalse(t1 > t2)\n\n for i in range(len(args)):\n newargs = args[:]\n newargs[i] = args[i] + 1\n t2 = self.theclass(*newargs) # this is larger than t1\n self.assertTrue(t1 < t2)\n self.assertTrue(t2 > t1)\n self.assertTrue(t1 <= t2)\n self.assertTrue(t2 >= t1)\n self.assertTrue(t1 != t2)\n self.assertTrue(t2 != t1)\n self.assertFalse(t1 == t2)\n self.assertFalse(t2 == t1)\n self.assertFalse(t1 > t2)\n self.assertFalse(t2 < t1)\n self.assertFalse(t1 >= t2)\n self.assertFalse(t2 <= t1)\n\n\n # A helper for timestamp constructor tests.\n def verify_field_equality(self, expected, got):\n self.assertEqual(expected.tm_year, got.year)\n self.assertEqual(expected.tm_mon, got.month)\n self.assertEqual(expected.tm_mday, got.day)\n self.assertEqual(expected.tm_hour, got.hour)\n self.assertEqual(expected.tm_min, got.minute)\n self.assertEqual(expected.tm_sec, got.second)\n\n def test_fromtimestamp(self):\n import time\n\n ts = time.time()\n expected = time.localtime(ts)\n got = self.theclass.fromtimestamp(ts)\n self.verify_field_equality(expected, got)\n\n def test_fromtimestamp_keyword_arg(self):\n import time\n\n # gh-85432: The parameter was named "t" in the pure-Python impl.\n self.theclass.fromtimestamp(timestamp=time.time())\n\n def test_utcfromtimestamp(self):\n import time\n\n ts = time.time()\n expected = time.gmtime(ts)\n with self.assertWarns(DeprecationWarning):\n got = self.theclass.utcfromtimestamp(ts)\n self.verify_field_equality(expected, got)\n\n # Run with US-style DST rules: DST begins 2 a.m. on second Sunday in\n # March (M3.2.0) and ends 2 a.m. on first Sunday in November (M11.1.0).\n @support.run_with_tz(\'EST+05EDT,M3.2.0,M11.1.0\')\n def test_timestamp_naive(self):\n t = self.theclass(1970, 1, 1)\n self.assertEqual(t.timestamp(), 18000.0)\n t = self.theclass(1970, 1, 1, 1, 2, 3, 4)\n self.assertEqual(t.timestamp(),\n 18000.0 + 3600 + 2*60 + 3 + 4*1e-6)\n # Missing hour\n t0 = self.theclass(2012, 3, 11, 2, 30)\n t1 = t0.replace(fold=1)\n self.assertEqual(self.theclass.fromtimestamp(t1.timestamp()),\n t0 - timedelta(hours=1))\n self.assertEqual(self.theclass.fromtimestamp(t0.timestamp()),\n t1 + timedelta(hours=1))\n # Ambiguous hour defaults to DST\n t = self.theclass(2012, 11, 4, 1, 30)\n self.assertEqual(sel o o max_ts = ((self.theclass.max - timedelta(hours=23)).timestamp() +\n timedelta(hours=22, minutes=59, seconds=59).total_seconds())\n\n for (test_name, ts, expected) in [\n ("minimum", min_ts, min_dt),\n ("maximum", max_ts, max_dt),\n ]:\n with self.subTest(test_name, ts=ts, expected=expected):\n actual = self.theclass.fromtimestamp(ts)\n\n self.assertEqual(actual, expected)\n\n # Test error conditions\n test_cases = [\n ("Too small by a little", min_ts - timedelta(days=1, hours=12).total_seconds()),\n ("Too small by a lot", min_ts - timedelta(days=400).total_seconds()),\n ("Too big by a little", max_ts + timedelta(days=1).total_seconds()),\n ("Too big by a lot", max_ts + timedelta(days=400).total_seconds()),\n ]\n\n for test_name, ts in test_cases:\n with self.subTest(test_name, ts=ts):\n with self.assertRaises((ValueError, OverflowError)):\n # converting a Python int to C time_t can raise a\n # OverflowError, especially on 32-bit platforms.\n self.theclass.fromtimestamp(ts)\n\n def test_utcfromtimestamp_limits(self):\n with self.assertWarns(DeprecationWarning):\n try:\n self.theclass.utcfromtimestamp(-2**32 - 1)\n except (OSError, OverflowError):\n self.skipTest("Test not valid on this platform")\n\n min_dt = self.theclass.min.replace(tzinfo=timezone.utc)\n min_ts = min_dt.timestamp()\n\n max_dt = self.theclass.max.replace(microsecond=0, tzinfo=timezone.utc)\n max_ts = max_dt.timestamp()\n\n for (test_name, ts, expected) in [\n ("minimum", min_ts, min_dt.replace(tzinfo=None)),\n ("maximum", max_ts, max_dt.replace(tzinfo=None)),\n ]:\n with self.subTest(test_name, ts=ts, expected=expected):\n with self.assertWarns(DeprecationWarning):\n try:\n actual = self.theclass.utcfromtimestamp(ts)\n except (OSError, OverflowError) as exc:\n self.skipTest(str(exc))\n\n self.assertEqual(actual, expected)\n\n # Test error conditions\n test_cases = [\n ("Too small by a little", min_ts - 1),\n ("Too small by a lot", min_ts - timedelta(days=400).total_seconds()),\n ("Too big by a little", max_ts + 1),\n ("Too big by a lot", max_ts + timedelta(days=400).total_seconds()),\n ]\n\n for test_name, ts in test_cases:\n with self.subTest(test_name, ts=ts):\n with self.assertRaises((ValueError, OverflowError)):\n with self.assertWarns(DeprecationWarning):\n # converting a Python int to C time_t can raise a\n # OverflowError, especially on 32-bit platforms.\n self.theclass.utcfromtimestamp(ts)\n\n def test_insane_fromtimestamp(self):\n # It\'s possible that some platform maps time_t to double,\n # and that this test will fail there. This test should\n # exempt such platforms (provided they return reasonable\n # results!).\n for insane in -1e200, 1e200:\n self.assertRaises(OverflowError, self.theclass.fromtimestamp,\n insane)\n\n def test_insane_utcfromtimestamp(self):\n # It\'s possible that some platform maps time_t to double,\n # and that this test will fail there. This test should\n # exempt such platforms (provided they return reasonable\n # results!).\n for insane in -1e200, 1e200:\n with self.assertWarns(DeprecationWarning):\n self.assertRaises(OverflowError, self.theclass.utcfromtimestamp,\n insane)\n\n @unittest.skipIf(sys.platform == "win32", "Windows doesn\'t accept neg o or): strptime("z", "%z")\n\n def test_strptime_single_digit(self):\n # bpo-34903: Check that single digit dates and times are allowed.\n\n strptime = self.theclass.strptime\n\n with self.assertRaises(ValueError):\n # %y does require two digits.\n newdate = strptime(\'01/02/3 04:05:06\', \'%d/%m/%y %H:%M:%S\')\n dt1 = self.theclass(2003, 2, 1, 4, 5, 6)\n dt2 = self.theclass(2003, 1, 2, 4, 5, 6)\n dt3 = self.theclass(2003, 2, 1, 0, 0, 0)\n dt4 = self.theclass(2003, 1, 25, 0, 0, 0)\n inputs = [\n (\'%d\', \'1/02/03 4:5:6\', \'%d/%m/%y %H:%M:%S\', dt1),\n (\'%m\', \'01/2/03 4:5:6\', \'%d/%m/%y %H:%M:%S\', dt1),\n (\'%H\', \'01/02/03 4:05:06\', \'%d/%m/%y %H:%M:%S\', dt1),\n (\'%M\', \'01/02/03 04:5:06\', \'%d/%m/%y %H:%M:%S\', dt1),\n (\'%S\', \'01/02/03 04:05:6\', \'%d/%m/%y %H:%M:%S\', dt1),\n (\'%j\', \'2/03 04am:05:06\', \'%j/%y %I%p:%M:%S\',dt2),\n (\'%I\', \'02/03 4am:05:06\', \'%j/%y %I%p:%M:%S\',dt2),\n (\'%w\', \'6/04/03\', \'%w/%U/%y\', dt3),\n # %u requires a single digit.\n (\'%W\', \'6/4/2003\', \'%u/%W/%Y\', dt3),\n (\'%V\', \'6/4/2003\', \'%u/%V/%G\', dt4),\n ]\n for reason, string, format, target in inputs:\n reason = \'test single digit \' + reason\n with self.subTest(reason=reason,\n string=string,\n format=format,\n target=target):\n newdate = strptime(string, format)\n self.assertEqual(newdate, target, msg=reason)\n\n @warnings_helper.ignore_warnings(category=DeprecationWarning)\n def test_strptime_leap_year(self):\n # GH-70647: warns if parsing a format with a day and no year.\n with self.assertRaises(ValueError):\n # The existing behavior that GH-70647 seeks to change.\n self.theclass.strptime(\'02-29\', \'%m-%d\')\n with self.assertWarnsRegex(DeprecationWarning,\n r\'.*day of month without a year.*\'):\n self.theclass.strptime(\'03-14.159265\', \'%m-%d.%f\')\n with self._assertNotWarns(DeprecationWarning):\n self.theclass.strptime(\'20-03-14.159265\', \'%y-%m-%d.%f\')\n with self._assertNotWarns(DeprecationWarning):\n self.theclass.strptime(\'02-29,2024\', \'%m-%d,%Y\')\n\n def test_strptime_z_empty(self):\n for directive in (\'z\',):\n string = \'2025-04-25 11:42:47\'\n format = f\'%Y-%m-%d %H:%M:%S%{directive}\'\n target = self.theclass(2025, 4, 25, 11, 42, 47)\n with self.subTest(string=string,\n format=format,\n target=target):\n result = self.theclass.strptime(string, format)\n self.assertEqual(result, target)\n\n def test_more_timetuple(self):\n # This tests fields beyond those tested by the TestDate.test_timetuple.\n t = self.theclass(2004, 12, 31, 6, 22, 33)\n self.assertEqual(t.timetuple(), (2004, 12, 31, 6, 22, 33, 4, 366, -1))\n self.assertEqual(t.timetuple(),\n (t.year, t.month, t.day,\n t.hour, t.minute, t.second,\n t.weekday(),\n t.toordinal() - date(t.year, 1, 1).toordinal() + 1,\n -1))\n tt = t.timetuple()\n self.assertEqual(tt.tm_year, t.year)\n self.assertEqual(tt.tm_mon, t.month)\n self.assertEqual(tt.tm_mday, t.day)\n self.assertEqual(tt.tm_hour, t.hour)\n self.assertEqual(tt.tm_min, t.minute)\n self.assertEqual(tt.tm_sec, t.second)\n self.assertEqual(tt.tm_wday, t.weekday())\n self.assertEqual(tt.tm_yday, t.toordinal() -\n date(t.year, 1, 1).toordinal() + 1)\n self.assertEqual(tt.tm_isdst, -1)\n\n def test_m o olace(self):\n cls = self.theclass\n args = [1, 2, 3, 4, 5, 6, 7]\n base = cls(*args)\n self.assertEqual(base.replace(), base)\n self.assertEqual(copy.replace(base), base)\n\n changes = (("year", 2),\n ("month", 3),\n ("day", 4),\n ("hour", 5),\n ("minute", 6),\n ("second", 7),\n ("microsecond", 8))\n for i, (name, newval) in enumerate(changes):\n newargs = args[:]\n newargs[i] = newval\n expected = cls(*newargs)\n self.assertEqual(base.replace(**{name: newval}), expected)\n self.assertEqual(copy.replace(base, **{name: newval}), expected)\n\n # Out of bounds.\n base = cls(2000, 2, 29)\n self.assertRaises(ValueError, base.replace, year=2001)\n self.assertRaises(ValueError, copy.replace, base, year=2001)\n\n @support.run_with_tz(\'EDT4\')\n def test_astimezone(self):\n dt = self.theclass.now()\n f = FixedOffset(44, "0044")\n dt_utc = dt.replace(tzinfo=timezone(timedelta(hours=-4), \'EDT\'))\n self.assertEqual(dt.astimezone(), dt_utc) # naive\n self.assertRaises(TypeError, dt.astimezone, f, f) # too many args\n self.assertRaises(TypeError, dt.astimezone, dt) # arg wrong type\n dt_f = dt.replace(tzinfo=f) + timedelta(hours=4, minutes=44)\n self.assertEqual(dt.astimezone(f), dt_f) # naive\n self.assertEqual(dt.astimezone(tz=f), dt_f) # naive\n\n class Bogus(tzinfo):\n def utcoffset(self, dt): return None\n def dst(self, dt): return timedelta(0)\n bog = Bogus()\n self.assertRaises(ValueError, dt.astimezone, bog) # naive\n self.assertEqual(dt.replace(tzinfo=bog).astimezone(f), dt_f)\n\n class AlsoBogus(tzinfo):\n def utcoffset(self, dt): return timedelta(0)\n def dst(self, dt): return None\n alsobog = AlsoBogus()\n self.assertRaises(ValueError, dt.astimezone, alsobog) # also naive\n\n class Broken(tzinfo):\n def utcoffset(self, dt): return 1\n def dst(self, dt): return 1\n broken = Broken()\n dt_broken = dt.replace(tzinfo=broken)\n with self.assertRaises(TypeError):\n dt_broken.astimezone()\n\n def test_subclass_datetime(self):\n\n class C(self.theclass):\n theAnswer = 42\n\n def __new__(cls, *args, **kws):\n temp = kws.copy()\n extra = temp.pop(\'extra\')\n result = self.theclass.__new__(cls, *args, **temp)\n result.extra = extra\n return result\n\n def newmeth(self, start):\n return start + self.year + self.month + self.second\n\n args = 2003, 4, 14, 12, 13, 41\n\n dt1 = self.theclass(*args)\n dt2 = C(*args, **{\'extra\': 7})\n\n self.assertEqual(dt2.__class__, C)\n self.assertEqual(dt2.theAnswer, 42)\n self.assertEqual(dt2.extra, 7)\n self.assertEqual(dt1.toordinal(), dt2.toordinal())\n self.assertEqual(dt2.newmeth(-7), dt1.year + dt1.month +\n dt1.second - 7)\n\n def test_subclass_alternate_constructors_datetime(self):\n # Test that alternate constructors call the constructor\n class DateTimeSubclass(self.theclass):\n def __new__(cls, *args, **kwargs):\n result = self.theclass.__new__(cls, *args, **kwargs)\n result.extra = 7\n\n return result\n\n args = (2003, 4, 14, 12, 30, 15, 123456)\n d_isoformat = \'2003-04-14T12:30:15.123456\' # Equivalent isoformat()\n utc_ts = 1050323415.123456 # UTC timestamp\n\n base_d = DateTimeSubclass(*args)\n self.assertIsInstance(base_d, DateTimeSubclass)\n self.assertEqual(base_d.extra, 7)\n\n # Timestamp depends on time zone, so we\'ll calculate the equivalent her o oeclass(*case)\n\n # days out of range have their own error message, see issue 70647\n with self.assertRaises(ValueError) as msg:\n self.theclass(2009, 4, 32, 24, 0, 0)\n self.assertIn(f"day 32 must be in range 1..30 for month 4 in year 2009", str(msg.exception))\n\n def test_fromisoformat_datetime(self):\n # Test that isoformat() is reversible\n base_dates = [\n (1, 1, 1),\n (1900, 1, 1),\n (2004, 11, 12),\n (2017, 5, 30)\n ]\n\n base_times = [\n (0, 0, 0, 0),\n (0, 0, 0, 241000),\n (0, 0, 0, 234567),\n (12, 30, 45, 234567)\n ]\n\n separators = [\' \', \'T\']\n\n tzinfos = [None, timezone.utc,\n timezone(timedelta(hours=-5)),\n timezone(timedelta(hours=2))]\n\n dts = [self.theclass(*date_tuple, *time_tuple, tzinfo=tzi)\n for date_tuple in base_dates\n for time_tuple in base_times\n for tzi in tzinfos]\n\n for dt in dts:\n for sep in separators:\n dtstr = dt.isoformat(sep=sep)\n\n with self.subTest(dtstr=dtstr):\n dt_rt = self.theclass.fromisoformat(dtstr)\n self.assertEqual(dt, dt_rt)\n\n def test_fromisoformat_timezone(self):\n base_dt = self.theclass(2014, 12, 30, 12, 30, 45, 217456)\n\n tzoffsets = [\n timedelta(hours=5), timedelta(hours=2),\n timedelta(hours=6, minutes=27),\n timedelta(hours=12, minutes=32, seconds=30),\n timedelta(hours=2, minutes=4, seconds=9, microseconds=123456)\n ]\n\n tzoffsets += [-1 * td for td in tzoffsets]\n\n tzinfos = [None, timezone.utc,\n timezone(timedelta(hours=0))]\n\n tzinfos += [timezone(td) for td in tzoffsets]\n\n for tzi in tzinfos:\n dt = base_dt.replace(tzinfo=tzi)\n dtstr = dt.isoformat()\n\n with self.subTest(tstr=dtstr):\n dt_rt = self.theclass.fromisoformat(dtstr)\n assert dt == dt_rt, dt_rt\n\n def test_fromisoformat_separators(self):\n separators = [\n \' \', \'T\', \'\\u007f\', # 1-bit widths\n \'\\u0080\', \'ʁ\', # 2-bit widths\n \'ᛇ\', \'時\', # 3-bit widths\n \'🐍\', # 4-bit widths\n \'\\ud800\', # bpo-34454: Surrogate code point\n ]\n\n for sep in separators:\n dt = self.theclass(2018, 1, 31, 23, 59, 47, 124789)\n dtstr = dt.isoformat(sep=sep)\n\n with self.subTest(dtstr=dtstr):\n dt_rt = self.theclass.fromisoformat(dtstr)\n self.assertEqual(dt, dt_rt)\n\n def test_fromisoformat_ambiguous(self):\n # Test strings like 2018-01-31+12:15 (where +12:15 is not a time zone)\n separators = [\'+\', \'-\']\n for sep in separators:\n dt = self.theclass(2018, 1, 31, 12, 15)\n dtstr = dt.isoformat(sep=sep)\n\n with self.subTest(dtstr=dtstr):\n dt_rt = self.theclass.fromisoformat(dtstr)\n self.assertEqual(dt, dt_rt)\n\n def test_fromisoformat_timespecs(self):\n datetime_bases = [\n (2009, 12, 4, 8, 17, 45, 123456),\n (2009, 12, 4, 8, 17, 45, 0)]\n\n tzinfos = [None, timezone.utc,\n timezone(timedelta(hours=-5)),\n timezone(timedelta(hours=2)),\n timezone(timedelta(hours=6, minutes=27))]\n\n timespecs = [\'hours\', \'minutes\', \'seconds\',\n \'milliseconds\', \'microseconds\']\n\n for ip, ts in enumerate(timespecs):\n for tzi in tzinfos:\n for dt_tuple in datetime_bases:\n if ts == \'milliseconds\':\n new_microseconds = 1000 * (dt_tuple[6] // 1000)\n dt_tuple = dt_tuple[0:6 o o, 31, 16, 21)),\n (\'2022W527T202159\', self.theclass(2023, 1, 1, 20, 21, 59)),\n (\'2022W527 202159\', self.theclass(2023, 1, 1, 20, 21, 59)),\n (\'2025W014 121431\', self.theclass(2025, 1, 2, 12, 14, 31)),\n (\'2025W014T030405\', self.theclass(2025, 1, 2, 3, 4, 5)),\n (\'2025W014 030405\', self.theclass(2025, 1, 2, 3, 4, 5)),\n (\'2020-W53-6T03:04:05\', self.theclass(2021, 1, 2, 3, 4, 5)),\n (\'2020W537 03:04:05\', self.theclass(2021, 1, 3, 3, 4, 5)),\n (\'2025-W01-4T03:04:05\', self.theclass(2025, 1, 2, 3, 4, 5)),\n (\'2025-W01-4T03:04:05.678901\',\n self.theclass(2025, 1, 2, 3, 4, 5, 678901)),\n (\'2025-W01-4T12:14:31\', self.theclass(2025, 1, 2, 12, 14, 31)),\n (\'2025-W01-4T12:14:31.012345\',\n self.theclass(2025, 1, 2, 12, 14, 31, 12345)),\n (\'2026-W01-3T16:21:00\', self.theclass(2025, 12, 31, 16, 21)),\n (\'2026-W01-3T16:21:00.000000\', self.theclass(2025, 12, 31, 16, 21)),\n (\'2022-W52-7T20:21:59\',\n self.theclass(2023, 1, 1, 20, 21, 59)),\n (\'2022-W52-7T20:21:59.999999\',\n self.theclass(2023, 1, 1, 20, 21, 59, 999999)),\n (\'2025-W01003+00\',\n self.theclass(2024, 12, 30, 3, 0, tzinfo=UTC)),\n (\'2025-01-02T03:04:05+00\',\n self.theclass(2025, 1, 2, 3, 4, 5, tzinfo=UTC)),\n (\'2025-01-02T03:04:05Z\',\n self.theclass(2025, 1, 2, 3, 4, 5, tzinfo=UTC)),\n (\'2025-01-02003:04:05,6+00:00:00.00\',\n self.theclass(2025, 1, 2, 3, 4, 5, 600000, tzinfo=UTC)),\n (\'2000-01-01T00+21\',\n self.theclass(2000, 1, 1, 0, 0, tzinfo=timezone(timedelta(hours=21)))),\n (\'2025-01-02T03:05:06+0300\',\n self.theclass(2025, 1, 2, 3, 5, 6,\n tzinfo=timezone(timedelta(hours=3)))),\n (\'2025-01-02T03:05:06-0300\',\n self.theclass(2025, 1, 2, 3, 5, 6,\n tzinfo=timezone(timedelta(hours=-3)))),\n (\'2025-01-02T03:04:05+0000\',\n self.theclass(2025, 1, 2, 3, 4, 5, tzinfo=UTC)),\n (\'2025-01-02T03:05:06+03\',\n self.theclass(2025, 1, 2, 3, 5, 6,\n tzinfo=timezone(timedelta(hours=3)))),\n (\'2025-01-02T03:05:06-03\',\n self.theclass(2025, 1, 2, 3, 5, 6,\n tzinfo=timezone(timedelta(hours=-3)))),\n (\'2020-01-01T03:05:07.123457-05:00\',\n self.theclass(2020, 1, 1, 3, 5, 7, 123457, tzinfo=EST)),\n (\'2020-01-01T03:05:07.123457-0500\',\n self.theclass(2020, 1, 1, 3, 5, 7, 123457, tzinfo=EST)),\n (\'2020-06-01T04:05:06.111111-04:00\',\n self.theclass(2020, 6, 1, 4, 5, 6, 111111, tzinfo=EDT)),\n (\'2020-06-01T04:05:06.111111-0400\',\n self.theclass(2020, 6, 1, 4, 5, 6, 111111, tzinfo=EDT)),\n (\'2021-10-31T01:30:00.000000+01:00\',\n self.theclass(2021, 10, 31, 1, 30, tzinfo=BST)),\n (\'2021-10-31T01:30:00.000000+0100\',\n self.theclass(2021, 10, 31, 1, 30, tzinfo=BST)),\n (\'2025-01-02T03:04:05,6+000000.00\',\n self.theclass(2025, 1, 2, 3, 4, 5, 600000, tzinfo=UTC)),\n (\'2025-01-02T03:04:05,678+00:00:10\',\n self.theclass(2025, 1, 2, 3, 4, 5, 678000,\n tzinfo=timezone(timedelta(seconds=10)))),\n (\'2025-01-02T24:00:00\', self.theclass(2025, 1, 3, 0, 0, 0)),\n (\'2025-01-31T24:00:00\', self.theclass(2025, 2, 1, 0, 0, 0)),\n (\'2025-12-31T24:00:00\', self.theclass(2026, 1, 1, 0, 0, 0))\n ]\n\n for input_str, expected in examples:\n with self.subTest(input_str=input_str):\n actual = self.theclass.fromisoformat(input_str)\n self.assertEqual(actual, expected)\n\n def test_fromisoformat_fails_datetime(self):\n o oueError, pattern):\n self.theclass.fromisoformat(bad_str)\n\n # days out of range have their own error message, see issue 70647\n with self.assertRaises(ValueError) as msg:\n self.theclass.fromisoformat("2009-04-32T24:00:00")\n self.assertIn(f"day 32 must be in range 1..30 for month 4 in year 2009", str(msg.exception))\n\n def test_fromisoformat_fails_surrogate(self):\n # Test that when fromisoformat() fails with a surrogate character as\n # the separator, the error message contains the original string\n dtstr = "2018-01-03\\ud80001:0113"\n\n with self.assertRaisesRegex(ValueError, re.escape(repr(dtstr))):\n self.theclass.fromisoformat(dtstr)\n\n def test_fromisoformat_utc(self):\n dt_str = \'2014-04-19T13:21:13+00:00\'\n dt = self.theclass.fromisoformat(dt_str)\n\n self.assertIs(dt.tzinfo, timezone.utc)\n\n def test_fromisoformat_subclass(self):\n class DateTimeSubclass(self.theclass):\n pass\n\n dt = DateTimeSubclass(2014, 12, 14, 9, 30, 45, 457390,\n tzinfo=timezone(timedelta(hours=10, minutes=45)))\n\n dt_rt = DateTimeSubclass.fromisoformat(dt.isoformat())\n\n self.assertEqual(dt, dt_rt)\n self.assertIsInstance(dt_rt, DateTimeSubclass)\n\n def test_repr_subclass(self):\n """Subclasses should have bare names in the repr (gh-107773)."""\n td = SubclassDatetime(2014, 1, 1)\n self.assertEqual(repr(td), "SubclassDatetime(2014, 1, 1, 0, 0)")\n td = SubclassDatetime(2010, 10, day=10)\n self.assertEqual(repr(td), "SubclassDatetime(2010, 10, 10, 0, 0)")\n td = SubclassDatetime(2010, 10, 2, second=3)\n self.assertEqual(repr(td), "SubclassDatetime(2010, 10, 2, 0, 0, 3)")\n\n\nclass TestSubclassDateTime(TestDateTime):\n theclass = SubclassDatetime\n # Override tests not designed for subclass\n @unittest.skip(\'not appropriate for subclasses\')\n def test_roundtrip(self):\n pass\n\nclass SubclassTime(time):\n sub_var = 1\n\nclass TestTime(HarmlessMixedComparison, unittest.TestCase):\n\n theclass = time\n\n def test_basic_attributes(self):\n t = self.theclass(12, 0)\n self.assertEqual(t.hour, 12)\n self.assertEqual(t.minute, 0)\n self.assertEqual(t.second, 0)\n self.assertEqual(t.microsecond, 0)\n\n def test_basic_attributes_nonzero(self):\n # Make sure all attributes are non-zero so bugs in\n # bit-shifting access show up.\n t = self.theclass(12, 59, 59, 8000)\n self.assertEqual(t.hour, 12)\n self.assertEqual(t.minute, 59)\n self.assertEqual(t.second, 59)\n self.assertEqual(t.microsecond, 8000)\n\n def test_roundtrip(self):\n t = self.theclass(1, 2, 3, 4)\n\n # Verify t -> string -> time identity.\n s = repr(t)\n self.assertStartsWith(s, \'datetime.\')\n s = s[9:]\n t2 = eval(s)\n self.assertEqual(t, t2)\n\n # Verify identity via reconstructing from pieces.\n t2 = self.theclass(t.hour, t.minute, t.second,\n t.microsecond)\n self.assertEqual(t, t2)\n\n def test_comparing(self):\n args = [1, 2, 3, 4]\n t1 = self.theclass(*args)\n t2 = self.theclass(*args)\n self.assertEqual(t1, t2)\n self.assertTrue(t1 <= t2)\n self.assertTrue(t1 >= t2)\n self.assertFalse(t1 != t2)\n self.assertFalse(t1 < t2)\n self.assertFalse(t1 > t2)\n\n for i in range(len(args)):\n newargs = args[:]\n newargs[i] = args[i] + 1\n t2 = self.theclass(*newargs) # this is larger than t1\n self.assertTrue(t1 < t2)\n self.assertTrue(t2 > t1)\n self.assertTrue(t1 <= t2)\n self.assertTrue(t2 >= t1)\n self.assertTrue(t1 != t2)\n self.assertTrue(t2 != t1)\n self.assertFalse(t1 == t2)\n self.assertFalse(t2 == t1)\n se o o\n self.assertEqual(t.isoformat(timespec=\'seconds\'), "12:34:56")\n self.assertEqual(t.isoformat(timespec=\'milliseconds\'), "12:34:56.123")\n self.assertEqual(t.isoformat(timespec=\'microseconds\'), "12:34:56.123456")\n self.assertEqual(t.isoformat(timespec=\'auto\'), "12:34:56.123456")\n self.assertRaises(ValueError, t.isoformat, timespec=\'monkey\')\n # bpo-34482: Check that surrogates are handled properly.\n self.assertRaises(ValueError, t.isoformat, timespec=\'\\ud800\')\n\n t = self.theclass(hour=12, minute=34, second=56, microsecond=999500)\n self.assertEqual(t.isoformat(timespec=\'milliseconds\'), "12:34:56.999")\n\n t = self.theclass(hour=12, minute=34, second=56, microsecond=0)\n self.assertEqual(t.isoformat(timespec=\'milliseconds\'), "12:34:56.000")\n self.assertEqual(t.isoformat(timespec=\'microseconds\'), "12:34:56.000000")\n self.assertEqual(t.isoformat(timespec=\'auto\'), "12:34:56")\n\n def test_isoformat_timezone(self):\n tzoffsets = [\n (\'05:00\', timedelta(hours=5)),\n (\'02:00\', timedelta(hours=2)),\n (\'06:27\', timedelta(hours=6, minutes=27)),\n (\'12:32:30\', timedelta(hours=12, minutes=32, seconds=30)),\n (\'02:04:09.123456\', timedelta(hours=2, minutes=4, seconds=9, microseconds=123456))\n ]\n\n tzinfos = [\n (\'\', None),\n (\'+00:00\', timezone.utc),\n (\'+00:00\', timezone(timedelta(0))),\n ]\n\n tzinfos += [\n (prefix + expected, timezone(sign * td))\n for expected, td in tzoffsets\n for prefix, sign in [(\'-\', -1), (\'+\', 1)]\n ]\n\n t_base = self.theclass(12, 37, 9)\n exp_base = \'12:37:09\'\n\n for exp_tz, tzi in tzinfos:\n t = t_base.replace(tzinfo=tzi)\n exp = exp_base + exp_tz\n with self.subTest(tzi=tzi):\n assert t.isoformat() == exp\n\n def test_1653736(self):\n # verify it doesn\'t accept extra keyword arguments\n t = self.theclass(second=1)\n self.assertRaises(TypeError, t.isoformat, foo=3)\n\n def test_strftime(self):\n t = self.theclass(1, 2, 3, 4)\n self.assertEqual(t.strftime(\'%H %M %S %f\'), "01 02 03 000004")\n # A naive object replaces %z, %:z and %Z with empty strings.\n self.assertEqual(t.strftime("\'%z\' \'%:z\' \'%Z\'"), "\'\' \'\' \'\'")\n\n # bpo-34482: Check that surrogates don\'t cause a crash.\n try:\n t.strftime(\'%H\\ud800%M\')\n except UnicodeEncodeError:\n pass\n\n # gh-85432: The parameter was named "fmt" in the pure-Python impl.\n t.strftime(format="%f")\n\n def test_strftime_special(self):\n t = self.theclass(1, 2, 3, 4)\n s1 = t.strftime(\'%I%p%Z\')\n s2 = t.strftime(\'%X\')\n # gh-52551, gh-78662: Unicode strings should pass through strftime,\n # independently from locale.\n self.assertEqual(t.strftime(\'\\U0001f40d\'), \'\\U0001f40d\')\n self.assertEqual(t.strftime(\'\\U0001f4bb%I%p%Z\\U0001f40d%X\'), f\'\\U0001f4bb{s1}\\U0001f40d{s2}\')\n self.assertEqual(t.strftime(\'%I%p%Z\\U0001f4bb%X\\U0001f40d\'), f\'{s1}\\U0001f4bb{s2}\\U0001f40d\')\n # Lone surrogates should pass through.\n self.assertEqual(t.strftime(\'\\ud83d\'), \'\\ud83d\')\n self.assertEqual(t.strftime(\'\\udc0d\'), \'\\udc0d\')\n self.assertEqual(t.strftime(\'\\ud83d%I%p%Z\\udc0d%X\'), f\'\\ud83d{s1}\\udc0d{s2}\')\n self.assertEqual(t.strftime(\'%I%p%Z\\ud83d%X\\udc0d\'), f\'{s1}\\ud83d{s2}\\udc0d\')\n self.assertEqual(t.strftime(\'%I%p%Z\\udc0d%X\\ud83d\'), f\'{s1}\\udc0d{s2}\\ud83d\')\n # Surrogate pairs should not recombine.\n self.assertEqual(t.strftime(\'\\ud83d\\udc0d\'), \'\\ud83d\\udc0d\')\n self.assertEqual(t.strftime(\'%I%p%Z\\ud83d\\udc0d%X\'), f\'{s1}\\ud83d\\udc0d{s2}\')\n # Surrogate-escaped bytes should not recomb o o for pickler, unpickler, proto in pickle_choices:\n green = pickler.dumps(orig, proto)\n derived = unpickler.loads(green)\n self.assertEqual(orig, derived)\n self.assertTrue(isinstance(derived, SubclassTime))\n\n def test_compat_unpickle(self):\n tests = [\n (b"cdatetime\\ntime\\n(S\'\\\\x14;\\\\x10\\\\x00\\\\x10\\\\x00\'\\ntR.",\n (20, 59, 16, 64**2)),\n (b\'cdatetime\\ntime\\n(U\\x06\\x14;\\x10\\x00\\x10\\x00tR.\',\n (20, 59, 16, 64**2)),\n (b\'\\x80\\x02cdatetime\\ntime\\nU\\x06\\x14;\\x10\\x00\\x10\\x00\\x85R.\',\n (20, 59, 16, 64**2)),\n (b"cdatetime\\ntime\\n(S\'\\\\x14;\\\\x19\\\\x00\\\\x10\\\\x00\'\\ntR.",\n (20, 59, 25, 64**2)),\n (b\'cdatetime\\ntime\\n(U\\x06\\x14;\\x19\\x00\\x10\\x00tR.\',\n (20, 59, 25, 64**2)),\n (b\'\\x80\\x02cdatetime\\ntime\\nU\\x06\\x14;\\x19\\x00\\x10\\x00\\x85R.\',\n (20, 59, 25, 64**2)),\n ]\n for i, (data, args) in enumerate(tests):\n with self.subTest(i=i):\n expected = self.theclass(*args)\n for loads in pickle_loads:\n derived = loads(data, encoding=\'latin1\')\n self.assertEqual(derived, expected)\n\n def test_strptime(self):\n # bpo-34482: Check that surrogates are handled properly.\n inputs = [\n (self.theclass(13, 2, 47, 197000), \'13:02:47.197\', \'%H:%M:%S.%f\'),\n (self.theclass(13, 2, 47, 197000), \'13:02\\ud80047.197\', \'%H:%M\\ud800%S.%f\'),\n (self.theclass(13, 2, 47, 197000), \'13\\ud80002:47.197\', \'%H\\ud800%M:%S.%f\'),\n ]\n for expected, string, format in inputs:\n with self.subTest(string=string, format=format):\n got = self.theclass.strptime(string, format)\n self.assertEqual(expected, got)\n self.assertIs(type(got), self.theclass)\n\n def test_strptime_tz(self):\n strptime = self.theclass.strptime\n self.assertEqual(strptime("+0002", "%z").utcoffset(), 2 * MINUTE)\n self.assertEqual(strptime("-0002", "%z").utcoffset(), -2 * MINUTE)\n self.assertEqual(\n strptime("-00:02:01.000003", "%z").utcoffset(),\n -timedelta(minutes=2, seconds=1, microseconds=3)\n )\n # Only local timezone and UTC are supported\n for tzseconds, tzname in ((0, \'UTC\'), (0, \'GMT\'),\n (-_time.timezone, _time.tzname[0])):\n if tzseconds < 0:\n sign = \'-\'\n seconds = -tzseconds\n else:\n sign =\'+\'\n seconds = tzseconds\n hours, minutes = divmod(seconds//60, 60)\n tstr = "{}{:02d}{:02d} {}".format(sign, hours, minutes, tzname)\n with self.subTest(tstr=tstr):\n t = strptime(tstr, "%z %Z")\n self.assertEqual(t.utcoffset(), timedelta(seconds=tzseconds))\n self.assertEqual(t.tzname(), tzname)\n self.assertIs(type(t), self.theclass)\n\n # Can produce inconsistent time\n tstr, fmt = "+1234 UTC", "%z %Z"\n t = strptime(tstr, fmt)\n self.assertEqual(t.utcoffset(), 12 * HOUR + 34 * MINUTE)\n self.assertEqual(t.tzname(), \'UTC\')\n # yet will roundtrip\n self.assertEqual(t.strftime(fmt), tstr)\n\n # Produce naive time if no %z is provided\n self.assertEqual(strptime("UTC", "%Z").tzinfo, None)\n\n def test_strptime_errors(self):\n for tzstr in ("-2400", "-000", "z"):\n with self.assertRaises(ValueError):\n self.theclass.strptime(tzstr, "%z")\n\n def test_strptime_single_digit(self):\n # bpo-34903: Check that single digit times are allowed.\n t = self.theclass(4, 5, 6)\n inputs = [\n (\'%H\', \'4:05:06\', \'%H:%M:%S\', t),\n (\'%M\', \'04:5:06\', \'%H:%M:%S\', t),\n o o', chr(24), \'\\xff\':\n self.assertRaises(TypeError, self.theclass,\n hour_byte + base[1:])\n # Good bytes, but bad tzinfo:\n with self.assertRaisesRegex(TypeError, \'^bad tzinfo state arg$\'):\n self.theclass(bytes([1] * len(base)), \'EST\')\n\n# A mixin for classes with a tzinfo= argument. Subclasses must define\n# theclass as a class attribute, and theclass(1, 1, 1, tzinfo=whatever)\n# must be legit (which is true for time and datetime).\nclass TZInfoBase:\n\n def test_argument_passing(self):\n cls = self.theclass\n # A datetime passes itself on, a time passes None.\n class introspective(tzinfo):\n def tzname(self, dt): return dt and "real" or "none"\n def utcoffset(self, dt):\n return timedelta(minutes = dt and 42 or -42)\n dst = utcoffset\n\n obj = cls(1, 2, 3, tzinfo=introspective())\n\n expected = cls is time and "none" or "real"\n self.assertEqual(obj.tzname(), expected)\n\n expected = timedelta(minutes=(cls is time and -42 or 42))\n self.assertEqual(obj.utcoffset(), expected)\n self.assertEqual(obj.dst(), expected)\n\n def test_bad_tzinfo_classes(self):\n cls = self.theclass\n self.assertRaises(TypeError, cls, 1, 1, 1, tzinfo=12)\n\n class NiceTry(object):\n def __init__(self): pass\n def utcoffset(self, dt): pass\n self.assertRaises(TypeError, cls, 1, 1, 1, tzinfo=NiceTry)\n\n class BetterTry(tzinfo):\n def __init__(self): pass\n def utcoffset(self, dt): pass\n b = BetterTry()\n t = cls(1, 1, 1, tzinfo=b)\n self.assertIs(t.tzinfo, b)\n\n def test_utc_offset_out_of_bounds(self):\n class Edgy(tzinfo):\n def __init__(self, offset):\n self.offset = timedelta(minutes=offset)\n def utcoffset(self, dt):\n return self.offset\n\n cls = self.theclass\n for offset, legit in ((-1440, False),\n (-1439, True),\n (1439, True),\n (1440, False)):\n if cls is time:\n t = cls(1, 2, 3, tzinfo=Edgy(offset))\n elif cls is datetime:\n t = cls(6, 6, 6, 1, 2, 3, tzinfo=Edgy(offset))\n else:\n assert 0, "impossible"\n if legit:\n aofs = abs(offset)\n h, m = divmod(aofs, 60)\n tag = "%c%02d:%02d" % (offset < 0 and \'-\' or \'+\', h, m)\n if isinstance(t, datetime):\n t = t.timetz()\n self.assertEqual(str(t), "01:02:03" + tag)\n else:\n self.assertRaises(ValueError, str, t)\n\n def test_tzinfo_classes(self):\n cls = self.theclass\n class C1(tzinfo):\n def utcoffset(self, dt): return None\n def dst(self, dt): return None\n def tzname(self, dt): return None\n for t in (cls(1, 1, 1),\n cls(1, 1, 1, tzinfo=None),\n cls(1, 1, 1, tzinfo=C1())):\n self.assertIsNone(t.utcoffset())\n self.assertIsNone(t.dst())\n self.assertIsNone(t.tzname())\n\n class C3(tzinfo):\n def utcoffset(self, dt): return timedelta(minutes=-1439)\n def dst(self, dt): return timedelta(minutes=1439)\n def tzname(self, dt): return "aname"\n t = cls(1, 1, 1, tzinfo=C3())\n self.assertEqual(t.utcoffset(), timedelta(minutes=-1439))\n self.assertEqual(t.dst(), timedelta(minutes=1439))\n self.assertEqual(t.tzname(), "aname")\n\n # Wrong types.\n class C4(tzinfo):\n def utcoffset(self, dt): return "aname"\n def dst(self, dt): return 7\n def tzname(self, dt): return 0\n t = cls(1, 1, 1, tzinfo=C4())\n self.assertRaises(TypeError, t.utcoffset)\n self.assertRaises(TypeErr o oassertEqual(t2.tzname(), "UTC")\n self.assertEqual(t3.tzname(), "MET")\n self.assertIsNone(t4.tzname())\n self.assertRaises(TypeError, t1.tzname, "no args")\n\n self.assertEqual(t1.dst(), timedelta(minutes=1))\n self.assertEqual(t2.dst(), timedelta(minutes=-2))\n self.assertEqual(t3.dst(), timedelta(minutes=3))\n self.assertIsNone(t4.dst())\n self.assertRaises(TypeError, t1.dst, "no args")\n\n self.assertEqual(hash(t1), hash(t2))\n self.assertEqual(hash(t1), hash(t3))\n self.assertEqual(hash(t2), hash(t3))\n\n self.assertEqual(t1, t2)\n self.assertEqual(t1, t3)\n self.assertEqual(t2, t3)\n self.assertNotEqual(t4, t5) # mixed tz-aware & naive\n self.assertRaises(TypeError, lambda: t4 < t5) # mixed tz-aware & naive\n self.assertRaises(TypeError, lambda: t5 < t4) # mixed tz-aware & naive\n\n self.assertEqual(str(t1), "07:47:00-05:00")\n self.assertEqual(str(t2), "12:47:00+00:00")\n self.assertEqual(str(t3), "13:47:00+01:00")\n self.assertEqual(str(t4), "00:00:00.000040")\n self.assertEqual(str(t5), "00:00:00.000040+00:00")\n\n self.assertEqual(t1.isoformat(), "07:47:00-05:00")\n self.assertEqual(t2.isoformat(), "12:47:00+00:00")\n self.assertEqual(t3.isoformat(), "13:47:00+01:00")\n self.assertEqual(t4.isoformat(), "00:00:00.000040")\n self.assertEqual(t5.isoformat(), "00:00:00.000040+00:00")\n\n d = \'datetime.time\'\n self.assertEqual(repr(t1), d + "(7, 47, tzinfo=est)")\n self.assertEqual(repr(t2), d + "(12, 47, tzinfo=utc)")\n self.assertEqual(repr(t3), d + "(13, 47, tzinfo=met)")\n self.assertEqual(repr(t4), d + "(0, 0, 0, 40)")\n self.assertEqual(repr(t5), d + "(0, 0, 0, 40, tzinfo=utc)")\n\n self.assertEqual(t1.strftime("%H:%M:%S %%Z=%Z %%z=%z %%:z=%:z"),\n "07:47:00 %Z=EST %z=-0500 %:z=-05:00")\n self.assertEqual(t2.strftime("%H:%M:%S %Z %z %:z"), "12:47:00 UTC +0000 +00:00")\n self.assertEqual(t3.strftime("%H:%M:%S %Z %z %:z"), "13:47:00 MET +0100 +01:00")\n\n yuck = FixedOffset(-1439, "%z %Z %%z%%Z")\n t1 = time(23, 59, tzinfo=yuck)\n self.assertEqual(t1.strftime("%H:%M %%Z=\'%Z\' %%z=\'%z\'"),\n "23:59 %Z=\'%z %Z %%z%%Z\' %z=\'-2359\'")\n\n # Check that an invalid tzname result raises an exception.\n class Badtzname(tzinfo):\n tz = 42\n def tzname(self, dt): return self.tz\n t = time(2, 3, 4, tzinfo=Badtzname())\n self.assertEqual(t.strftime("%H:%M:%S"), "02:03:04")\n self.assertRaises(TypeError, t.strftime, "%Z")\n\n # Issue #6697:\n Badtzname.tz = \'\\ud800\'\n self.assertEqual(t.strftime("%Z"), \'\\ud800\')\n\n def test_hash_edge_cases(self):\n # Offsets that overflow a basic time.\n t1 = self.theclass(0, 1, 2, 3, tzinfo=FixedOffset(1439, ""))\n t2 = self.theclass(0, 0, 2, 3, tzinfo=FixedOffset(1438, ""))\n self.assertEqual(hash(t1), hash(t2))\n\n t1 = self.theclass(23, 58, 6, 100, tzinfo=FixedOffset(-1000, ""))\n t2 = self.theclass(23, 48, 6, 100, tzinfo=FixedOffset(-1010, ""))\n self.assertEqual(hash(t1), hash(t2))\n\n def test_pickling(self):\n # Try one without a tzinfo.\n args = 20, 59, 16, 64**2\n orig = self.theclass(*args)\n for pickler, unpickler, proto in pickle_choices:\n green = pickler.dumps(orig, proto)\n derived = unpickler.loads(green)\n self.assertEqual(orig, derived)\n self.assertEqual(orig.__reduce__(), orig.__reduce_ex__(2))\n\n # Try one with a tzinfo.\n tinfo = PicklableFixedOffset(-300, \'cookie\')\n orig = self.theclass(5, 6, 7, tzinfo=tinfo)\n for pickler, unpickler, proto in pickle_choices:\n green = pickler.dumps(orig, proto)\n derived = unpickler.loads(green)\n self.assertEqual(orig, de o otRaises(ValueError, base.replace, minute=-1)\n self.assertRaises(ValueError, base.replace, second=100)\n self.assertRaises(ValueError, base.replace, microsecond=1000000)\n self.assertRaises(ValueError, copy.replace, base, hour=24)\n self.assertRaises(ValueError, copy.replace, base, minute=-1)\n self.assertRaises(ValueError, copy.replace, base, second=100)\n self.assertRaises(ValueError, copy.replace, base, microsecond=1000000)\n\n def test_mixed_compare(self):\n t1 = self.theclass(1, 2, 3)\n t2 = self.theclass(1, 2, 3)\n self.assertEqual(t1, t2)\n t2 = t2.replace(tzinfo=None)\n self.assertEqual(t1, t2)\n t2 = t2.replace(tzinfo=FixedOffset(None, ""))\n self.assertEqual(t1, t2)\n t2 = t2.replace(tzinfo=FixedOffset(0, ""))\n self.assertNotEqual(t1, t2)\n\n # In time w/ identical tzinfo objects, utcoffset is ignored.\n class Varies(tzinfo):\n def __init__(self):\n self.offset = timedelta(minutes=22)\n def utcoffset(self, t):\n self.offset += timedelta(minutes=1)\n return self.offset\n\n v = Varies()\n t1 = t2.replace(tzinfo=v)\n t2 = t2.replace(tzinfo=v)\n self.assertEqual(t1.utcoffset(), timedelta(minutes=23))\n self.assertEqual(t2.utcoffset(), timedelta(minutes=24))\n self.assertEqual(t1, t2)\n\n # But if they\'re not identical, it isn\'t ignored.\n t2 = t2.replace(tzinfo=Varies())\n self.assertTrue(t1 < t2) # t1\'s offset counter still going up\n\n def test_valuerror_messages(self):\n pattern = re.compile(\n r"(hour|minute|second|microsecond) must be in \\d+\\.\\.\\d+, not \\d+"\n )\n test_cases = [\n (12, 30, 90, 9999991), # Microsecond out of range\n (12, 30, 90, 000000), # Second out of range\n (25, 30, 45, 000000), # Hour out of range\n (12, 90, 45, 000000), # Minute out of range\n ]\n for case in test_cases:\n with self.subTest(case):\n with self.assertRaisesRegex(ValueError, pattern):\n self.theclass(*case)\n\n def test_fromisoformat(self):\n time_examples = [\n (0, 0, 0, 0),\n (23, 59, 59, 999999),\n ]\n\n hh = (9, 12, 20)\n mm = (5, 30)\n ss = (4, 45)\n usec = (0, 245000, 678901)\n\n time_examples += list(itertools.product(hh, mm, ss, usec))\n\n tzinfos = [None, timezone.utc,\n timezone(timedelta(hours=2)),\n timezone(timedelta(hours=6, minutes=27))]\n\n for ttup in time_examples:\n for tzi in tzinfos:\n t = self.theclass(*ttup, tzinfo=tzi)\n tstr = t.isoformat()\n\n with self.subTest(tstr=tstr):\n t_rt = self.theclass.fromisoformat(tstr)\n self.assertEqual(t, t_rt)\n\n def test_fromisoformat_timezone(self):\n base_time = self.theclass(12, 30, 45, 217456)\n\n tzoffsets = [\n timedelta(hours=5), timedelta(hours=2),\n timedelta(hours=6, minutes=27),\n timedelta(hours=12, minutes=32, seconds=30),\n timedelta(hours=2, minutes=4, seconds=9, microseconds=123456)\n ]\n\n tzoffsets += [-1 * td for td in tzoffsets]\n\n tzinfos = [None, timezone.utc,\n timezone(timedelta(hours=0))]\n\n tzinfos += [timezone(td) for td in tzoffsets]\n\n for tzi in tzinfos:\n t = base_time.replace(tzinfo=tzi)\n tstr = t.isoformat()\n\n with self.subTest(tstr=tstr):\n t_rt = self.theclass.fromisoformat(tstr)\n assert t == t_rt\n\n def test_fromisoformat_timespecs(self):\n time_bases = [\n (8, 17, 45, 123456),\n (8, 17, 45, 0)\n ]\n\n tzinfos = [None, timezone.utc,\n timezone(timedelta(hours=-5)),\n o olass(0, 0, tzinfo=timezone(-timedelta(hours=23, minutes=59, seconds=59, microseconds=999999)))),\n ]\n\n for input_str, expected in examples:\n with self.subTest(input_str=input_str):\n actual = self.theclass.fromisoformat(input_str)\n self.assertEqual(actual, expected)\n\n def test_fromisoformat_fails(self):\n bad_strs = [\n \'\', # Empty string\n \'12\\ud80000\', # Invalid separator - surrogate char\n \'12:\', # Ends on a separator\n \'12:30:\', # Ends on a separator\n \'12:30:15.\', # Ends on a separator\n \'1\', # Incomplete hours\n \'12:3\', # Incomplete minutes\n \'12:30:1\', # Incomplete seconds\n \'1a:30:45.334034\', # Invalid character in hours\n \'12:a0:45.334034\', # Invalid character in minutes\n \'12:30:a5.334034\', # Invalid character in seconds\n \'12:30:45.123456+24:30\', # Invalid time zone offset\n \'12:30:45.123456-24:30\', # Invalid negative offset\n \'12:30:45\', # Uses full-width unicode colons\n \'12:30:45.123456a\', # Non-numeric data after 6 components\n \'12:30:45.123456789a\', # Non-numeric data after 9 components\n \'12:30:45․123456\', # Uses \\u2024 in place of decimal point\n \'12:30:45a\', # Extra at tend of basic time\n \'12:30:45.123a\', # Extra at end of millisecond time\n \'12:30:45.123456a\', # Extra at end of microsecond time\n \'12:30:45.123456-\', # Extra at end of microsecond time\n \'12:30:45.123456+\', # Extra at end of microsecond time\n \'12:30:45.123456+12:00:30a\', # Extra at end of full time\n \'12.5\', # Decimal mark at end of hour\n \'12:30,5\', # Decimal mark at end of minute\n \'12:30:45.123456Z12:00\', # Extra time zone info after Z\n \'12:30:45:334034\', # Invalid microsecond separator\n \'12:30:45.400 +02:30\', # Space between ms and timezone (gh-130959)\n \'12:30:45.400 \', # Trailing space (gh-130959)\n \'12:30:45. 400\', # Space before fraction (gh-130959)\n \'24:00:00.000001\', # Has non-zero microseconds on 24:00\n \'24:00:01.000000\', # Has non-zero seconds on 24:00\n \'24:01:00.000000\', # Has non-zero minutes on 24:00\n \'12:30:45+00:90:00\', # Time zone field out from range\n \'12:30:45+00:00:90\', # Time zone field out from range\n ]\n\n for bad_str in bad_strs:\n with self.subTest(bad_str=bad_str):\n with self.assertRaises(ValueError):\n self.theclass.fromisoformat(bad_str)\n\n def test_fromisoformat_fails_typeerror(self):\n # Test the fromisoformat fails when passed the wrong type\n bad_types = [b\'12:30:45\', None, io.StringIO(\'12:30:45\')]\n\n for bad_type in bad_types:\n with self.assertRaises(TypeError):\n self.theclass.fromisoformat(bad_type)\n\n def test_fromisoformat_subclass(self):\n class TimeSubclass(self.theclass):\n pass\n\n tsc = TimeSubclass(12, 14, 45, 203745, tzinfo=timezone.utc)\n tsc_rt = TimeSubclass.fromisoformat(tsc.isoformat())\n\n self.assertEqual(tsc, tsc_rt)\n self.assertIsInstance(tsc_rt, TimeSubclass)\n\n def test_subclass_timetz(self):\n\n class C(self.theclass):\n theAnswer = 42\n\n def __new__(cls, *args, **kws):\n temp = kws.copy()\n extra = temp.pop(\'extra\')\n res o ockler, unpickler, proto in pickle_choices:\n green = pickler.dumps(orig, proto)\n derived = unpickler.loads(green)\n self.assertEqual(orig, derived)\n self.assertEqual(orig.__reduce__(), orig.__reduce_ex__(2))\n\n # Try one with a tzinfo.\n tinfo = PicklableFixedOffset(-300, \'cookie\')\n orig = self.theclass(*args, **{\'tzinfo\': tinfo})\n derived = self.theclass(1, 1, 1, tzinfo=FixedOffset(0, "", 0))\n for pickler, unpickler, proto in pickle_choices:\n green = pickler.dumps(orig, proto)\n derived = unpickler.loads(green)\n self.assertEqual(orig, derived)\n self.assertIsInstance(derived.tzinfo, PicklableFixedOffset)\n self.assertEqual(derived.utcoffset(), timedelta(minutes=-300))\n self.assertEqual(derived.tzname(), \'cookie\')\n self.assertEqual(orig.__reduce__(), orig.__reduce_ex__(2))\n\n def test_compat_unpickle(self):\n tests = [\n b\'cdatetime\\ndatetime\\n\'\n b"(S\'\\\\x07\\\\xdf\\\\x0b\\\\x1b\\\\x14;\\\\x01\\\\x01\\\\xe2@\'\\n"\n b\'ctest.datetimetester\\nPicklableFixedOffset\\n(tR\'\n b"(dS\'_FixedOffset__offset\'\\ncdatetime\\ntimedelta\\n"\n b\'(I-1\\nI68400\\nI0\\ntRs\'\n b"S\'_FixedOffset__dstoffset\'\\nNs"\n b"S\'_FixedOffset__name\'\\nS\'cookie\'\\nsbtR.",\n\n b\'cdatetime\\ndatetime\\n\'\n b\'(U\\n\\x07\\xdf\\x0b\\x1b\\x14;\\x01\\x01\\xe2@\'\n b\'ctest.datetimetester\\nPicklableFixedOffset\\n)R\'\n b\'}(U\\x14_FixedOffset__offsetcdatetime\\ntimedelta\\n\'\n b\'(J\\xff\\xff\\xff\\xffJ0\\x0b\\x01\\x00K\\x00tR\'\n b\'U\\x17_FixedOffset__dstoffsetN\'\n b\'U\\x12_FixedOffset__nameU\\x06cookieubtR.\',\n\n b\'\\x80\\x02cdatetime\\ndatetime\\n\'\n b\'U\\n\\x07\\xdf\\x0b\\x1b\\x14;\\x01\\x01\\xe2@\'\n b\'ctest.datetimetester\\nPicklableFixedOffset\\n)R\'\n b\'}(U\\x14_FixedOffset__offsetcdatetime\\ntimedelta\\n\'\n b\'J\\xff\\xff\\xff\\xffJ0\\x0b\\x01\\x00K\\x00\\x87R\'\n b\'U\\x17_FixedOffset__dstoffsetN\'\n b\'U\\x12_FixedOffset__nameU\\x06cookieub\\x86R.\',\n ]\n args = 2015, 11, 27, 20, 59, 1, 123456\n tinfo = PicklableFixedOffset(-300, \'cookie\')\n expected = self.theclass(*args, **{\'tzinfo\': tinfo})\n for data in tests:\n for loads in pickle_loads:\n derived = loads(data, encoding=\'latin1\')\n self.assertEqual(derived, expected)\n self.assertIsInstance(derived.tzinfo, PicklableFixedOffset)\n self.assertEqual(derived.utcoffset(), timedelta(minutes=-300))\n self.assertEqual(derived.tzname(), \'cookie\')\n\n def test_extreme_hashes(self):\n # If an attempt is made to hash these via subtracting the offset\n # then hashing a datetime object, OverflowError results. The\n # Python implementation used to blow up here.\n t = self.theclass(1, 1, 1, tzinfo=FixedOffset(1439, ""))\n hash(t)\n t = self.theclass(MAXYEAR, 12, 31, 23, 59, 59, 999999,\n tzinfo=FixedOffset(-1439, ""))\n hash(t)\n\n # OTOH, an OOB offset should blow up.\n t = self.theclass(5, 5, 5, tzinfo=FixedOffset(-1440, ""))\n self.assertRaises(ValueError, hash, t)\n\n def test_zones(self):\n est = FixedOffset(-300, "EST")\n utc = FixedOffset(0, "UTC")\n met = FixedOffset(60, "MET")\n t1 = datetime(2002, 3, 19, 7, 47, tzinfo=est)\n t2 = datetime(2002, 3, 19, 12, 47, tzinfo=utc)\n t3 = datetime(2002, 3, 19, 13, 47, tzinfo=met)\n self.assertEqual(t1.tzinfo, est)\n self.assertEqual(t2.tzinfo, utc)\n self.assertEqual(t3.tzinfo, met)\n self.assertEqual(t1.utcoffset(), timedelta(minutes=-300))\n self.assertEqual(t2.utcoffset(), timedelta(minutes=0))\n self.assertEqual(t3.u o o, 23, 59, 59, 999999,\n tzinfo=FixedOffset(-1439, "max"))\n maxdiff = max - min\n self.assertEqual(maxdiff, self.theclass.max - self.theclass.min +\n timedelta(minutes=2*1439))\n # Different tzinfo, but the same offset\n tza = timezone(HOUR, \'A\')\n tzb = timezone(HOUR, \'B\')\n delta = min.replace(tzinfo=tza) - max.replace(tzinfo=tzb)\n self.assertEqual(delta, self.theclass.min - self.theclass.max)\n\n def test_tzinfo_now(self):\n meth = self.theclass.now\n # Ensure it doesn\'t require tzinfo (i.e., that this doesn\'t blow up).\n base = meth()\n # Try with and without naming the keyword.\n off42 = FixedOffset(42, "42")\n another = meth(off42)\n again = meth(tz=off42)\n self.assertIs(another.tzinfo, again.tzinfo)\n self.assertEqual(another.utcoffset(), timedelta(minutes=42))\n # Bad argument with and w/o naming the keyword.\n self.assertRaises(TypeError, meth, 16)\n self.assertRaises(TypeError, meth, tzinfo=16)\n # Bad keyword name.\n self.assertRaises(TypeError, meth, tinfo=off42)\n # Too many args.\n self.assertRaises(TypeError, meth, off42, off42)\n\n # We don\'t know which time zone we\'re in, and don\'t have a tzinfo\n # class to represent it, so seeing whether a tz argument actually\n # does a conversion is tricky.\n utc = FixedOffset(0, "utc", 0)\n for weirdtz in [FixedOffset(timedelta(hours=15, minutes=58), "weirdtz", 0),\n timezone(timedelta(hours=15, minutes=58), "weirdtz"),]:\n for dummy in range(3):\n now = datetime.now(weirdtz)\n self.assertIs(now.tzinfo, weirdtz)\n with self.assertWarns(DeprecationWarning):\n utcnow = datetime.utcnow().replace(tzinfo=utc)\n now2 = utcnow.astimezone(weirdtz)\n if abs(now - now2) < timedelta(seconds=30):\n break\n # Else the code is broken, or more than 30 seconds passed between\n # calls; assuming the latter, just try again.\n else:\n # Three strikes and we\'re out.\n self.fail("utcnow(), now(tz), or astimezone() may be broken")\n\n def test_tzinfo_fromtimestamp(self):\n import time\n meth = self.theclass.fromtimestamp\n ts = time.time()\n # Ensure it doesn\'t require tzinfo (i.e., that this doesn\'t blow up).\n base = meth(ts)\n # Try with and without naming the keyword.\n off42 = FixedOffset(42, "42")\n another = meth(ts, off42)\n again = meth(ts, tz=off42)\n self.assertIs(another.tzinfo, again.tzinfo)\n self.assertEqual(another.utcoffset(), timedelta(minutes=42))\n # Bad argument with and w/o naming the keyword.\n self.assertRaises(TypeError, meth, ts, 16)\n self.assertRaises(TypeError, meth, ts, tzinfo=16)\n # Bad keyword name.\n self.assertRaises(TypeError, meth, ts, tinfo=off42)\n # Too many args.\n self.assertRaises(TypeError, meth, ts, off42, off42)\n # Too few args.\n self.assertRaises(TypeError, meth)\n\n # Try to make sure tz= actually does some conversion.\n timestamp = 1000000000\n with self.assertWarns(DeprecationWarning):\n utcdatetime = datetime.utcfromtimestamp(timestamp)\n # In POSIX (epoch 1970), that\'s 2001-09-09 01:46:40 UTC, give or take.\n # But on some flavor of Mac, it\'s nowhere near that. So we can\'t have\n # any idea here what time that actually is, we can only test that\n # relative changes match.\n utcoffset = timedelta(hours=-15, minutes=39) # arbitrary, but not zero\n tz = FixedOffset(utcoffset, "tz", 0)\n expected = utcdatetime + utcoffset\n got = datetime.fromtimestamp(timestamp, tz)\n self.assertEqual(expected, got.replace(tzinfo=None o o self.assertEqual(d.toordinal() - date(1, 1, 1).toordinal() + 1,\n t.tm_yday)\n # Ensure tm_isdst is 0 regardless of what dst() says: DST\n # is never in effect for a UTC time.\n self.assertEqual(0, t.tm_isdst)\n\n # For naive datetime, utctimetuple == timetuple except for isdst\n d = cls(1, 2, 3, 10, 20, 30, 40)\n t = d.utctimetuple()\n self.assertEqual(t[:-1], d.timetuple()[:-1])\n self.assertEqual(0, t.tm_isdst)\n # Same if utcoffset is None\n class NOFS(DST):\n def utcoffset(self, dt):\n return None\n d = cls(1, 2, 3, 10, 20, 30, 40, tzinfo=NOFS())\n t = d.utctimetuple()\n self.assertEqual(t[:-1], d.timetuple()[:-1])\n self.assertEqual(0, t.tm_isdst)\n # Check that bad tzinfo is detected\n class BOFS(DST):\n def utcoffset(self, dt):\n return "EST"\n d = cls(1, 2, 3, 10, 20, 30, 40, tzinfo=BOFS())\n self.assertRaises(TypeError, d.utctimetuple)\n\n # Check that utctimetuple() is the same as\n # astimezone(utc).timetuple()\n d = cls(2010, 11, 13, 14, 15, 16, 171819)\n for tz in [timezone.min, timezone.utc, timezone.max]:\n dtz = d.replace(tzinfo=tz)\n self.assertEqual(dtz.utctimetuple()[:-1],\n dtz.astimezone(timezone.utc).timetuple()[:-1])\n # At the edges, UTC adjustment can produce years out-of-range\n # for a datetime object. Ensure that an OverflowError is\n # raised.\n tiny = cls(MINYEAR, 1, 1, 0, 0, 37, tzinfo=UOFS(1439))\n # That goes back 1 minute less than a full day.\n self.assertRaises(OverflowError, tiny.utctimetuple)\n\n huge = cls(MAXYEAR, 12, 31, 23, 59, 37, 999999, tzinfo=UOFS(-1439))\n # That goes forward 1 minute less than a full day.\n self.assertRaises(OverflowError, huge.utctimetuple)\n # More overflow cases\n tiny = cls.min.replace(tzinfo=timezone(MINUTE))\n self.assertRaises(OverflowError, tiny.utctimetuple)\n huge = cls.max.replace(tzinfo=timezone(-MINUTE))\n self.assertRaises(OverflowError, huge.utctimetuple)\n\n def test_tzinfo_isoformat(self):\n zero = FixedOffset(0, "+00:00")\n plus = FixedOffset(220, "+03:40")\n minus = FixedOffset(-231, "-03:51")\n unknown = FixedOffset(None, "")\n\n cls = self.theclass\n datestr = \'0001-02-03\'\n for ofs in None, zero, plus, minus, unknown:\n for us in 0, 987001:\n d = cls(1, 2, 3, 4, 5, 59, us, tzinfo=ofs)\n timestr = \'04:05:59\' + (us and \'.987001\' or \'\')\n ofsstr = ofs is not None and d.tzname() or \'\'\n tailstr = timestr + ofsstr\n iso = d.isoformat()\n self.assertEqual(iso, datestr + \'T\' + tailstr)\n self.assertEqual(iso, d.isoformat(\'T\'))\n self.assertEqual(d.isoformat(\'k\'), datestr + \'k\' + tailstr)\n self.assertEqual(d.isoformat(\'\\u1234\'), datestr + \'\\u1234\' + tailstr)\n self.assertEqual(str(d), datestr + \' \' + tailstr)\n\n def test_replace(self):\n cls = self.theclass\n z100 = FixedOffset(100, "+100")\n zm200 = FixedOffset(timedelta(minutes=-200), "-200")\n args = [1, 2, 3, 4, 5, 6, 7, z100]\n base = cls(*args)\n self.assertEqual(base.replace(), base)\n self.assertEqual(copy.replace(base), base)\n\n changes = (("year", 2),\n ("month", 3),\n ("day", 4),\n ("hour", 5),\n ("minute", 6),\n ("second", 7),\n ("microsecond", 8),\n ("tzinfo", zm200))\n for i, (name, newval) in enumerate(changes):\n newargs = args[:]\n newargs[i] = newval\n expected = cls(*newargs)\n self.assertEqual(base.replace(** o oace(minute=3)\n d1 = base.replace(minute=9)\n d2 = base.replace(minute=11)\n for x in d0, d1, d2:\n for y in d0, d1, d2:\n got = x - y\n expected = timedelta(minutes=x.minute - y.minute)\n self.assertEqual(got, expected)\n\n # OTOH, if the tzinfo members are distinct, utcoffsets aren\'t\n # ignored.\n base = cls(8, 9, 10, 11, 12, 13, 14)\n d0 = base.replace(minute=3, tzinfo=OperandDependentOffset())\n d1 = base.replace(minute=9, tzinfo=OperandDependentOffset())\n d2 = base.replace(minute=11, tzinfo=OperandDependentOffset())\n for x in d0, d1, d2:\n for y in d0, d1, d2:\n got = x - y\n if (x is d0 or x is d1) and (y is d0 or y is d1):\n expected = timedelta(0)\n elif x is y is d2:\n expected = timedelta(0)\n elif x is d2:\n expected = timedelta(minutes=(11-59)-0)\n else:\n assert y is d2\n expected = timedelta(minutes=0-(11-59))\n self.assertEqual(got, expected)\n\n def test_mixed_compare(self):\n t1 = datetime(1, 2, 3, 4, 5, 6, 7)\n t2 = datetime(1, 2, 3, 4, 5, 6, 7)\n self.assertEqual(t1, t2)\n t2 = t2.replace(tzinfo=None)\n self.assertEqual(t1, t2)\n t2 = t2.replace(tzinfo=FixedOffset(None, ""))\n self.assertEqual(t1, t2)\n t2 = t2.replace(tzinfo=FixedOffset(0, ""))\n self.assertNotEqual(t1, t2)\n\n # In datetime w/ identical tzinfo objects, utcoffset is ignored.\n class Varies(tzinfo):\n def __init__(self):\n self.offset = timedelta(minutes=22)\n def utcoffset(self, t):\n self.offset += timedelta(minutes=1)\n return self.offset\n\n v = Varies()\n t1 = t2.replace(tzinfo=v)\n t2 = t2.replace(tzinfo=v)\n self.assertEqual(t1.utcoffset(), timedelta(minutes=23))\n self.assertEqual(t2.utcoffset(), timedelta(minutes=24))\n self.assertEqual(t1, t2)\n\n # But if they\'re not identical, it isn\'t ignored.\n t2 = t2.replace(tzinfo=Varies())\n self.assertTrue(t1 < t2) # t1\'s offset counter still going up\n\n def test_subclass_datetimetz(self):\n\n class C(self.theclass):\n theAnswer = 42\n\n def __new__(cls, *args, **kws):\n temp = kws.copy()\n extra = temp.pop(\'extra\')\n result = self.theclass.__new__(cls, *args, **temp)\n result.extra = extra\n return result\n\n def newmeth(self, start):\n return start + self.hour + self.year\n\n args = 2002, 12, 31, 4, 5, 6, 500, FixedOffset(-300, "EST", 1)\n\n dt1 = self.theclass(*args)\n dt2 = C(*args, **{\'extra\': 7})\n\n self.assertEqual(dt2.__class__, C)\n self.assertEqual(dt2.theAnswer, 42)\n self.assertEqual(dt2.extra, 7)\n self.assertEqual(dt1.utcoffset(), dt2.utcoffset())\n self.assertEqual(dt2.newmeth(-7), dt1.hour + dt1.year - 7)\n\n# Pain to set up DST-aware tzinfo classes.\n\ndef first_sunday_on_or_after(dt):\n days_to_go = 6 - dt.weekday()\n if days_to_go:\n dt += timedelta(days_to_go)\n return dt\n\nZERO = timedelta(0)\nMINUTE = timedelta(minutes=1)\nHOUR = timedelta(hours=1)\nDAY = timedelta(days=1)\n# In the US, DST starts at 2am (standard time) on the first Sunday in April.\nDSTSTART = datetime(1, 4, 1, 2)\n# and ends at 2am (DST time; 1am standard time) on the last Sunday of Oct,\n# which is the first Sunday on or after Oct 25. Because we view 1:MM as\n# being standard time on that day, there is no spelling in local time of\n# the last hour of DST (that\'s 1:MM DST, but 1:MM is taken as standard time).\nDSTEND = datetime(1, 10, 25, 1)\n\nclass USTimeZone(tzinfo):\n\n def __init__(self, hours, reprname, stdname, dstname):\n self.stdoffse o ote() == dstoff.date() and dt.hour == 0:\n # We\'re in the hour before the last DST hour. The last DST hour\n # is ineffable. We want the conversion back to repeat 1:MM.\n self.assertEqual(nexthour_tz, dt.replace(hour=1))\n nexthour_utc += HOUR\n nexthour_tz = nexthour_utc.astimezone(tz)\n self.assertEqual(nexthour_tz, dt.replace(hour=1))\n else:\n self.assertEqual(nexthour_tz - dt, HOUR)\n\n # Check a time that\'s outside DST.\n def checkoutside(self, dt, tz, utc):\n self.assertEqual(dt.dst(), ZERO)\n\n # Conversion to our own timezone is always an identity.\n self.assertEqual(dt.astimezone(tz), dt)\n\n # Converting to UTC and back is an identity too.\n asutc = dt.astimezone(utc)\n there_and_back = asutc.astimezone(tz)\n self.assertEqual(dt, there_and_back)\n\n def convert_between_tz_and_utc(self, tz, utc):\n dston = self.dston.replace(tzinfo=tz)\n # Because 1:MM on the day DST ends is taken as being standard time,\n # there is no spelling in tz for the last hour of daylight time.\n # For purposes of the test, the last hour of DST is 0:MM, which is\n # taken as being daylight time (and 1:MM is taken as being standard\n # time).\n dstoff = self.dstoff.replace(tzinfo=tz)\n for delta in (timedelta(weeks=13),\n DAY,\n HOUR,\n timedelta(minutes=1),\n timedelta(microseconds=1)):\n\n self.checkinside(dston, tz, utc, dston, dstoff)\n for during in dston + delta, dstoff - delta:\n self.checkinside(during, tz, utc, dston, dstoff)\n\n self.checkoutside(dstoff, tz, utc)\n for outside in dston - delta, dstoff + delta:\n self.checkoutside(outside, tz, utc)\n\n def test_easy(self):\n # Despite the name of this test, the endcases are excruciating.\n self.convert_between_tz_and_utc(Eastern, utc_real)\n self.convert_between_tz_and_utc(Pacific, utc_real)\n self.convert_between_tz_and_utc(Eastern, utc_fake)\n self.convert_between_tz_and_utc(Pacific, utc_fake)\n # The next is really dancing near the edge. It works because\n # Pacific and Eastern are far enough apart that their "problem\n # hours" don\'t overlap.\n self.convert_between_tz_and_utc(Eastern, Pacific)\n self.convert_between_tz_and_utc(Pacific, Eastern)\n # OTOH, these fail! Don\'t enable them. The difficulty is that\n # the edge case tests assume that every hour is representable in\n # the "utc" class. This is always true for a fixed-offset tzinfo\n # class (like utc_real and utc_fake), but not for Eastern or Central.\n # For these adjacent DST-aware time zones, the range of time offsets\n # tested ends up creating hours in the one that aren\'t representable\n # in the other. For the same reason, we would see failures in the\n # Eastern vs Pacific tests too if we added 3*HOUR to the list of\n # offset deltas in convert_between_tz_and_utc().\n #\n # self.convert_between_tz_and_utc(Eastern, Central) # can\'t work\n # self.convert_between_tz_and_utc(Central, Eastern) # can\'t work\n\n def test_tricky(self):\n # 22:00 on day before daylight starts.\n fourback = self.dston - timedelta(hours=4)\n ninewest = FixedOffset(-9*60, "-0900", 0)\n fourback = fourback.replace(tzinfo=ninewest)\n # 22:00-0900 is 7:00 UTC == 2:00 EST == 3:00 DST. Since it\'s "after\n # 2", we should get the 3 spelling.\n # If we plug 22:00 the day before into Eastern, it "looks like std\n # time", so its offset is returned as -5, and -5 - -9 = 4. Adding 4\n # to 22:00 lands on 2:00, which makes no sense in local time (the\n # local clock jumps from 1 to 3). The point here is to make sure we\n # get the 3 spelling.\n o owall in 23, 0, 1, 3, 4, 5:\n expected = start.replace(hour=wall)\n if wall == 23:\n expected -= timedelta(days=1)\n got = Eastern.fromutc(start)\n self.assertEqual(expected, got)\n\n expected = fstart + FEastern.stdoffset\n got = FEastern.fromutc(fstart)\n self.assertEqual(expected, got)\n\n # Ensure astimezone() calls fromutc() too.\n got = fstart.replace(tzinfo=utc_real).astimezone(FEastern)\n self.assertEqual(expected, got)\n\n start += HOUR\n fstart += HOUR\n\n # Check around DST end.\n start = self.dstoff.replace(hour=4, tzinfo=Eastern)\n fstart = start.replace(tzinfo=FEastern)\n for wall in 0, 1, 1, 2, 3, 4:\n expected = start.replace(hour=wall)\n got = Eastern.fromutc(start)\n self.assertEqual(expected, got)\n\n expected = fstart + FEastern.stdoffset\n got = FEastern.fromutc(fstart)\n self.assertEqual(expected, got)\n\n # Ensure astimezone() calls fromutc() too.\n got = fstart.replace(tzinfo=utc_real).astimezone(FEastern)\n self.assertEqual(expected, got)\n\n start += HOUR\n fstart += HOUR\n\n\n#############################################################################\n# oddballs\n\nclass Oddballs(unittest.TestCase):\n\n def test_date_datetime_comparison(self):\n # bpo-1028306, bpo-5516 (gh-49766)\n # Trying to compare a date to a datetime should act like a mixed-\n # type comparison, despite that datetime is a subclass of date.\n as_date = date.today()\n as_datetime = datetime.combine(as_date, time())\n date_sc = SubclassDate(as_date.year, as_date.month, as_date.day)\n datetime_sc = SubclassDatetime(as_date.year, as_date.month,\n as_date.day, 0, 0, 0)\n for d in (as_date, date_sc):\n for dt in (as_datetime, datetime_sc):\n for x, y in (d, dt), (dt, d):\n self.assertTrue(x != y)\n self.assertFalse(x == y)\n self.assertRaises(TypeError, lambda: x < y)\n self.assertRaises(TypeError, lambda: x <= y)\n self.assertRaises(TypeError, lambda: x > y)\n self.assertRaises(TypeError, lambda: x >= y)\n\n # And date should compare with other subclasses of date. If a\n # subclass wants to stop this, it\'s up to the subclass to do so.\n # Ditto for datetimes.\n for x, y in ((as_date, date_sc),\n (date_sc, as_date),\n (as_datetime, datetime_sc),\n (datetime_sc, as_datetime)):\n self.assertTrue(x == y)\n self.assertFalse(x != y)\n self.assertFalse(x < y)\n self.assertFalse(x > y)\n self.assertTrue(x <= y)\n self.assertTrue(x >= y)\n\n # Nevertheless, comparison should work if other object is an instance\n # of date or datetime class with overridden comparison operators.\n # So special methods should return NotImplemented, as if\n # date and datetime were independent classes.\n for x, y in (as_date, as_datetime), (as_datetime, as_date):\n self.assertEqual(x.__eq__(y), NotImplemented)\n self.assertEqual(x.__ne__(y), NotImplemented)\n self.assertEqual(x.__lt__(y), NotImplemented)\n self.assertEqual(x.__gt__(y), NotImplemented)\n self.assertEqual(x.__gt__(y), NotImplemented)\n self.assertEqual(x.__ge__(y), NotImplemented)\n\n def test_extra_attributes(self):\n with self.assertWarns(DeprecationWarning):\n utcnow = datetime.utcnow()\n for x in [date.today(),\n time(),\n utcnow,\n timedelta(),\n tzinfo(),\n timezone(timedelta())]:\n with s o o HOUR if dt.fold else ZERO\n else:\n # DST is off.\n return ZERO\n\nEastern2 = USTimeZone2(-5, "Eastern2", "EST", "EDT")\nCentral2 = USTimeZone2(-6, "Central2", "CST", "CDT")\nMountain2 = USTimeZone2(-7, "Mountain2", "MST", "MDT")\nPacific2 = USTimeZone2(-8, "Pacific2", "PST", "PDT")\n\n# Europe_Vilnius_1941 tzinfo implementation reproduces the following\n# 1941 transition from Olson\'s tzdist:\n#\n# Zone NAME GMTOFF RULES FORMAT [UNTIL]\n# ZoneEurope/Vilnius 1:00 - CET 1940 Aug 3\n# 3:00 - MSK 1941 Jun 24\n# 1:00 C-Eur CE%sT 1944 Aug\n#\n# $ zdump -v Europe/Vilnius | grep 1941\n# Europe/Vilnius Mon Jun 23 20:59:59 1941 UTC = Mon Jun 23 23:59:59 1941 MSK isdst=0 gmtoff=10800\n# Europe/Vilnius Mon Jun 23 21:00:00 1941 UTC = Mon Jun 23 23:00:00 1941 CEST isdst=1 gmtoff=7200\n\nclass Europe_Vilnius_1941(tzinfo):\n def _utc_fold(self):\n return [datetime(1941, 6, 23, 21, tzinfo=self), # Mon Jun 23 21:00:00 1941 UTC\n datetime(1941, 6, 23, 22, tzinfo=self)] # Mon Jun 23 22:00:00 1941 UTC\n\n def _loc_fold(self):\n return [datetime(1941, 6, 23, 23, tzinfo=self), # Mon Jun 23 23:00:00 1941 MSK / CEST\n datetime(1941, 6, 24, 0, tzinfo=self)] # Mon Jun 24 00:00:00 1941 CEST\n\n def utcoffset(self, dt):\n fold_start, fold_stop = self._loc_fold()\n if dt < fold_start:\n return 3 * HOUR\n if dt < fold_stop:\n return (2 if dt.fold else 3) * HOUR\n # if dt >= fold_stop\n return 2 * HOUR\n\n def dst(self, dt):\n fold_start, fold_stop = self._loc_fold()\n if dt < fold_start:\n return 0 * HOUR\n if dt < fold_stop:\n return (1 if dt.fold else 0) * HOUR\n # if dt >= fold_stop\n return 1 * HOUR\n\n def tzname(self, dt):\n fold_start, fold_stop = self._loc_fold()\n if dt < fold_start:\n return \'MSK\'\n if dt < fold_stop:\n return (\'MSK\', \'CEST\')[dt.fold]\n # if dt >= fold_stop\n return \'CEST\'\n\n def fromutc(self, dt):\n assert dt.fold == 0\n assert dt.tzinfo is self\n if dt.year != 1941:\n raise NotImplementedError\n fold_start, fold_stop = self._utc_fold()\n if dt < fold_start:\n return dt + 3 * HOUR\n if dt < fold_stop:\n return (dt + 2 * HOUR).replace(fold=1)\n # if dt >= fold_stop\n return dt + 2 * HOUR\n\n\nclass TestLocalTimeDisambiguation(unittest.TestCase):\n\n def test_vilnius_1941_fromutc(self):\n Vilnius = Europe_Vilnius_1941()\n\n gdt = datetime(1941, 6, 23, 20, 59, 59, tzinfo=timezone.utc)\n ldt = gdt.astimezone(Vilnius)\n self.assertEqual(ldt.strftime("%c %Z%z"),\n \'Mon Jun 23 23:59:59 1941 MSK+0300\')\n self.assertEqual(ldt.fold, 0)\n self.assertFalse(ldt.dst())\n\n gdt = datetime(1941, 6, 23, 21, tzinfo=timezone.utc)\n ldt = gdt.astimezone(Vilnius)\n self.assertEqual(ldt.strftime("%c %Z%z"),\n \'Mon Jun 23 23:00:00 1941 CEST+0200\')\n self.assertEqual(ldt.fold, 1)\n self.assertTrue(ldt.dst())\n\n gdt = datetime(1941, 6, 23, 22, tzinfo=timezone.utc)\n ldt = gdt.astimezone(Vilnius)\n self.assertEqual(ldt.strftime("%c %Z%z"),\n \'Tue Jun 24 00:00:00 1941 CEST+0200\')\n self.assertEqual(ldt.fold, 0)\n self.assertTrue(ldt.dst())\n\n def test_vilnius_1941_toutc(self):\n Vilnius = Europe_Vilnius_1941()\n\n ldt = datetime(1941, 6, 23, 22, 59, 59, tzinfo=Vilnius)\n gdt = ldt.astimezone(timezone.utc)\n self.assertEqual(gdt.strftime("%c %Z"),\n \'Mon Jun 23 19:59:59 1941 UTC\')\n\n ldt = datetime(1941, 6, 23, 23, 59, 59, tzinfo=Vilnius)\n gdt = ldt.astimezone(timezone.utc)\n self.assertEqual(gdt.strftime("%c %Z"),\n o odatetime(2015, 4, 5, 1, 45)\n s0 = t.replace(fold=0).timestamp()\n s1 = t.replace(fold=1).timestamp()\n self.assertEqual(s0 + 1800, s1)\n\n @support.run_with_tz(\'EST+05EDT,M3.2.0,M11.1.0\')\n def test_astimezone(self):\n dt0 = datetime(2014, 11, 2, 1, 30)\n dt1 = dt0.replace(fold=1)\n # Convert both naive instances to aware.\n adt0 = dt0.astimezone()\n adt1 = dt1.astimezone()\n # Check that the first instance in DST zone and the second in STD\n self.assertEqual(adt0.tzname(), \'EDT\')\n self.assertEqual(adt1.tzname(), \'EST\')\n self.assertEqual(adt0 + HOUR, adt1)\n # Aware instances with fixed offset tzinfo\'s always have fold=0\n self.assertEqual(adt0.fold, 0)\n self.assertEqual(adt1.fold, 0)\n\n def test_pickle_fold(self):\n t = time(fold=1)\n dt = datetime(1, 1, 1, fold=1)\n for pickler, unpickler, proto in pickle_choices:\n for x in [t, dt]:\n s = pickler.dumps(x, proto)\n y = unpickler.loads(s)\n self.assertEqual(x, y)\n self.assertEqual((0 if proto < 4 else x.fold), y.fold)\n\n def test_repr(self):\n t = time(fold=1)\n dt = datetime(1, 1, 1, fold=1)\n self.assertEqual(repr(t), \'datetime.time(0, 0, fold=1)\')\n self.assertEqual(repr(dt),\n \'datetime.datetime(1, 1, 1, 0, 0, fold=1)\')\n\n def test_dst(self):\n # Let\'s first establish that things work in regular times.\n dt_summer = datetime(2002, 10, 27, 1, tzinfo=Eastern2) - timedelta.resolution\n dt_winter = datetime(2002, 10, 27, 2, tzinfo=Eastern2)\n self.assertEqual(dt_summer.dst(), HOUR)\n self.assertEqual(dt_winter.dst(), ZERO)\n # The disambiguation flag is ignored\n self.assertEqual(dt_summer.replace(fold=1).dst(), HOUR)\n self.assertEqual(dt_winter.replace(fold=1).dst(), ZERO)\n\n # Pick local time in the fold.\n for minute in [0, 30, 59]:\n dt = datetime(2002, 10, 27, 1, minute, tzinfo=Eastern2)\n # With fold=0 (the default) it is in DST.\n self.assertEqual(dt.dst(), HOUR)\n # With fold=1 it is in STD.\n self.assertEqual(dt.replace(fold=1).dst(), ZERO)\n\n # Pick local time in the gap.\n for minute in [0, 30, 59]:\n dt = datetime(2002, 4, 7, 2, minute, tzinfo=Eastern2)\n # With fold=0 (the default) it is in STD.\n self.assertEqual(dt.dst(), ZERO)\n # With fold=1 it is in DST.\n self.assertEqual(dt.replace(fold=1).dst(), HOUR)\n\n\n def test_utcoffset(self):\n # Let\'s first establish that things work in regular times.\n dt_summer = datetime(2002, 10, 27, 1, tzinfo=Eastern2) - timedelta.resolution\n dt_winter = datetime(2002, 10, 27, 2, tzinfo=Eastern2)\n self.assertEqual(dt_summer.utcoffset(), -4 * HOUR)\n self.assertEqual(dt_winter.utcoffset(), -5 * HOUR)\n # The disambiguation flag is ignored\n self.assertEqual(dt_summer.replace(fold=1).utcoffset(), -4 * HOUR)\n self.assertEqual(dt_winter.replace(fold=1).utcoffset(), -5 * HOUR)\n\n def test_fromutc(self):\n # Let\'s first establish that things work in regular times.\n u_summer = datetime(2002, 10, 27, 6, tzinfo=Eastern2) - timedelta.resolution\n u_winter = datetime(2002, 10, 27, 7, tzinfo=Eastern2)\n t_summer = Eastern2.fromutc(u_summer)\n t_winter = Eastern2.fromutc(u_winter)\n self.assertEqual(t_summer, u_summer - 4 * HOUR)\n self.assertEqual(t_winter, u_winter - 5 * HOUR)\n self.assertEqual(t_summer.fold, 0)\n self.assertEqual(t_winter.fold, 0)\n\n # What happens in the fall-back fold?\n u = datetime(2002, 10, 27, 5, 30, tzinfo=Eastern2)\n t0 = Eastern2.fromutc(u)\n u += HOUR\n t1 = Eastern2.fromutc(u)\n self.assertEqual(t0, t1)\n self.assertEqual(t0.fold, 0)\n self.as o o"""\n\n if not isinstance(dt, datetime):\n raise TypeError("fromutc() requires a datetime argument")\n if dt.tzinfo is not self:\n raise ValueError("dt.tzinfo is not self")\n\n timestamp = ((dt.toordinal() - self.EPOCHORDINAL) * 86400\n + dt.hour * 3600\n + dt.minute * 60\n + dt.second)\n\n if timestamp < self.ut[1]:\n tti = self.ti[0]\n fold = 0\n else:\n idx = bisect.bisect_right(self.ut, timestamp)\n assert self.ut[idx-1] <= timestamp\n assert idx == len(self.ut) or timestamp < self.ut[idx]\n tti_prev, tti = self.ti[idx-2:idx]\n # Detect fold\n shift = tti_prev[0] - tti[0]\n fold = (shift > timedelta(0, timestamp - self.ut[idx-1]))\n dt += tti[0]\n if fold:\n return dt.replace(fold=1)\n else:\n return dt\n\n def _find_ti(self, dt, i):\n timestamp = ((dt.toordinal() - self.EPOCHORDINAL) * 86400\n + dt.hour * 3600\n + dt.minute * 60\n + dt.second)\n lt = self.lt[dt.fold]\n idx = bisect.bisect_right(lt, timestamp)\n\n return self.ti[max(0, idx - 1)][i]\n\n def utcoffset(self, dt):\n return self._find_ti(dt, 0)\n\n def dst(self, dt):\n isdst = self._find_ti(dt, 1)\n # XXX: We cannot accurately determine the "save" value,\n # so let\'s return 1h whenever DST is in effect. Since\n # we don\'t use dst() in fromutc(), it is unlikely that\n # it will be needed for anything more than bool(dst()).\n return ZERO if isdst else HOUR\n\n def tzname(self, dt):\n return self._find_ti(dt, 2)\n\n @classmethod\n def zonenames(cls, zonedir=None):\n if zonedir is None:\n zonedir = cls.zoneroot\n zone_tab = os.path.join(zonedir, \'zone.tab\')\n try:\n f = open(zone_tab)\n except OSError:\n return\n with f:\n for line in f:\n line = line.strip()\n if line and not line.startswith(\'#\'):\n yield line.split()[2]\n\n @classmethod\n def stats(cls, start_year=1):\n count = gap_count = fold_count = zeros_count = 0\n min_gap = min_fold = timedelta.max\n max_gap = max_fold = ZERO\n min_gap_datetime = max_gap_datetime = datetime.min\n min_gap_zone = max_gap_zone = None\n min_fold_datetime = max_fold_datetime = datetime.min\n min_fold_zone = max_fold_zone = None\n stats_since = datetime(start_year, 1, 1) # Starting from 1970 eliminates a lot of noise\n for zonename in cls.zonenames():\n count += 1\n tz = cls.fromname(zonename)\n for dt, shift in tz.transitions():\n if dt < stats_since:\n continue\n if shift > ZERO:\n gap_count += 1\n if (shift, dt) > (max_gap, max_gap_datetime):\n max_gap = shift\n max_gap_zone = zonename\n max_gap_datetime = dt\n if (shift, datetime.max - dt) < (min_gap, datetime.max - min_gap_datetime):\n min_gap = shift\n min_gap_zone = zonename\n min_gap_datetime = dt\n elif shift < ZERO:\n fold_count += 1\n shift = -shift\n if (shift, dt) > (max_fold, max_fold_datetime):\n max_fold = shift\n max_fold_zone = zonename\n max_fold_datetime = dt\n if (shift, datetime.max - dt) < (min_fold, datetime.max - min_fold_datetime):\n min_fold = shift\n min_fold_zone = zonename\n min_fold_datetime = dt\n else:\n zeros_count += 1\ o o udt.replace(tzinfo=timezone.utc).astimezone(tz)\n self.assertEquivDatetimes(adt, ldt)\n utcoffset = ldt.utcoffset()\n self.assertEqual(ldt.replace(tzinfo=None), udt.replace(tzinfo=None) + utcoffset)\n # Create a local time inside the gap\n ldt = tz.fromutc(dt.replace(tzinfo=tz)) - shift + x\n self.assertLess(ldt.replace(fold=1).utcoffset(),\n ldt.replace(fold=0).utcoffset(),\n "At %s." % ldt)\n\n for x in [-timedelta.resolution, shift]:\n udt = dt + x\n ldt = tz.fromutc(udt.replace(tzinfo=tz))\n self.assertEqual(ldt.fold, 0)\n\n @classmethod\n @contextlib.contextmanager\n def _change_tz(cls, new_tzinfo):\n try:\n with os_helper.EnvironmentVarGuard() as env:\n env["TZ"] = new_tzinfo\n _time.tzset()\n yield\n finally:\n _time.tzset()\n\n @unittest.skipUnless(\n hasattr(_time, "tzset"), "time module has no attribute tzset"\n )\n def test_system_transitions(self):\n if (\'Riyadh8\' in self.zonename or\n # From tzdata NEWS file:\n # The files solar87, solar88, and solar89 are no longer distributed.\n # They were a negative experiment - that is, a demonstration that\n # tz data can represent solar time only with some difficulty and error.\n # Their presence in the distribution caused confusion, as Riyadh\n # civil time was generally not solar time in those years.\n self.zonename.startswith(\'right/\')):\n self.skipTest("Skipping %s" % self.zonename)\n tz = self.tz\n with self._change_tz(self.zonename):\n for udt, shift in tz.transitions():\n if udt.year >= 2037:\n # System support for times around the end of 32-bit time_t\n # and later is flaky on many systems.\n break\n s0 = (udt - datetime(1970, 1, 1)) // SEC\n ss = shift // SEC # shift seconds\n for x in [-40 * 3600, -20 * 3600, -1, 0,\n ss - 1, ss + 20 * 3600, ss + 40 * 3600]:\n s = s0 + x\n sdt = datetime.fromtimestamp(s)\n tzdt = datetime.fromtimestamp(s, tz).replace(tzinfo=None)\n self.assertEquivDatetimes(sdt, tzdt)\n s1 = sdt.timestamp()\n self.assertEqual(s, s1)\n if ss > 0: # gap\n # Create local time inside the gap\n dt = datetime.fromtimestamp(s0) - shift / 2\n ts0 = dt.timestamp()\n ts1 = dt.replace(fold=1).timestamp()\n self.assertEqual(ts0, s0 + ss / 2)\n self.assertEqual(ts1, s0 - ss / 2)\n # gh-83861\n utc0 = dt.astimezone(timezone.utc)\n utc1 = dt.replace(fold=1).astimezone(timezone.utc)\n self.assertEqual(utc0, utc1 + timedelta(0, ss))\n\n\nclass ZoneInfoCompleteTest(unittest.TestSuite):\n def __init__(self):\n tests = []\n if is_resource_enabled(\'tzdata\'):\n for name in ZoneInfo.zonenames():\n Test = type(\'ZoneInfoTest[%s]\' % name, (ZoneInfoTest,), {})\n Test.zonename = name\n for method in dir(Test):\n if method.startswith(\'test_\'):\n tests.append(Test(method))\n super().__init__(tests)\n\n# Iran had a sub-minute UTC offset before 1946.\nclass IranTest(ZoneInfoTest):\n zonename = \'Asia/Tehran\'\n\n\n@unittest.skipIf(_testcapi is None, \'need _testcapi module\')\nclass CapiTest(unittest.TestCase):\n def setUp(self):\n # Since the C API is not present in the _Pure tests, skip all tests\n if self.__class__.__name__.endswith(\ o ocond)\n self.assertIs(tzinfo, d.tzinfo)\n\n def test_timezones_offset_zero(self):\n utc0, utc1, non_utc = _testcapi.get_timezones_offset_zero()\n\n with self.subTest(testname="utc0"):\n self.assertIs(utc0, timezone.utc)\n\n with self.subTest(testname="utc1"):\n self.assertIs(utc1, timezone.utc)\n\n with self.subTest(testname="non_utc"):\n self.assertIsNot(non_utc, timezone.utc)\n\n non_utc_exp = timezone(timedelta(hours=0), "")\n\n self.assertEqual(non_utc, non_utc_exp)\n\n dt1 = datetime(2000, 2, 4, tzinfo=non_utc)\n dt2 = datetime(2000, 2, 4, tzinfo=non_utc_exp)\n\n self.assertEqual(dt1, dt2)\n self.assertEqual(dt1.tzname(), dt2.tzname())\n\n def test_check_date(self):\n class DateSubclass(date):\n pass\n\n d = date(2011, 1, 1)\n ds = DateSubclass(2011, 1, 1)\n dt = datetime(2011, 1, 1)\n\n is_date = _testcapi.datetime_check_date\n\n # Check the ones that should be valid\n self.assertTrue(is_date(d))\n self.assertTrue(is_date(dt))\n self.assertTrue(is_date(ds))\n self.assertTrue(is_date(d, True))\n\n # Check that the subclasses do not match exactly\n self.assertFalse(is_date(dt, True))\n self.assertFalse(is_date(ds, True))\n\n # Check that various other things are not dates at all\n args = [tuple(), list(), 1, \'2011-01-01\',\n timedelta(1), timezone.utc, time(12, 00)]\n for arg in args:\n for exact in (True, False):\n with self.subTest(arg=arg, exact=exact):\n self.assertFalse(is_date(arg, exact))\n\n def test_check_time(self):\n class TimeSubclass(time):\n pass\n\n t = time(12, 30)\n ts = TimeSubclass(12, 30)\n\n is_time = _testcapi.datetime_check_time\n\n # Check the ones that should be valid\n self.assertTrue(is_time(t))\n self.assertTrue(is_time(ts))\n self.assertTrue(is_time(t, True))\n\n # Check that the subclass does not match exactly\n self.assertFalse(is_time(ts, True))\n\n # Check that various other things are not times\n args = [tuple(), list(), 1, \'2011-01-01\',\n timedelta(1), timezone.utc, date(2011, 1, 1)]\n\n for arg in args:\n for exact in (True, False):\n with self.subTest(arg=arg, exact=exact):\n self.assertFalse(is_time(arg, exact))\n\n def test_check_datetime(self):\n class DateTimeSubclass(datetime):\n pass\n\n dt = datetime(2011, 1, 1, 12, 30)\n dts = DateTimeSubclass(2011, 1, 1, 12, 30)\n\n is_datetime = _testcapi.datetime_check_datetime\n\n # Check the ones that should be valid\n self.assertTrue(is_datetime(dt))\n self.assertTrue(is_datetime(dts))\n self.assertTrue(is_datetime(dt, True))\n\n # Check that the subclass does not match exactly\n self.assertFalse(is_datetime(dts, True))\n\n # Check that various other things are not datetimes\n args = [tuple(), list(), 1, \'2011-01-01\',\n timedelta(1), timezone.utc, date(2011, 1, 1)]\n\n for arg in args:\n for exact in (True, False):\n with self.subTest(arg=arg, exact=exact):\n self.assertFalse(is_datetime(arg, exact))\n\n def test_check_delta(self):\n class TimeDeltaSubclass(timedelta):\n pass\n\n td = timedelta(1)\n tds = TimeDeltaSubclass(1)\n\n is_timedelta = _testcapi.datetime_check_delta\n\n # Check the ones that should be valid\n self.assertTrue(is_timedelta(td))\n self.assertTrue(is_timedelta(tds))\n self.assertTrue(is_timedelta(td, True))\n\n # Check that the subclass does not match exactly\n self.assertFalse(is_timedelta(tds, True))\n\n # Check that various other things are not timedeltas\n o on exp_time.fold)\n\n self.assertEqual(c_api_time, exp_time)\n self.assertEqual(c_api_time.fold, exp_time.fold)\n\n def test_delta_from_dsu(self):\n exp_delta = timedelta(26, 55, 99999)\n\n for macro in False, True:\n with self.subTest(macro=macro):\n c_api_delta = _testcapi.get_delta_fromdsu(\n macro,\n exp_delta.days,\n exp_delta.seconds,\n exp_delta.microseconds)\n\n self.assertEqual(c_api_delta, exp_delta)\n\n def test_date_from_timestamp(self):\n ts = datetime(1995, 4, 12).timestamp()\n\n for macro in False, True:\n with self.subTest(macro=macro):\n d = _testcapi.get_date_fromtimestamp(int(ts), macro)\n\n self.assertEqual(d, date(1995, 4, 12))\n\n def test_datetime_from_timestamp(self):\n cases = [\n ((1995, 4, 12), None, False),\n ((1995, 4, 12), None, True),\n ((1995, 4, 12), timezone(timedelta(hours=1)), True),\n ((1995, 4, 12, 14, 30), None, False),\n ((1995, 4, 12, 14, 30), None, True),\n ((1995, 4, 12, 14, 30), timezone(timedelta(hours=1)), True),\n ]\n\n from_timestamp = _testcapi.get_datetime_fromtimestamp\n for case in cases:\n for macro in False, True:\n with self.subTest(case=case, macro=macro):\n dtup, tzinfo, usetz = case\n dt_orig = datetime(*dtup, tzinfo=tzinfo)\n ts = int(dt_orig.timestamp())\n\n dt_rt = from_timestamp(ts, tzinfo, usetz, macro)\n\n self.assertEqual(dt_orig, dt_rt)\n\n def test_type_check_in_subinterp(self):\n # iOS requires the use of the custom framework loader,\n # not the ExtensionFileLoader.\n if sys.platform == "ios":\n extension_loader = "AppleFrameworkLoader"\n else:\n extension_loader = "ExtensionFileLoader"\n\n script = textwrap.dedent(f"""\n if {_interpreters is None}:\n import _testcapi as module\n module.test_datetime_capi()\n else:\n import importlib.machinery\n import importlib.util\n fullname = \'_testcapi_datetime\'\n origin = importlib.util.find_spec(\'_testcapi\').origin\n loader = importlib.machinery.{extension_loader}(fullname, origin)\n spec = importlib.util.spec_from_loader(fullname, loader)\n module = importlib.util.module_from_spec(spec)\n spec.loader.exec_module(module)\n\n def run(type_checker, obj):\n if not type_checker(obj, True):\n raise TypeError(f\'{{type(obj)}} is not C API type\')\n\n import _datetime\n run(module.datetime_check_date, _datetime.date.today())\n run(module.datetime_check_datetime, _datetime.datetime.now())\n run(module.datetime_check_time, _datetime.time(12, 30))\n run(module.datetime_check_delta, _datetime.timedelta(1))\n run(module.datetime_check_tzinfo, _datetime.tzinfo())\n """)\n if _interpreters is None:\n ret = support.run_in_subinterp(script)\n self.assertEqual(ret, 0)\n else:\n for name in (\'isolated\', \'legacy\'):\n with self.subTest(name):\n config = _interpreters.new_config(name).__dict__\n ret = support.run_in_subinterp_with_config(script, **config)\n self.assertEqual(ret, 0)\n\n\nclass ExtensionModuleTests(unittest.TestCase):\n\n def setUp(self):\n if self.__class__.__name__.endswith(\'Pure\'):\n self.skipTest(\'Not relevant in pure Python\')\n\n @support.cpython_only\n def test_gh_120161(self):\n with self.subTest(\'simple\'):\n script = te otwrap.dedent("""\n import datetime\n from _ast import Tuple\n f = lambda: None\n Tuple.dims = property(f, f)\n\n class tzutc(datetime.tzinfo):\n pass\n """)\n script_helper.assert_python_ok(\'-c\', script)\n\n with self.subTest(\'complex\'):\n script = textwrap.dedent("""\n import asyncio\n import datetime\n from typing import Type\n\n class tzutc(datetime.tzinfo):\n pass\n _EPOCHTZ = datetime.datetime(1970, 1, 1, tzinfo=tzutc())\n\n class FakeDateMeta(type):\n def __instancecheck__(self, obj):\n return True\n class FakeDate(datetime.date, metaclass=FakeDateMeta):\n pass\n def pickle_fake_date(datetime_) -> Type[FakeDate]:\n # A pickle function for FakeDate\n return FakeDate\n """)\n script_helper.assert_python_ok(\'-c\', script)\n\n def test_update_type_cache(self):\n # gh-120782\n script = textwrap.dedent("""\n import sys\n for i in range(5):\n import _datetime\n assert _datetime.date.max > _datetime.date.min\n assert _datetime.time.max > _datetime.time.min\n assert _datetime.datetime.max > _datetime.datetime.min\n assert _datetime.timedelta.max > _datetime.timedelta.min\n assert _datetime.date.__dict__["min"] is _datetime.date.min\n assert _datetime.date.__dict__["max"] is _datetime.date.max\n assert _datetime.date.__dict__["resolution"] is _datetime.date.resolution\n assert _datetime.time.__dict__["min"] is _datetime.time.min\n assert _datetime.time.__dict__["max"] is _datetime.time.max\n assert _datetime.time.__dict__["resolution"] is _datetime.time.resolution\n assert _datetime.datetime.__dict__["min"] is _datetime.datetime.min\n assert _datetime.datetime.__dict__["max"] is _datetime.datetime.max\n assert _datetime.datetime.__dict__["resolution"] is _datetime.datetime.resolution\n assert _datetime.timedelta.__dict__["min"] is _datetime.timedelta.min\n assert _datetime.timedelta.__dict__["max"] is _datetime.timedelta.max\n assert _datetime.timedelta.__dict__["resolution"] is _datetime.timedelta.resolution\n assert _datetime.timezone.__dict__["min"] is _datetime.timezone.min\n assert _datetime.timezone.__dict__["max"] is _datetime.timezone.max\n assert _datetime.timezone.__dict__["utc"] is _datetime.timezone.utc\n assert isinstance(_datetime.timezone.min, _datetime.tzinfo)\n assert isinstance(_datetime.timezone.max, _datetime.tzinfo)\n assert isinstance(_datetime.timezone.utc, _datetime.tzinfo)\n del sys.modules[\'_datetime\']\n """)\n script_helper.assert_python_ok(\'-c\', script)\n\n\ndef load_tests(loader, standard_tests, pattern):\n standard_tests.addTest(ZoneInfoCompleteTest())\n return standard_tests\n\n\nif __name__ == "__main__":\n unittest.main()\n', ast_parse_kwargs={}, filename=PosixPath('/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/datetimetester.py')) ... ERROR o test_files (test.test_unparse.DirectoryTestCase.test_files) (code1='# tests common to dict and UserDict\nimport unittest\nimport collections\nfrom test import support\n\n\nclass BasicTestMappingProtocol(unittest.TestCase):\n # This base class can be used to check that an object conforms to the\n # mapping protocol\n\n # Functions that can be useful to override to adapt to dictionary\n # semantics\n type2test = None # which class is being tested (overwrite in subclasses)\n\n def _reference(self):\n """Return a dictionary of values which are invariant by storage\n in the object under test."""\n return {"1": "2", "key1":"value1", "key2":(1,2,3)}\n def _empty_mapping(self):\n """Return an empty mapping object"""\n return self.type2test()\n def _full_mapping(self, data):\n """Return a mapping object with the value contained in data\n dictionary"""\n x = self._empty_mapping()\n for key, value in data.items():\n x[key] = value\n return x\n\n def __init__(self, *args, **kw):\n unittest.TestCase.__init__(self, *args, **kw)\n self.reference = self._reference().copy()\n\n # A (key, value) pair not in the mapping\n key, value = self.reference.popitem()\n self.other = {key:value}\n\n # A (key, value) pair in the mapping\n key, value = self.reference.popitem()\n self.inmapping = {key:value}\n self.reference[key] = value\n\n def test_read(self):\n # Test for read only operations on mapping\n p = self._empty_mapping()\n p1 = dict(p) #workaround for singleton objects\n d = self._full_mapping(self.reference)\n if d is p:\n p = p1\n #Indexing\n for key, value in self.reference.items():\n self.assertEqual(d[key], value)\n knownkey = list(self.other.keys())[0]\n self.assertRaises(KeyError, lambda:d[knownkey])\n #len\n self.assertEqual(len(p), 0)\n self.assertEqual(len(d), len(self.reference))\n #__contains__\n for k in self.reference:\n self.assertIn(k, d)\n for k in self.other:\n self.assertNotIn(k, d)\n #cmp\n self.assertEqual(p, p)\n self.assertEqual(d, d)\n self.assertNotEqual(p, d)\n self.assertNotEqual(d, p)\n #bool\n if p: self.fail("Empty mapping must compare to False")\n if not d: self.fail("Full mapping must compare to True")\n # keys(), items(), iterkeys() ...\n def check_iterandlist(iter, lst, ref):\n self.assertHasAttr(iter, \'__next__\')\n self.assertHasAttr(iter, \'__iter__\')\n x = list(iter)\n self.assertTrue(set(x)==set(lst)==set(ref))\n check_iterandlist(iter(d.keys()), list(d.keys()),\n self.reference.keys())\n check_iterandlist(iter(d), list(d.keys()), self.reference.keys())\n check_iterandlist(iter(d.values()), list(d.values()),\n self.reference.values())\n check_iterandlist(iter(d.items()), list(d.items()),\n self.reference.items())\n #get\n key, value = next(iter(d.items()))\n knownkey, knownvalue = next(iter(self.other.items()))\n self.assertEqual(d.get(key, knownvalue), value)\n self.assertEqual(d.get(knownkey, knownvalue), knownvalue)\n self.assertNotIn(knownkey, d)\n\n def test_write(self):\n # Test for write operations on mapping\n p = self._empty_mapping()\n #Indexing\n for key, value in self.reference.items():\n p[key] = value\n self.assertEqual(p[key], value)\n for key in self.reference.keys():\n del p[key]\n self.assertRaises(KeyError, lambda:p[key])\n p = self._empty_mapping()\n #update\n p.update(self.reference)\n self.assertEqual(dict(p), self.reference)\n items = list(p.items())\n p = self._empty_mapping()\n o o self.i = 1\n def __iter__(self):\n return self\n def __next__(self):\n if self.i:\n self.i = 0\n return \'a\'\n raise Exc\n return BogonIter()\n def __getitem__(self, key):\n return key\n self.assertRaises(Exc, d.update, FailingUserDict())\n\n class FailingUserDict:\n def keys(self):\n class BogonIter:\n def __init__(self):\n self.i = ord(\'a\')\n def __iter__(self):\n return self\n def __next__(self):\n if self.i <= ord(\'z\'):\n rtn = chr(self.i)\n self.i += 1\n return rtn\n raise StopIteration\n return BogonIter()\n def __getitem__(self, key):\n raise Exc\n self.assertRaises(Exc, d.update, FailingUserDict())\n\n d = self._empty_mapping()\n class badseq(object):\n def __iter__(self):\n return self\n def __next__(self):\n raise Exc()\n\n self.assertRaises(Exc, d.update, badseq())\n\n self.assertRaises(ValueError, d.update, [(1, 2, 3)])\n\n # no test_fromkeys or test_copy as both os.environ and selves don\'t support it\n\n def test_get(self):\n d = self._empty_mapping()\n self.assertTrue(d.get(list(self.other.keys())[0]) is None)\n self.assertEqual(d.get(list(self.other.keys())[0], 3), 3)\n d = self.reference\n self.assertTrue(d.get(list(self.other.keys())[0]) is None)\n self.assertEqual(d.get(list(self.other.keys())[0], 3), 3)\n self.assertEqual(d.get(list(self.inmapping.keys())[0]),\n list(self.inmapping.values())[0])\n self.assertEqual(d.get(list(self.inmapping.keys())[0], 3),\n list(self.inmapping.values())[0])\n self.assertRaises(TypeError, d.get)\n self.assertRaises(TypeError, d.get, None, None, None)\n\n def test_setdefault(self):\n d = self._empty_mapping()\n self.assertRaises(TypeError, d.setdefault)\n\n def test_popitem(self):\n d = self._empty_mapping()\n self.assertRaises(KeyError, d.popitem)\n self.assertRaises(TypeError, d.popitem, 42)\n\n def test_pop(self):\n d = self._empty_mapping()\n k, v = list(self.inmapping.items())[0]\n d[k] = v\n self.assertRaises(KeyError, d.pop, list(self.other.keys())[0])\n\n self.assertEqual(d.pop(k), v)\n self.assertEqual(len(d), 0)\n\n self.assertRaises(KeyError, d.pop, k)\n\n\nclass TestMappingProtocol(BasicTestMappingProtocol):\n def test_constructor(self):\n BasicTestMappingProtocol.test_constructor(self)\n self.assertTrue(self._empty_mapping() is not self._empty_mapping())\n self.assertEqual(self.type2test(x=1, y=2), {"x": 1, "y": 2})\n\n def test_bool(self):\n BasicTestMappingProtocol.test_bool(self)\n self.assertTrue(not self._empty_mapping())\n self.assertTrue(self._full_mapping({"x": "y"}))\n self.assertTrue(bool(self._empty_mapping()) is False)\n self.assertTrue(bool(self._full_mapping({"x": "y"})) is True)\n\n def test_keys(self):\n BasicTestMappingProtocol.test_keys(self)\n d = self._empty_mapping()\n self.assertEqual(list(d.keys()), [])\n d = self._full_mapping({\'a\': 1, \'b\': 2})\n k = d.keys()\n self.assertIn(\'a\', k)\n self.assertIn(\'b\', k)\n self.assertNotIn(\'c\', k)\n\n def test_values(self):\n BasicTestMappingProtocol.test_values(self)\n d = self._full_mapping({1:2})\n self.assertEqual(list(d.values()), [2])\n\n def test_items(self):\n BasicTestMappingProtocol.test_items(self o o.type2test):\n def __init__(self, *args, **kwargs):\n raise Exc()\n\n self.assertRaises(Exc, baddict1.fromkeys, [1])\n\n class BadSeq(object):\n def __iter__(self):\n return self\n def __next__(self):\n raise Exc()\n\n self.assertRaises(Exc, self.type2test.fromkeys, BadSeq())\n\n class baddict2(self.type2test):\n def __setitem__(self, key, value):\n raise Exc()\n\n self.assertRaises(Exc, baddict2.fromkeys, [1])\n\n def test_copy(self):\n d = self._full_mapping({1:1, 2:2, 3:3})\n self.assertEqual(d.copy(), {1:1, 2:2, 3:3})\n d = self._empty_mapping()\n self.assertEqual(d.copy(), d)\n self.assertIsInstance(d.copy(), d.__class__)\n self.assertRaises(TypeError, d.copy, None)\n\n def test_get(self):\n BasicTestMappingProtocol.test_get(self)\n d = self._empty_mapping()\n self.assertTrue(d.get(\'c\') is None)\n self.assertEqual(d.get(\'c\', 3), 3)\n d = self._full_mapping({\'a\' : 1, \'b\' : 2})\n self.assertTrue(d.get(\'c\') is None)\n self.assertEqual(d.get(\'c\', 3), 3)\n self.assertEqual(d.get(\'a\'), 1)\n self.assertEqual(d.get(\'a\', 3), 1)\n\n def test_setdefault(self):\n BasicTestMappingProtocol.test_setdefault(self)\n d = self._empty_mapping()\n self.assertTrue(d.setdefault(\'key0\') is None)\n d.setdefault(\'key0\', [])\n self.assertTrue(d.setdefault(\'key0\') is None)\n d.setdefault(\'key\', []).append(3)\n self.assertEqual(d[\'key\'][0], 3)\n d.setdefault(\'key\', []).append(4)\n self.assertEqual(len(d[\'key\']), 2)\n\n def test_popitem(self):\n BasicTestMappingProtocol.test_popitem(self)\n for copymode in -1, +1:\n # -1: b has same structure as a\n # +1: b is a.copy()\n for log2size in range(12):\n size = 2**log2size\n a = self._empty_mapping()\n b = self._empty_mapping()\n for i in range(size):\n a[repr(i)] = i\n if copymode < 0:\n b[repr(i)] = i\n if copymode > 0:\n b = a.copy()\n for i in range(size):\n ka, va = ta = a.popitem()\n self.assertEqual(va, int(ka))\n kb, vb = tb = b.popitem()\n self.assertEqual(vb, int(kb))\n self.assertTrue(not(copymode < 0 and ta != tb))\n self.assertTrue(not a)\n self.assertTrue(not b)\n\n def test_pop(self):\n BasicTestMappingProtocol.test_pop(self)\n\n # Tests for pop with specified key\n d = self._empty_mapping()\n k, v = \'abc\', \'def\'\n\n self.assertEqual(d.pop(k, v), v)\n d[k] = v\n self.assertEqual(d.pop(k, 1), v)\n\n\nclass TestHashMappingProtocol(TestMappingProtocol):\n\n def test_getitem(self):\n TestMappingProtocol.test_getitem(self)\n class Exc(Exception): pass\n\n class BadEq(object):\n def __eq__(self, other):\n raise Exc()\n def __hash__(self):\n return 24\n\n d = self._empty_mapping()\n d[BadEq()] = 42\n self.assertRaises(KeyError, d.__getitem__, 23)\n\n class BadHash(object):\n fail = False\n def __hash__(self):\n if self.fail:\n raise Exc()\n else:\n return 42\n\n d = self._empty_mapping()\n x = BadHash()\n d[x] = 42\n x.fail = True\n self.assertRaises(Exc, d.__getitem__, x)\n\n def test_fromkeys(self):\n TestMappingProtocol.test_fromkeys(self)\n class mydict(self.type2test):\n def __new__(cls):\n return collections.UserDict()\n ud = mydict.fromkeys(\'ab\')\n self.assertEqual(ud, o\'a\':None, \'b\':None})\n self.assertIsInstance(ud, collections.UserDict)\n\n def test_pop(self):\n TestMappingProtocol.test_pop(self)\n\n class Exc(Exception): pass\n\n class BadHash(object):\n fail = False\n def __hash__(self):\n if self.fail:\n raise Exc()\n else:\n return 42\n\n d = self._empty_mapping()\n x = BadHash()\n d[x] = 42\n x.fail = True\n self.assertRaises(Exc, d.pop, x)\n\n def test_mutatingiteration(self):\n d = self._empty_mapping()\n d[1] = 1\n try:\n count = 0\n for i in d:\n d[i+1] = 1\n if count >= 1:\n self.fail("changing dict size during iteration doesn\'t raise Error")\n count += 1\n except RuntimeError:\n pass\n\n def test_repr(self):\n d = self._empty_mapping()\n self.assertEqual(repr(d), \'{}\')\n d[1] = 2\n self.assertEqual(repr(d), \'{1: 2}\')\n d = self._empty_mapping()\n d[1] = d\n self.assertEqual(repr(d), \'{1: {...}}\')\n\n class Exc(Exception): pass\n\n class BadRepr(object):\n def __repr__(self):\n raise Exc()\n\n d = self._full_mapping({1: BadRepr()})\n self.assertRaises(Exc, repr, d)\n\n @support.skip_wasi_stack_overflow()\n @support.skip_emscripten_stack_overflow()\n @support.skip_if_sanitizer("requires deep stack", ub=True)\n def test_repr_deep(self):\n d = self._empty_mapping()\n for i in range(support.exceeds_recursion_limit()):\n d0 = d\n d = self._empty_mapping()\n d[1] = d0\n self.assertRaises(RecursionError, repr, d)\n\n def test_eq(self):\n self.assertEqual(self._empty_mapping(), self._empty_mapping())\n self.assertEqual(self._full_mapping({1: 2}),\n self._full_mapping({1: 2}))\n\n class Exc(Exception): pass\n\n class BadCmp(object):\n def __eq__(self, other):\n raise Exc()\n def __hash__(self):\n return 1\n\n d1 = self._full_mapping({BadCmp(): 1})\n d2 = self._full_mapping({1: 1})\n self.assertRaises(Exc, lambda: BadCmp()==1)\n self.assertRaises(Exc, lambda: d1==d2)\n\n def test_setdefault(self):\n TestMappingProtocol.test_setdefault(self)\n\n class Exc(Exception): pass\n\n class BadHash(object):\n fail = False\n def __hash__(self):\n if self.fail:\n raise Exc()\n else:\n return 42\n\n d = self._empty_mapping()\n x = BadHash()\n d[x] = 42\n x.fail = True\n self.assertRaises(Exc, d.setdefault, x, [])\n', ast_parse_kwargs={}, filename=PosixPath('/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/mapping_tests.py')) ... ERROR o oStdout: oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/imaplib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/csv.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/abc.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/statistics.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_collections_abc.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/pstats.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/gzip.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/timeit.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/socket.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/token.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/shelve.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/zipimport.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/heapq.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/textwrap.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/mailbox.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/copyreg.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/keyword.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_aix_support.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/uuid.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/functools.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/genericpath.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/posixpath.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/poplib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/colorsys.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/ftplib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/numbers.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/pickletools.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/ssl.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/shutil.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/compileall.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/subprocess.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/getpass.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/pkgutil.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_osx_support.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/linecache.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/codecs.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/runpy.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/dataclasses.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/cProfile.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/locale.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/secrets.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/weakref.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/bdb.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/fileinput.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/ast.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_threading_local.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/modulefinder.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/bz2.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/doctest.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_py_warnings.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/shlex.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/io.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/wave.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/configparser.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/platform.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/this.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/tty.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/pty.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/dis.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/plistlib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/code.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/site.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_pydecimal.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/tempfile.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_pydatetime.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/types.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/getopt.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/antigravity.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/tokenize.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/quopri.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/codeop.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_compat_pickle.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/__hello__.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/selectors.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_ios_support.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_apple_support.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/webbrowser.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/datetime.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/signal.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/profile.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/optparse.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/warnings.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/tabnanny.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/fractions.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/copy.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/reprlib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/traceback.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/pydoc.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_colorize.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/decimal.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/pyclbr.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/tracemalloc.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/ipaddress.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/os.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/hashlib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_strptime.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/fnmatch.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/sre_parse.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_pylong.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/rlcompleter.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/turtle.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_ast_unparse.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/py_compile.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/random.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_opcode_metadata.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/trace.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/sre_constants.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/annotationlib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/sched.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/struct.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/sre_compile.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_android_support.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/__future__.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/calendar.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/cmd.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/bisect.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/pprint.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_pyio.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_markupbase.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/hmac.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/nturl2path.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/netrc.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/opcode.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/queue.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/gettext.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/base64.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_sitebuiltins.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/contextlib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/pdb.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/contextvars.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/inspect.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/pickle.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/socketserver.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/zipapp.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_py_abc.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/tarfile.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/lzma.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/enum.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/symtable.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_weakrefset.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/graphlib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/glob.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/argparse.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/mimetypes.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/smtplib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/stat.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/difflib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/typing.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/stringprep.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/operator.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/filecmp.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/ntpath.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_epoll.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_wait3.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_mailbox.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_profile.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_statistics.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_shlex.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_funcattrs.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_linecache.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_codecencodings_hk.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_yield_from.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_descr.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_functools.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/curses_tests.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_bigaddrspace.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_subclassinit.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_dictviews.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_smtplib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/pyclbr_input.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_eintr.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_codecencodings_jp.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_httpservers.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/_test_embed_structseq.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_unicode_identifiers.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_set.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_locale.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_weakref.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_strptime.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_kqueue.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_faulthandler.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_decorators.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_site.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_frozen.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_ordered_dict.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_deque.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_types.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_unicodedata.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_strftime.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_venv.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_dtrace.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_select.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_strtod.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_audit.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/profilee.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_pstats.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_ftplib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_keywordonlyarg.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_unpack.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_codecencodings_tw.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_pow.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_threading.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_dbm_gnu.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_mmap.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/multibytecodec_support.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_opcodes.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_str.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_getpath.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_dictcomps.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_gettext.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_complex.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_thread.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_fork1.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/audiotests.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_ensurepip.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_zlib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_io.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_tempfile.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_finalization.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/_test_gc_fast_cycles.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_codecencodings_kr.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_sort.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_copyreg.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_asyncgen.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_sys_settrace.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_posixpath.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_base64.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_pep646_syntax.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_xml_etree_c.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/dis_module.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_hash.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_dict.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_wait4.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_compare.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_type_params.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_smtpnet.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_hmac.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_zipimport_support.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_xxlimited.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_isinstance.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_htmlparser.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_ntpath.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/memory_watchdog.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_gzip.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_urllib_response.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_tokenize.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/_code_definitions.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_string_literals.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_pyclbr.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_builtin.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_except_star.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_thread_local_bytecode.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_csv.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_enumerate.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_binop.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_compiler_codegen.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_trace.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_pwd.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_range.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_codeccallbacks.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/fork_wait.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_univnewlines.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_annotationlib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_minidom.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/tf_inherit_check.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_richcmp.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_imaplib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_positional_only_arg.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_py_compile.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_abc.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/datetimetester.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/mock_socket.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/list_tests.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/_test_atexit.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_compile.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_unary.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_logging.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_cprofile.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/mapping_tests.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_userstring.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_ioctl.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_shelve.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_zipapp.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_zstd.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_peepholer.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/win_console_handler.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_enum.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_numeric_tower.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_tuple.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_asdl_parser.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_winreg.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_itertools.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_msvcrt.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_cmd_line.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_scope.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_getpass.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_generator_stop.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_memoryview.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_os.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_codeop.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_hashlib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_timeit.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_copy.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_genexps.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_fileinput.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_tstring.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_configparser.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_list.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_tracemalloc.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_openpty.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_atexit.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_embed.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_file.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_fcntl.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_sysconfig.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_repl.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_pprint.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_pdb.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_colorsys.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/regrtest.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_ucn.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/cov.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_grammar.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_eof.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/bisect_cmd.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_pickle.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_tabnanny.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_iterlen.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_context.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/pickletester.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_threadedtempfile.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_dynamic.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_wsgiref.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_codecmaps_jp.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_compiler_assemble.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test__opcode.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_threadsignals.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_baseexception.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_multiprocessing_main_handling.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_modulefinder.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_array.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_dbm_dumb.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_stringprep.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_osx_env.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_cmath.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_reprlib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_platform.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_bisect.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/testcodec.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_difflib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_file_eintr.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_named_expressions.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_optimizer.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_bytes.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_augassign.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_shutil.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_exceptions.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/mp_fork_bomb.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/_test_venv_multiprocessing.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_posix.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/__init__.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_marshal.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/ssl_servers.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_nturl2path.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_tarfile.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/relimport.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_turtle.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_stat.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_exception_variations.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_queue.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_support.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test__interpreters.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_longexp.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_codecmaps_hk.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_ttk_textonly.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_selectors.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_patma.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_ipaddress.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_genericclass.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_termios.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_generated_cases.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_bufio.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_urllib2.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_generators.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_math_property.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_traceback.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/_crossinterp_definitions.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test___all__.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_global.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_urllib2_localnet.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_type_comments.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_structseq.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_pkg.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/autotest.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_winapi.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_pyexpat.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_userlist.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_descrtut.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_c_locale_coercion.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/_test_multiprocessing.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_utf8source.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_coroutines.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_http_cookiejar.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_weakset.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_xml_dom_minicompat.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_sax.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test__locale.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_struct.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_compileall.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_largefile.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_call.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_monitoring.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_perf_profiler.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_code.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_syslog.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test__colorize.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_wave.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_tcl.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_int_literal.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_argparse.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_zipimport.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_typechecks.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_curses.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_xmlrpc.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_idle.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_syntax.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_regrtest.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_codecmaps_cn.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_codecs.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_apple.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_winconsoleio.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_unpack_ex.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_pkgutil.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_codecmaps_tw.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_lltrace.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_poll.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_clinic.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test__interpchannels.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_fnmatch.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_random.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_charmapcodec.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_urllib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_webbrowser.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_urllib2net.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_code_module.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_xxtestfuzz.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_operator.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_threading_local.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_timeout.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_typing.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_picklebuffer.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_unicode_file_functions.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_setcomps.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_math.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_poplib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/lock_tests.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/mp_preload.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_keyword.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_source_encoding.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/audit-tests.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_flufl.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_html.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_multibytecodec.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_utf8_mode.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_bz2.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/__main__.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/ssltests.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_pickletools.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_docxmlrpc.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_contextlib_async.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_readline.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/_test_monitoring_shutdown.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_class.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_int.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_errno.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_dynamicclassattribute.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_dbm.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_subprocess.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_crossinterp.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_urlparse.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_with.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_android.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_iter.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_buffer.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_external_inspection.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_listcomps.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_socket.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_sched.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_graphlib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_dbm_sqlite3.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_httplib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_sys_setprofile.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_tty.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_perfmaps.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_exception_group.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_optparse.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_resource.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_exception_hierarchy.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_extcall.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_metaclass.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_xml_etree.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_calendar.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_lzma.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_super.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_plistlib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_runpy.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/seq_tests.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_winsound.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_dis.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_slice.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_urllibnet.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_genericalias.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_time.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_genericpath.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_stable_abi_ctypes.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_datetime.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_type_aliases.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_bool.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_secrets.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_unparse.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_startfile.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_mimetypes.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_codecencodings_cn.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_dbm_ndbm.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/_test_eintr.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_build_details.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_abstract_numbers.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_fractions.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_script_helper.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_long.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_contextlib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_bigmem.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_getopt.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_devpoll.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_remote_pdb.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_fstring.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_type_annotations.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_uuid.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/xmltests.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_opcache.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_userdict.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_property.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_fileio.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_grp.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_float.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_sundry.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_filecmp.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_netrc.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_launcher.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_codecencodings_iso2022.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_raise.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_signal.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_rlcompleter.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_xml_dom_xmlbuilder.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_unicode_file.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/re_tests.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_quopri.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_re.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_pty.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_textwrap.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_decimal.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_heapq.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_popen.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_symtable.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test__osx_support.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_contains.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_zipfile64.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_pulldom.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_defaultdict.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_binascii.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_codecmaps_kr.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_type_cache.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_gc.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_cmd.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_cmd_line_script.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/pythoninfo.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_wmi.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_fileutils.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/string_tests.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_glob.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_http_cookies.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_robotparser.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_format.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_frame.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_bdb.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/signalinterproctester.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_print.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_memoryio.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_ssl.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_socketserver.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/archiver_tests.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_index.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_collections.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_sys.py otest_async_function (test.test_unparse.ManualASTCreationTestCase.test_async_function) ... ok otest_async_function_with_type_params (test.test_unparse.ManualASTCreationTestCase.test_async_function_with_type_params) ... ok otest_async_function_with_type_params_and_default (test.test_unparse.ManualASTCreationTestCase.test_async_function_with_type_params_and_default) ... ok otest_class (test.test_unparse.ManualASTCreationTestCase.test_class) ... ok otest_class_with_type_params (test.test_unparse.ManualASTCreationTestCase.test_class_with_type_params) ... ok otest_function (test.test_unparse.ManualASTCreationTestCase.test_function) ... ok otest_function_with_type_params (test.test_unparse.ManualASTCreationTestCase.test_function_with_type_params) ... ok otest_function_with_type_params_and_bound (test.test_unparse.ManualASTCreationTestCase.test_function_with_type_params_and_bound) ... ok otest_function_with_type_params_and_default (test.test_unparse.ManualASTCreationTestCase.test_function_with_type_params_and_default) ... ok otest_annotations (test.test_unparse.UnparseTestCase.test_annotations) ... ok otest_bytes (test.test_unparse.UnparseTestCase.test_bytes) ... ok otest_chained_comparisons (test.test_unparse.UnparseTestCase.test_chained_comparisons) ... ok otest_class_decorators (test.test_unparse.UnparseTestCase.test_class_decorators) ... ok otest_class_definition (test.test_unparse.UnparseTestCase.test_class_definition) ... ok otest_constant_tuples (test.test_unparse.UnparseTestCase.test_constant_tuples) ... ok otest_del_statement (test.test_unparse.UnparseTestCase.test_del_statement) ... ok otest_dict_comprehension (test.test_unparse.UnparseTestCase.test_dict_comprehension) ... ok otest_dict_unpacking_in_dict (test.test_unparse.UnparseTestCase.test_dict_unpacking_in_dict) ... ok otest_docstrings (test.test_unparse.UnparseTestCase.test_docstrings) ... ok otest_elifs (test.test_unparse.UnparseTestCase.test_elifs) ... ok otest_empty_set (test.test_unparse.UnparseTestCase.test_empty_set) ... ok otest_for_else (test.test_unparse.UnparseTestCase.test_for_else) ... ok otest_fstring_backslash (test.test_unparse.UnparseTestCase.test_fstring_backslash) ... ok otest_fstrings (test.test_unparse.UnparseTestCase.test_fstrings) ... ok otest_fstrings_complicated (test.test_unparse.UnparseTestCase.test_fstrings_complicated) ... ok otest_fstrings_pep701 (test.test_unparse.UnparseTestCase.test_fstrings_pep701) ... ok otest_fstrings_special_chars (test.test_unparse.UnparseTestCase.test_fstrings_special_chars) ... ok otest_function_arguments (test.test_unparse.UnparseTestCase.test_function_arguments) ... ok otest_function_type (test.test_unparse.UnparseTestCase.test_function_type) ... ok otest_huge_float (test.test_unparse.UnparseTestCase.test_huge_float) ... ok otest_imaginary_literals (test.test_unparse.UnparseTestCase.test_imaginary_literals) ... ok otest_import_from_level_none (test.test_unparse.UnparseTestCase.test_import_from_level_none) ... ok otest_integer_parens (test.test_unparse.UnparseTestCase.test_integer_parens) ... ok otest_invalid_fstring_value (test.test_unparse.UnparseTestCase.test_invalid_fstring_value) ... ok otest_invalid_raise (test.test_unparse.UnparseTestCase.test_invalid_raise) ... ok otest_invalid_yield_from (test.test_unparse.UnparseTestCase.test_invalid_yield_from) ... ok otest_lambda_parentheses (test.test_unparse.UnparseTestCase.test_lambda_parentheses) ... ok otest_min_int (test.test_unparse.UnparseTestCase.test_min_int) ... ok otest_nan (test.test_unparse.UnparseTestCase.test_nan) ... ok otest_nonlocal (test.test_unparse.UnparseTestCase.test_nonlocal) ... ok otest_raise_from (test.test_unparse.UnparseTestCase.test_raise_from) ... ok otest_relative_import (test.test_unparse.UnparseTestCase.test_relative_import) ... ok otest_set_comprehension (test.test_unparse.UnparseTestCase.test_set_comprehension) ... ok otest_set_literal (test.test_unparse.UnparseTestCase.test_set_literal) ... ok otest_shifts (test.test_unparse.UnparseTestCase.test_shifts) ... ok otest_slices (test.test_unparse.UnparseTestCase.test_slices) ... ok otest_starred_assignment (test.test_unparse.UnparseTestCase.test_starred_assignment) ... ok otest_strings (test.test_unparse.UnparseTestCase.test_strings) ... ok otest_try_except_finally (test.test_unparse.UnparseTestCase.test_try_except_finally) ... ok otest_try_except_star_finally (test.test_unparse.UnparseTestCase.test_try_except_star_finally) ... ok otest_tstrings (test.test_unparse.UnparseTestCase.test_tstrings) ... ok otest_type_comments (test.test_unparse.UnparseTestCase.test_type_comments) ... ok otest_type_ignore (test.test_unparse.UnparseTestCase.test_type_ignore) ... ok otest_unary_parens (test.test_unparse.UnparseTestCase.test_unary_parens) ... ok otest_unparse_interactive_integrity_1 (test.test_unparse.UnparseTestCase.test_unparse_interactive_integrity_1) ... ok otest_unparse_interactive_integrity_2 (test.test_unparse.UnparseTestCase.test_unparse_interactive_integrity_2) ... ok otest_unparse_interactive_integrity_3 (test.test_unparse.UnparseTestCase.test_unparse_interactive_integrity_3) ... ok otest_unparse_interactive_semicolons (test.test_unparse.UnparseTestCase.test_unparse_interactive_semicolons) ... ok otest_while_else (test.test_unparse.UnparseTestCase.test_while_else) ... ok otest_with_as (test.test_unparse.UnparseTestCase.test_with_as) ... ok otest_with_simple (test.test_unparse.UnparseTestCase.test_with_simple) ... ok otest_with_two_items (test.test_unparse.UnparseTestCase.test_with_two_items) ... ok o o====================================================================== oERROR: test_files (test.test_unparse.DirectoryTestCase.test_files) (code1='"""Test the datetime module."""\nimport bisect\nimport contextlib\nimport copy\nimport decimal\nimport io\nimport itertools\nimport os\nimport pickle\nimport random\nimport re\nimport struct\nimport sys\nimport textwrap\nimport unittest\nimport warnings\n\nfrom array import array\n\nfrom operator import lt, le, gt, ge, eq, ne, truediv, floordiv, mod\n\nfrom test import support\nfrom test.support import is_resource_enabled, ALWAYS_EQ, LARGEST, SMALLEST\nfrom test.support import os_helper, script_helper, warnings_helper\n\nimport datetime as datetime_module\nfrom datetime import MINYEAR, MAXYEAR\nfrom datetime import timedelta\nfrom datetime import tzinfo\nfrom datetime import time\nfrom datetime import timezone\nfrom datetime import UTC\nfrom datetime import date, datetime\nimport time as _time\n\ntry:\n import _testcapi\nexcept ImportError:\n _testcapi = None\ntry:\n import _interpreters\nexcept ModuleNotFoundError:\n _interpreters = None\n\n# Needed by test_datetime\nimport _strptime\ntry:\n import _pydatetime\nexcept ImportError:\n pass\n#\n\npickle_loads = {pickle.loads, pickle._loads}\n\npickle_choices = [(pickle, pickle, proto)\n for proto in range(pickle.HIGHEST_PROTOCOL + 1)]\nassert len(pickle_choices) == pickle.HIGHEST_PROTOCOL + 1\n\nEPOCH_NAIVE = datetime(1970, 1, 1, 0, 0) # For calculating transitions\n\n# An arbitrary collection of objects of non-datetime types, for testing\n# mixed-type comparisons.\nOTHERSTUFF = (10, 34.5, "abc", {}, [], ())\n\n# XXX Copied from test_float.\nINF = float("inf")\nNAN = float("nan")\n\n\n#############################################################################\n# module tests\n\nclass TestModule(unittest.TestCase):\n\n def test_constants(self):\n datetime = datetime_module\n self.assertEqual(datetime.MINYEAR, 1)\n self.assertEqual(datetime.MAXYEAR, 9999)\n\n def test_utc_alias(self):\n self.assertIs(UTC, timezone.utc)\n\n def test_all(self):\n """Test that __all__ only points to valid attributes."""\n all_attrs = dir(datetime_module)\n for attr in datetime_module.__all__:\n self.assertIn(attr, all_attrs)\n\n def test_name_cleanup(self):\n if \'_Pure\' in self.__class__.__name__:\n self.skipTest(\'Only run for Fast C implementation\')\n\n datetime = datetime_module\n names = set(name for name in dir(datetime)\n if not name.startswith(\'__\') and not name.endswith(\'__\'))\n allowed = set([\'MAXYEAR\', \'MINYEAR\', \'date\', \'datetime\',\n \'datetime_CAPI\', \'time\', \'timedelta\', \'timezone\',\n \'tzinfo\', \'UTC\', \'sys\'])\n self.assertEqual(names - allowed, set([]))\n\n def test_divide_and_round(self):\n if \'_Fast\' in self.__class__.__name__:\n self.skipTest(\'Only run for Pure Python implementation\')\n\n dar = _pydatetime._divide_and_round\n\n self.assertEqual(dar(-10, -3), 3)\n self.assertEqual(dar(5, -2), -2)\n\n # four cases: (2 signs of a) x (2 signs of b)\n self.assertEqual(dar(7, 3), 2)\n self.assertEqual(dar(-7, 3), -2)\n self.assertEqual(dar(7, -3), -2)\n self.assertEqual(dar(-7, -3), 2)\n\n # ties to even - eight cases:\n # (2 signs of a) x (2 signs of b) x (even / odd quotient)\n self.assertEqual(dar(10, 4), 2)\n self.assertEqual(dar(-10, 4), -2)\n self.assertEqual(dar(10, -4), -2)\n self.assertEqual(dar(-10, -4), 2)\n\n self.assertEqual(dar(6, 4), 2)\n self.assertEqual(dar(-6, 4), -2)\n self.assertEqual(dar(6, -4), -2)\n self.assertEqual(dar(-6, -4), 2)\n\n\n#############################################################################\n# tzinfo tests\n\nclass FixedOffset(tzinfo):\n\n def __init__(self, offset, name, dstoffset=42):\n if isinstance(offset, int):\n offset = timedelta(minutes=offset)\n o o\n\n def test_issue23600(self):\n DSTDIFF = DSTOFFSET = timedelta(hours=1)\n\n class UKSummerTime(tzinfo):\n """Simple time zone which pretends to always be in summer time, since\n that\'s what shows the failure.\n """\n\n def utcoffset(self, dt):\n return DSTOFFSET\n\n def dst(self, dt):\n return DSTDIFF\n\n def tzname(self, dt):\n return \'UKSummerTime\'\n\n tz = UKSummerTime()\n u = datetime(2014, 4, 26, 12, 1, tzinfo=tz)\n t = tz.fromutc(u)\n self.assertEqual(t - t.utcoffset(), u)\n\n\nclass TestTimeZone(unittest.TestCase):\n\n def setUp(self):\n self.ACDT = timezone(timedelta(hours=9.5), \'ACDT\')\n self.EST = timezone(-timedelta(hours=5), \'EST\')\n self.DT = datetime(2010, 1, 1)\n\n def test_str(self):\n for tz in [self.ACDT, self.EST, timezone.utc,\n timezone.min, timezone.max]:\n self.assertEqual(str(tz), tz.tzname(None))\n\n def test_repr(self):\n datetime = datetime_module\n for tz in [self.ACDT, self.EST, timezone.utc,\n timezone.min, timezone.max]:\n # test round-trip\n tzrep = repr(tz)\n self.assertEqual(tz, eval(tzrep))\n\n def test_class_members(self):\n limit = timedelta(hours=23, minutes=59)\n self.assertEqual(timezone.utc.utcoffset(None), ZERO)\n self.assertEqual(timezone.min.utcoffset(None), -limit)\n self.assertEqual(timezone.max.utcoffset(None), limit)\n\n def test_constructor(self):\n self.assertIs(timezone.utc, timezone(timedelta(0)))\n self.assertIsNot(timezone.utc, timezone(timedelta(0), \'UTC\'))\n self.assertEqual(timezone.utc, timezone(timedelta(0), \'UTC\'))\n for subminute in [timedelta(microseconds=1), timedelta(seconds=1)]:\n tz = timezone(subminute)\n self.assertNotEqual(tz.utcoffset(None) % timedelta(minutes=1), 0)\n # invalid offsets\n for invalid in [timedelta(1, 1), timedelta(1)]:\n self.assertRaises(ValueError, timezone, invalid)\n self.assertRaises(ValueError, timezone, -invalid)\n\n with self.assertRaises(TypeError): timezone(None)\n with self.assertRaises(TypeError): timezone(42)\n with self.assertRaises(TypeError): timezone(ZERO, None)\n with self.assertRaises(TypeError): timezone(ZERO, 42)\n with self.assertRaises(TypeError): timezone(ZERO, \'ABC\', \'extra\')\n\n def test_inheritance(self):\n self.assertIsInstance(timezone.utc, tzinfo)\n self.assertIsInstance(self.EST, tzinfo)\n\n def test_cannot_subclass(self):\n with self.assertRaises(TypeError):\n class MyTimezone(timezone): pass\n\n def test_utcoffset(self):\n dummy = self.DT\n for h in [0, 1.5, 12]:\n offset = h * HOUR\n self.assertEqual(offset, timezone(offset).utcoffset(dummy))\n self.assertEqual(-offset, timezone(-offset).utcoffset(dummy))\n\n with self.assertRaises(TypeError): self.EST.utcoffset(\'\')\n with self.assertRaises(TypeError): self.EST.utcoffset(5)\n\n\n def test_dst(self):\n self.assertIsNone(timezone.utc.dst(self.DT))\n\n with self.assertRaises(TypeError): self.EST.dst(\'\')\n with self.assertRaises(TypeError): self.EST.dst(5)\n\n def test_tzname(self):\n self.assertEqual(\'UTC\', timezone.utc.tzname(None))\n self.assertEqual(\'UTC\', UTC.tzname(None))\n self.assertEqual(\'UTC\', timezone(ZERO).tzname(None))\n self.assertEqual(\'UTC-05:00\', timezone(-5 * HOUR).tzname(None))\n self.assertEqual(\'UTC+09:30\', timezone(9.5 * HOUR).tzname(None))\n self.assertEqual(\'UTC-00:01\', timezone(timedelta(minutes=-1)).tzname(None))\n self.assertEqual(\'XYZ\', timezone(-5 * HOUR, \'XYZ\').tzname(None))\n # bpo-34482: Check that surrogates are handled properly.\n self.assertEqual(\'\\ud800\' o o:\n timezone(delta)\n\n # Test timedeltas on and outside the boundaries\n bad_time_deltas = [\n timedelta(hours=24),\n timedelta(hours=24, microseconds=1),\n ]\n bad_time_deltas.extend([-delta for delta in bad_time_deltas])\n\n for delta in bad_time_deltas:\n with self.subTest(test_type=\'bad\', delta=delta):\n with self.assertRaises(ValueError):\n timezone(delta)\n\n def test_comparison_with_tzinfo(self):\n # Constructing tzinfo objects directly should not be done by users\n # and serves only to check the bug described in bpo-37915\n self.assertNotEqual(timezone.utc, tzinfo())\n self.assertNotEqual(timezone(timedelta(hours=1)), tzinfo())\n\n#############################################################################\n# Base class for testing a particular aspect of timedelta, time, date and\n# datetime comparisons.\n\nclass HarmlessMixedComparison:\n # Test that __eq__ and __ne__ don\'t complain for mixed-type comparisons.\n\n # Subclasses must define \'theclass\', and theclass(1, 1, 1) must be a\n # legit constructor.\n\n def test_harmless_mixed_comparison(self):\n me = self.theclass(1, 1, 1)\n\n self.assertFalse(me == ())\n self.assertTrue(me != ())\n self.assertFalse(() == me)\n self.assertTrue(() != me)\n\n self.assertIn(me, [1, 20, [], me])\n self.assertIn([], [me, 1, 20, []])\n\n # Comparison to objects of unsupported types should return\n # NotImplemented which falls back to the right hand side\'s __eq__\n # method. In this case, ALWAYS_EQ.__eq__ always returns True.\n # ALWAYS_EQ.__ne__ always returns False.\n self.assertTrue(me == ALWAYS_EQ)\n self.assertFalse(me != ALWAYS_EQ)\n\n # If the other class explicitly defines ordering\n # relative to our class, it is allowed to do so\n self.assertTrue(me < LARGEST)\n self.assertFalse(me > LARGEST)\n self.assertTrue(me <= LARGEST)\n self.assertFalse(me >= LARGEST)\n self.assertFalse(me < SMALLEST)\n self.assertTrue(me > SMALLEST)\n self.assertFalse(me <= SMALLEST)\n self.assertTrue(me >= SMALLEST)\n\n def test_harmful_mixed_comparison(self):\n me = self.theclass(1, 1, 1)\n\n self.assertRaises(TypeError, lambda: me < ())\n self.assertRaises(TypeError, lambda: me <= ())\n self.assertRaises(TypeError, lambda: me > ())\n self.assertRaises(TypeError, lambda: me >= ())\n\n self.assertRaises(TypeError, lambda: () < me)\n self.assertRaises(TypeError, lambda: () <= me)\n self.assertRaises(TypeError, lambda: () > me)\n self.assertRaises(TypeError, lambda: () >= me)\n\n#############################################################################\n# timedelta tests\n\nclass SubclassTimeDelta(timedelta):\n sub_var = 1\n\nclass TestTimeDelta(HarmlessMixedComparison, unittest.TestCase):\n\n theclass = timedelta\n\n def test_constructor(self):\n eq = self.assertEqual\n ra = self.assertRaises\n td = timedelta\n\n # Check keyword args to constructor\n eq(td(), td(weeks=0, days=0, hours=0, minutes=0, seconds=0,\n milliseconds=0, microseconds=0))\n eq(td(1), td(days=1))\n eq(td(0, 1), td(seconds=1))\n eq(td(0, 0, 1), td(microseconds=1))\n eq(td(weeks=1), td(days=7))\n eq(td(days=1), td(hours=24))\n eq(td(hours=1), td(minutes=60))\n eq(td(minutes=1), td(seconds=60))\n eq(td(seconds=1), td(milliseconds=1000))\n eq(td(milliseconds=1), td(microseconds=1000))\n\n # Check float args to constructor\n eq(td(weeks=1.0/7), td(days=1))\n eq(td(days=1.0/24), td(hours=1))\n eq(td(hours=1.0/60), td(minutes=1))\n eq(td(minutes=1.0/60), td(seconds=1))\n eq(td(seconds=0.001), td(milliseconds=1))\n eq(td(milliseconds=0.001), td(microseconds=1))\n\n o o1\n td = timedelta(days, seconds, us)\n self.assertEqual(td.days, days)\n self.assertEqual(td.seconds, seconds)\n self.assertEqual(td.microseconds, us)\n\n def test_total_seconds(self):\n td = timedelta(days=365)\n self.assertEqual(td.total_seconds(), 31536000.0)\n for total_seconds in [123456.789012, -123456.789012, 0.123456, 0, 1e6]:\n td = timedelta(seconds=total_seconds)\n self.assertEqual(td.total_seconds(), total_seconds)\n # Issue8644: Test that td.total_seconds() has the same\n # accuracy as td / timedelta(seconds=1).\n for ms in [-1, -2, -123]:\n td = timedelta(microseconds=ms)\n self.assertEqual(td.total_seconds(), td / timedelta(seconds=1))\n\n def test_carries(self):\n t1 = timedelta(days=100,\n weeks=-7,\n hours=-24*(100-49),\n minutes=-3,\n seconds=12,\n microseconds=(3*60 - 12) * 1e6 + 1)\n t2 = timedelta(microseconds=1)\n self.assertEqual(t1, t2)\n\n def test_hash_equality(self):\n t1 = timedelta(days=100,\n weeks=-7,\n hours=-24*(100-49),\n minutes=-3,\n seconds=12,\n microseconds=(3*60 - 12) * 1000000)\n t2 = timedelta()\n self.assertEqual(hash(t1), hash(t2))\n\n t1 += timedelta(weeks=7)\n t2 += timedelta(days=7*7)\n self.assertEqual(t1, t2)\n self.assertEqual(hash(t1), hash(t2))\n\n d = {t1: 1}\n d[t2] = 2\n self.assertEqual(len(d), 1)\n self.assertEqual(d[t1], 2)\n\n def test_pickling(self):\n args = 12, 34, 56\n orig = timedelta(*args)\n for pickler, unpickler, proto in pickle_choices:\n green = pickler.dumps(orig, proto)\n derived = unpickler.loads(green)\n self.assertEqual(orig, derived)\n\n def test_compare(self):\n t1 = timedelta(2, 3, 4)\n t2 = timedelta(2, 3, 4)\n self.assertEqual(t1, t2)\n self.assertTrue(t1 <= t2)\n self.assertTrue(t1 >= t2)\n self.assertFalse(t1 != t2)\n self.assertFalse(t1 < t2)\n self.assertFalse(t1 > t2)\n\n for args in (3, 3, 3), (2, 4, 4), (2, 3, 5):\n t2 = timedelta(*args) # this is larger than t1\n self.assertTrue(t1 < t2)\n self.assertTrue(t2 > t1)\n self.assertTrue(t1 <= t2)\n self.assertTrue(t2 >= t1)\n self.assertTrue(t1 != t2)\n self.assertTrue(t2 != t1)\n self.assertFalse(t1 == t2)\n self.assertFalse(t2 == t1)\n self.assertFalse(t1 > t2)\n self.assertFalse(t2 < t1)\n self.assertFalse(t1 >= t2)\n self.assertFalse(t2 <= t1)\n\n for badarg in OTHERSTUFF:\n self.assertEqual(t1 == badarg, False)\n self.assertEqual(t1 != badarg, True)\n self.assertEqual(badarg == t1, False)\n self.assertEqual(badarg != t1, True)\n\n self.assertRaises(TypeError, lambda: t1 <= badarg)\n self.assertRaises(TypeError, lambda: t1 < badarg)\n self.assertRaises(TypeError, lambda: t1 > badarg)\n self.assertRaises(TypeError, lambda: t1 >= badarg)\n self.assertRaises(TypeError, lambda: badarg <= t1)\n self.assertRaises(TypeError, lambda: badarg < t1)\n self.assertRaises(TypeError, lambda: badarg > t1)\n self.assertRaises(TypeError, lambda: badarg >= t1)\n\n def test_str(self):\n td = timedelta\n eq = self.assertEqual\n\n eq(str(td(1)), "1 day, 0:00:00")\n eq(str(td(-1)), "-1 day, 0:00:00")\n eq(str(td(2)), "2 days, 0:00:00")\n eq(str(td(-2)), "-2 days, 0:00:00")\n\n eq(str(td(hours=12, minutes=58, seconds=59)), "12:58:59")\n eq(str(td(hours=2, minutes=3, seconds=4)), "2:03:04")\n eq(str(td(weeks=-3 o o day = timedelta(1)\n self.assertRaises(OverflowError, day.__mul__, INF)\n self.assertRaises(OverflowError, day.__mul__, -INF)\n\n def test_microsecond_rounding(self):\n td = timedelta\n eq = self.assertEqual\n\n # Single-field rounding.\n eq(td(milliseconds=0.4/1000), td(0)) # rounds to 0\n eq(td(milliseconds=-0.4/1000), td(0)) # rounds to 0\n eq(td(milliseconds=0.5/1000), td(microseconds=0))\n eq(td(milliseconds=-0.5/1000), td(microseconds=-0))\n eq(td(milliseconds=0.6/1000), td(microseconds=1))\n eq(td(milliseconds=-0.6/1000), td(microseconds=-1))\n eq(td(milliseconds=1.5/1000), td(microseconds=2))\n eq(td(milliseconds=-1.5/1000), td(microseconds=-2))\n eq(td(seconds=0.5/10**6), td(microseconds=0))\n eq(td(seconds=-0.5/10**6), td(microseconds=-0))\n eq(td(seconds=1/2**7), td(microseconds=7812))\n eq(td(seconds=-1/2**7), td(microseconds=-7812))\n\n # Rounding due to contributions from more than one field.\n us_per_hour = 3600e6\n us_per_day = us_per_hour * 24\n eq(td(days=.4/us_per_day), td(0))\n eq(td(hours=.2/us_per_hour), td(0))\n eq(td(days=.4/us_per_day, hours=.2/us_per_hour), td(microseconds=1))\n\n eq(td(days=-.4/us_per_day), td(0))\n eq(td(hours=-.2/us_per_hour), td(0))\n eq(td(days=-.4/us_per_day, hours=-.2/us_per_hour), td(microseconds=-1))\n\n # Test for a patch in Issue 8860\n eq(td(microseconds=0.5), 0.5*td(microseconds=1.0))\n eq(td(microseconds=0.5)//td.resolution, 0.5*td.resolution//td.resolution)\n\n def test_massive_normalization(self):\n td = timedelta(microseconds=-1)\n self.assertEqual((td.days, td.seconds, td.microseconds),\n (-1, 24*3600-1, 999999))\n\n def test_bool(self):\n self.assertTrue(timedelta(1))\n self.assertTrue(timedelta(0, 1))\n self.assertTrue(timedelta(0, 0, 1))\n self.assertTrue(timedelta(microseconds=1))\n self.assertFalse(timedelta(0))\n\n def test_subclass_timedelta(self):\n\n class T(timedelta):\n @staticmethod\n def from_td(td):\n return T(td.days, td.seconds, td.microseconds)\n\n def as_hours(self):\n sum = (self.days * 24 +\n self.seconds / 3600.0 +\n self.microseconds / 3600e6)\n return round(sum)\n\n t1 = T(days=1)\n self.assertIs(type(t1), T)\n self.assertEqual(t1.as_hours(), 24)\n\n t2 = T(days=-1, seconds=-3600)\n self.assertIs(type(t2), T)\n self.assertEqual(t2.as_hours(), -25)\n\n t3 = t1 + t2\n self.assertIs(type(t3), timedelta)\n t4 = T.from_td(t3)\n self.assertIs(type(t4), T)\n self.assertEqual(t3.days, t4.days)\n self.assertEqual(t3.seconds, t4.seconds)\n self.assertEqual(t3.microseconds, t4.microseconds)\n self.assertEqual(str(t3), str(t4))\n self.assertEqual(t4.as_hours(), -1)\n\n def test_subclass_date(self):\n class DateSubclass(date):\n pass\n\n d1 = DateSubclass(2018, 1, 5)\n td = timedelta(days=1)\n\n tests = [\n (\'add\', lambda d, t: d + t, DateSubclass(2018, 1, 6)),\n (\'radd\', lambda d, t: t + d, DateSubclass(2018, 1, 6)),\n (\'sub\', lambda d, t: d - t, DateSubclass(2018, 1, 4)),\n ]\n\n for name, func, expected in tests:\n with self.subTest(name):\n act = func(d1, td)\n self.assertEqual(act, expected)\n self.assertIsInstance(act, DateSubclass)\n\n def test_subclass_datetime(self):\n class DateTimeSubclass(datetime):\n pass\n\n d1 = DateTimeSubclass(2018, 1, 5, 12, 30)\n td = timedelta(days=1, minutes=30)\n\n tests = [\n (\'add\', lambda d, t: d + t, DateTimeSubclass(2018, 1, 6, 13)),\n (\'radd\', lambda d, t: t + d, Dat o o try:\n timedelta(weeks=BadInt(1))\n except (TypeError, ValueError):\n pass\n try:\n timedelta(1) * BadInt(1)\n except (TypeError, ValueError):\n pass\n try:\n BadInt(1) * timedelta(1)\n except TypeError:\n pass\n try:\n timedelta(1) // BadInt(1)\n except TypeError:\n pass\n\n\n#############################################################################\n# date tests\n\nclass TestDateOnly(unittest.TestCase):\n # Tests here won\'t pass if also run on datetime objects, so don\'t\n # subclass this to test datetimes too.\n\n def test_delta_non_days_ignored(self):\n dt = date(2000, 1, 2)\n delta = timedelta(days=1, hours=2, minutes=3, seconds=4,\n microseconds=5)\n days = timedelta(delta.days)\n self.assertEqual(days, timedelta(1))\n\n dt2 = dt + delta\n self.assertEqual(dt2, dt + days)\n\n dt2 = delta + dt\n self.assertEqual(dt2, dt + days)\n\n dt2 = dt - delta\n self.assertEqual(dt2, dt - days)\n\n delta = -delta\n days = timedelta(delta.days)\n self.assertEqual(days, timedelta(-2))\n\n dt2 = dt + delta\n self.assertEqual(dt2, dt + days)\n\n dt2 = delta + dt\n self.assertEqual(dt2, dt + days)\n\n dt2 = dt - delta\n self.assertEqual(dt2, dt - days)\n\n def test_strptime(self):\n inputs = [\n # Basic valid cases\n (date(1998, 2, 3), \'1998-02-03\', \'%Y-%m-%d\'),\n (date(2004, 12, 2), \'2004-12-02\', \'%Y-%m-%d\'),\n\n # Edge cases: Leap year\n (date(2020, 2, 29), \'2020-02-29\', \'%Y-%m-%d\'), # Valid leap year date\n\n # bpo-34482: Handle surrogate pairs\n (date(2004, 12, 2), \'2004-12\\ud80002\', \'%Y-%m\\ud800%d\'),\n (date(2004, 12, 2), \'2004\\ud80012-02\', \'%Y\\ud800%m-%d\'),\n\n # Month/day variations\n (date(2004, 2, 1), \'2004-02\', \'%Y-%m\'), # No day provided\n (date(2004, 2, 1), \'02-2004\', \'%m-%Y\'), # Month and year swapped\n\n # Different day-month-year formats\n (date(2004, 12, 2), \'02/12/2004\', \'%d/%m/%Y\'), # Day/Month/Year\n (date(2004, 12, 2), \'12/02/2004\', \'%m/%d/%Y\'), # Month/Day/Year\n\n # Different separators\n (date(2023, 9, 24), \'24.09.2023\', \'%d.%m.%Y\'), # Dots as separators\n (date(2023, 9, 24), \'24-09-2023\', \'%d-%m-%Y\'), # Dashes\n (date(2023, 9, 24), \'2023/09/24\', \'%Y/%m/%d\'), # Slashes\n\n # Handling years with fewer digits\n (date(127, 2, 3), \'0127-02-03\', \'%Y-%m-%d\'),\n (date(99, 2, 3), \'0099-02-03\', \'%Y-%m-%d\'),\n (date(5, 2, 3), \'0005-02-03\', \'%Y-%m-%d\'),\n\n # Variations on ISO 8601 format\n (date(2023, 9, 25), \'2023-W39-1\', \'%G-W%V-%u\'), # ISO week date (Week 39, Monday)\n (date(2023, 9, 25), \'2023-268\', \'%Y-%j\'), # Year and day of the year (Julian)\n ]\n for expected, string, format in inputs:\n with self.subTest(string=string, format=format):\n got = date.strptime(string, format)\n self.assertEqual(expected, got)\n self.assertIs(type(got), date)\n\n def test_strptime_single_digit(self):\n # bpo-34903: Check that single digit dates are allowed.\n strptime = date.strptime\n with self.assertRaises(ValueError):\n # %y does require two digits.\n newdate = strptime(\'01/02/3\', \'%d/%m/%y\')\n\n d1 = date(2003, 2, 1)\n d2 = date(2003, 1, 2)\n d3 = date(2003, 1, 25)\n inputs = [\n (\'%d\', \'1/02/03\', \'%d/%m/%y\', d1),\n (\'%m\', \'01/2/03\', \'%d/%m/%y\', d1),\n o oself.assertEqual(d, d2)\n self.assertEqual(d2.toordinal(), n-1)\n\n # Test every day in a leap-year and a non-leap year.\n dim = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]\n for year, isleap in (2000, True), (2002, False):\n n = self.theclass(year, 1, 1).toordinal()\n for month, maxday in zip(range(1, 13), dim):\n if month == 2 and isleap:\n maxday += 1\n for day in range(1, maxday+1):\n d = self.theclass(year, month, day)\n self.assertEqual(d.toordinal(), n)\n self.assertEqual(d, self.theclass.fromordinal(n))\n n += 1\n\n def test_extreme_ordinals(self):\n a = self.theclass.min\n a = self.theclass(a.year, a.month, a.day) # get rid of time parts\n aord = a.toordinal()\n b = a.fromordinal(aord)\n self.assertEqual(a, b)\n\n self.assertRaises(ValueError, lambda: a.fromordinal(aord - 1))\n\n b = a + timedelta(days=1)\n self.assertEqual(b.toordinal(), aord + 1)\n self.assertEqual(b, self.theclass.fromordinal(aord + 1))\n\n a = self.theclass.max\n a = self.theclass(a.year, a.month, a.day) # get rid of time parts\n aord = a.toordinal()\n b = a.fromordinal(aord)\n self.assertEqual(a, b)\n\n self.assertRaises(ValueError, lambda: a.fromordinal(aord + 1))\n\n b = a - timedelta(days=1)\n self.assertEqual(b.toordinal(), aord - 1)\n self.assertEqual(b, self.theclass.fromordinal(aord - 1))\n\n def test_bad_constructor_arguments(self):\n # bad years\n self.theclass(MINYEAR, 1, 1) # no exception\n self.theclass(MAXYEAR, 1, 1) # no exception\n self.assertRaises(ValueError, self.theclass, MINYEAR-1, 1, 1)\n self.assertRaises(ValueError, self.theclass, MAXYEAR+1, 1, 1)\n # bad months\n self.theclass(2000, 1, 1) # no exception\n self.theclass(2000, 12, 1) # no exception\n self.assertRaises(ValueError, self.theclass, 2000, 0, 1)\n self.assertRaises(ValueError, self.theclass, 2000, 13, 1)\n # bad days\n self.theclass(2000, 2, 29) # no exception\n self.theclass(2004, 2, 29) # no exception\n self.theclass(2400, 2, 29) # no exception\n self.assertRaises(ValueError, self.theclass, 2000, 2, 30)\n self.assertRaises(ValueError, self.theclass, 2001, 2, 29)\n self.assertRaises(ValueError, self.theclass, 2100, 2, 29)\n self.assertRaises(ValueError, self.theclass, 1900, 2, 29)\n self.assertRaises(ValueError, self.theclass, 2000, 1, 0)\n self.assertRaises(ValueError, self.theclass, 2000, 1, 32)\n\n def test_hash_equality(self):\n d = self.theclass(2000, 12, 31)\n # same thing\n e = self.theclass(2000, 12, 31)\n self.assertEqual(d, e)\n self.assertEqual(hash(d), hash(e))\n\n dic = {d: 1}\n dic[e] = 2\n self.assertEqual(len(dic), 1)\n self.assertEqual(dic[d], 2)\n self.assertEqual(dic[e], 2)\n\n d = self.theclass(2001, 1, 1)\n # same thing\n e = self.theclass(2001, 1, 1)\n self.assertEqual(d, e)\n self.assertEqual(hash(d), hash(e))\n\n dic = {d: 1}\n dic[e] = 2\n self.assertEqual(len(dic), 1)\n self.assertEqual(dic[d], 2)\n self.assertEqual(dic[e], 2)\n\n def test_computations(self):\n a = self.theclass(2002, 1, 31)\n b = self.theclass(1956, 1, 31)\n c = self.theclass(2001,2,1)\n\n diff = a-b\n self.assertEqual(diff.days, 46*365 + len(range(1956, 2002, 4)))\n self.assertEqual(diff.seconds, 0)\n self.assertEqual(diff.microseconds, 0)\n\n day = timedelta(1)\n week = timedelta(7)\n a = self.theclass(2002, 3, 2)\n self.assertEqual(a + day, self.theclass(2002, 3, 3))\n self.assertEqual(day + a, self.theclass(2002, 3, 3))\n self.assertEqual(a - day, self.thec o o # In any case, wait a little while and try again.\n time.sleep(0.1)\n\n # It worked or it didn\'t. If it didn\'t, assume it\'s reason #2, and\n # let the test pass if they\'re within half a second of each other.\n if today != todayagain:\n self.assertAlmostEqual(todayagain, today,\n delta=timedelta(seconds=0.5))\n\n def test_weekday(self):\n for i in range(7):\n # March 4, 2002 is a Monday\n self.assertEqual(self.theclass(2002, 3, 4+i).weekday(), i)\n self.assertEqual(self.theclass(2002, 3, 4+i).isoweekday(), i+1)\n # January 2, 1956 is a Monday\n self.assertEqual(self.theclass(1956, 1, 2+i).weekday(), i)\n self.assertEqual(self.theclass(1956, 1, 2+i).isoweekday(), i+1)\n\n def test_isocalendar(self):\n # Check examples from\n # http://www.phys.uu.nl/~vgent/calendar/isocalendar.htm\n week_mondays = [\n ((2003, 12, 22), (2003, 52, 1)),\n ((2003, 12, 29), (2004, 1, 1)),\n ((2004, 1, 5), (2004, 2, 1)),\n ((2009, 12, 21), (2009, 52, 1)),\n ((2009, 12, 28), (2009, 53, 1)),\n ((2010, 1, 4), (2010, 1, 1)),\n ]\n\n test_cases = []\n for cal_date, iso_date in week_mondays:\n base_date = self.theclass(*cal_date)\n # Adds one test case for every day of the specified weeks\n for i in range(7):\n new_date = base_date + timedelta(i)\n new_iso = iso_date[0:2] + (iso_date[2] + i,)\n test_cases.append((new_date, new_iso))\n\n for d, exp_iso in test_cases:\n with self.subTest(d=d, comparison="tuple"):\n self.assertEqual(d.isocalendar(), exp_iso)\n\n # Check that the tuple contents are accessible by field name\n with self.subTest(d=d, comparison="fields"):\n t = d.isocalendar()\n self.assertEqual((t.year, t.week, t.weekday), exp_iso)\n\n def test_isocalendar_pickling(self):\n """Test that the result of datetime.isocalendar() can be pickled.\n\n The result of a round trip should be a plain tuple.\n """\n d = self.theclass(2019, 1, 1)\n p = pickle.dumps(d.isocalendar())\n res = pickle.loads(p)\n self.assertEqual(type(res), tuple)\n self.assertEqual(res, (2019, 1, 2))\n\n def test_iso_long_years(self):\n # Calculate long ISO years and compare to table from\n # http://www.phys.uu.nl/~vgent/calendar/isocalendar.htm\n ISO_LONG_YEARS_TABLE = """\n 4 32 60 88\n 9 37 65 93\n 15 43 71 99\n 20 48 76\n 26 54 82\n\n 105 133 161 189\n 111 139 167 195\n 116 144 172\n 122 150 178\n 128 156 184\n\n 201 229 257 285\n 207 235 263 291\n 212 240 268 296\n 218 246 274\n 224 252 280\n\n 303 331 359 387\n 308 336 364 392\n 314 342 370 398\n 320 348 376\n 325 353 381\n """\n iso_long_years = sorted(map(int, ISO_LONG_YEARS_TABLE.split()))\n L = []\n for i in range(400):\n d = self.theclass(2000+i, 12, 31)\n d1 = self.theclass(1600+i, 12, 31)\n self.assertEqual(d.isocalendar()[1:], d1.isocalendar()[1:])\n if d.isocalendar()[1] == 53:\n L.append(i)\n self.assertEqual(L, iso_long_years)\n\n def test_isoformat(self):\n t = self.theclass(2, 3, 2)\n self.assertEqual(t.isoformat(), "0002-03-02")\n\n def test_ctime(self):\n t = self.theclass(2002, 3, 2)\n self.assertEqual(t.ctime(), "Sat Mar 2 00:00:00 2002")\n\n def test_strftime(self):\n t = self.theclass(2005, 3, 2)\n self.assertEqual(t.strftime("m:%m d:%d y:%y"), o oconds\n # n == 315537897599999999 ~= 2**58.13\n justasbig = timedelta(0, 0, n)\n self.assertEqual(big, justasbig)\n self.assertEqual(self.theclass.min + big, self.theclass.max)\n self.assertEqual(self.theclass.max - big, self.theclass.min)\n\n def test_timetuple(self):\n for i in range(7):\n # January 2, 1956 is a Monday (0)\n d = self.theclass(1956, 1, 2+i)\n t = d.timetuple()\n self.assertEqual(t, (1956, 1, 2+i, 0, 0, 0, i, 2+i, -1))\n # February 1, 1956 is a Wednesday (2)\n d = self.theclass(1956, 2, 1+i)\n t = d.timetuple()\n self.assertEqual(t, (1956, 2, 1+i, 0, 0, 0, (2+i)%7, 32+i, -1))\n # March 1, 1956 is a Thursday (3), and is the 31+29+1 = 61st day\n # of the year.\n d = self.theclass(1956, 3, 1+i)\n t = d.timetuple()\n self.assertEqual(t, (1956, 3, 1+i, 0, 0, 0, (3+i)%7, 61+i, -1))\n self.assertEqual(t.tm_year, 1956)\n self.assertEqual(t.tm_mon, 3)\n self.assertEqual(t.tm_mday, 1+i)\n self.assertEqual(t.tm_hour, 0)\n self.assertEqual(t.tm_min, 0)\n self.assertEqual(t.tm_sec, 0)\n self.assertEqual(t.tm_wday, (3+i)%7)\n self.assertEqual(t.tm_yday, 61+i)\n self.assertEqual(t.tm_isdst, -1)\n\n def test_pickling(self):\n args = 6, 7, 23\n orig = self.theclass(*args)\n for pickler, unpickler, proto in pickle_choices:\n green = pickler.dumps(orig, proto)\n derived = unpickler.loads(green)\n self.assertEqual(orig, derived)\n self.assertEqual(orig.__reduce__(), orig.__reduce_ex__(2))\n\n def test_compat_unpickle(self):\n tests = [\n b"cdatetime\\ndate\\n(S\'\\\\x07\\\\xdf\\\\x0b\\\\x1b\'\\ntR.",\n b\'cdatetime\\ndate\\n(U\\x04\\x07\\xdf\\x0b\\x1btR.\',\n b\'\\x80\\x02cdatetime\\ndate\\nU\\x04\\x07\\xdf\\x0b\\x1b\\x85R.\',\n ]\n args = 2015, 11, 27\n expected = self.theclass(*args)\n for data in tests:\n for loads in pickle_loads:\n derived = loads(data, encoding=\'latin1\')\n self.assertEqual(derived, expected)\n\n def test_compare(self):\n t1 = self.theclass(2, 3, 4)\n t2 = self.theclass(2, 3, 4)\n self.assertEqual(t1, t2)\n self.assertTrue(t1 <= t2)\n self.assertTrue(t1 >= t2)\n self.assertFalse(t1 != t2)\n self.assertFalse(t1 < t2)\n self.assertFalse(t1 > t2)\n\n for args in (3, 3, 3), (2, 4, 4), (2, 3, 5):\n t2 = self.theclass(*args) # this is larger than t1\n self.assertTrue(t1 < t2)\n self.assertTrue(t2 > t1)\n self.assertTrue(t1 <= t2)\n self.assertTrue(t2 >= t1)\n self.assertTrue(t1 != t2)\n self.assertTrue(t2 != t1)\n self.assertFalse(t1 == t2)\n self.assertFalse(t2 == t1)\n self.assertFalse(t1 > t2)\n self.assertFalse(t2 < t1)\n self.assertFalse(t1 >= t2)\n self.assertFalse(t2 <= t1)\n\n for badarg in OTHERSTUFF:\n self.assertEqual(t1 == badarg, False)\n self.assertEqual(t1 != badarg, True)\n self.assertEqual(badarg == t1, False)\n self.assertEqual(badarg != t1, True)\n\n self.assertRaises(TypeError, lambda: t1 < badarg)\n self.assertRaises(TypeError, lambda: t1 > badarg)\n self.assertRaises(TypeError, lambda: t1 >= badarg)\n self.assertRaises(TypeError, lambda: badarg <= t1)\n self.assertRaises(TypeError, lambda: badarg < t1)\n self.assertRaises(TypeError, lambda: badarg > t1)\n self.assertRaises(TypeError, lambda: badarg >= t1)\n\n def test_mixed_compare(self):\n our = self.theclass(2000, 4, 5)\n\n # Our class can be compared for equality to other classes\n self.assertEqual(our == 1, False)\n o o start):\n return start + self.year + self.month\n\n args = 2003, 4, 14\n\n dt1 = self.theclass(*args)\n dt2 = C(*args, **{\'extra\': 7})\n\n self.assertEqual(dt2.__class__, C)\n self.assertEqual(dt2.theAnswer, 42)\n self.assertEqual(dt2.extra, 7)\n self.assertEqual(dt1.toordinal(), dt2.toordinal())\n self.assertEqual(dt2.newmeth(-7), dt1.year + dt1.month - 7)\n\n def test_subclass_alternate_constructors(self):\n # Test that alternate constructors call the constructor\n class DateSubclass(self.theclass):\n def __new__(cls, *args, **kwargs):\n result = self.theclass.__new__(cls, *args, **kwargs)\n result.extra = 7\n\n return result\n\n args = (2003, 4, 14)\n d_ord = 731319 # Equivalent ordinal date\n d_isoformat = \'2003-04-14\' # Equivalent isoformat()\n\n base_d = DateSubclass(*args)\n self.assertIsInstance(base_d, DateSubclass)\n self.assertEqual(base_d.extra, 7)\n\n # Timestamp depends on time zone, so we\'ll calculate the equivalent here\n ts = datetime.combine(base_d, time(0)).timestamp()\n\n test_cases = [\n (\'fromordinal\', (d_ord,)),\n (\'fromtimestamp\', (ts,)),\n (\'fromisoformat\', (d_isoformat,)),\n ]\n\n for constr_name, constr_args in test_cases:\n for base_obj in (DateSubclass, base_d):\n # Test both the classmethod and method\n with self.subTest(base_obj_type=type(base_obj),\n constr_name=constr_name):\n constr = getattr(base_obj, constr_name)\n\n dt = constr(*constr_args)\n\n # Test that it creates the right subclass\n self.assertIsInstance(dt, DateSubclass)\n\n # Test that it\'s equal to the base object\n self.assertEqual(dt, base_d)\n\n # Test that it called the constructor\n self.assertEqual(dt.extra, 7)\n\n def test_pickling_subclass_date(self):\n\n args = 6, 7, 23\n orig = SubclassDate(*args)\n for pickler, unpickler, proto in pickle_choices:\n green = pickler.dumps(orig, proto)\n derived = unpickler.loads(green)\n self.assertEqual(orig, derived)\n self.assertTrue(isinstance(derived, SubclassDate))\n\n def test_backdoor_resistance(self):\n # For fast unpickling, the constructor accepts a pickle byte string.\n # This is a low-overhead backdoor. A user can (by intent or\n # mistake) pass a string directly, which (if it\'s the right length)\n # will get treated like a pickle, and bypass the normal sanity\n # checks in the constructor. This can create insane objects.\n # The constructor doesn\'t want to burn the time to validate all\n # fields, but does check the month field. This stops, e.g.,\n # datetime.datetime(\'1995-03-25\') from yielding an insane object.\n base = b\'1995-03-25\'\n if not issubclass(self.theclass, datetime):\n base = base[:4]\n for month_byte in b\'9\', b\'\\0\', b\'\\r\', b\'\\xff\':\n self.assertRaises(TypeError, self.theclass,\n base[:2] + month_byte + base[3:])\n if issubclass(self.theclass, datetime):\n # Good bytes, but bad tzinfo:\n with self.assertRaisesRegex(TypeError, \'^bad tzinfo state arg$\'):\n self.theclass(bytes([1] * len(base)), \'EST\')\n\n for ord_byte in range(1, 13):\n # This shouldn\'t blow up because of the month byte alone. If\n # the implementation changes to do more-careful checking, it may\n # blow up because other fields are insane.\n self.theclass(base[:2] + bytes([ord_byte]) + base[3:])\n\n def test_valuerror_messages(self):\n pattern = re.compile(\n o o \'2009-02-29\', # Invalid leap day\n \'2019-W53-1\', # No week 53 in 2019\n \'2020-W54-1\', # No week 54\n \'0000-W25-1\', # Invalid year\n \'10000-W25-1\', # Invalid year\n \'2020-W25-0\', # Invalid day-of-week\n \'2020-W25-8\', # Invalid day-of-week\n \'٢025-03-09\' # Unicode characters\n \'2009\\ud80002\\ud80028\', # Separators are surrogate codepoints\n ]\n\n for bad_str in bad_strs:\n with self.assertRaises(ValueError):\n self.theclass.fromisoformat(bad_str)\n\n def test_fromisoformat_fails_typeerror(self):\n # Test that fromisoformat fails when passed the wrong type\n bad_types = [b\'2009-03-01\', None, io.StringIO(\'2009-03-01\')]\n for bad_type in bad_types:\n with self.assertRaises(TypeError):\n self.theclass.fromisoformat(bad_type)\n\n def test_fromisocalendar(self):\n # For each test case, assert that fromisocalendar is the\n # inverse of the isocalendar function\n dates = [\n (2016, 4, 3),\n (2005, 1, 2), # (2004, 53, 7)\n (2008, 12, 30), # (2009, 1, 2)\n (2010, 1, 2), # (2009, 53, 6)\n (2009, 12, 31), # (2009, 53, 4)\n (1900, 1, 1), # Unusual non-leap year (year % 100 == 0)\n (1900, 12, 31),\n (2000, 1, 1), # Unusual leap year (year % 400 == 0)\n (2000, 12, 31),\n (2004, 1, 1), # Leap year\n (2004, 12, 31),\n (1, 1, 1),\n (9999, 12, 31),\n (MINYEAR, 1, 1),\n (MAXYEAR, 12, 31),\n ]\n\n for datecomps in dates:\n with self.subTest(datecomps=datecomps):\n dobj = self.theclass(*datecomps)\n isocal = dobj.isocalendar()\n\n d_roundtrip = self.theclass.fromisocalendar(*isocal)\n\n self.assertEqual(dobj, d_roundtrip)\n\n def test_fromisocalendar_value_errors(self):\n isocals = [\n (2019, 0, 1),\n (2019, -1, 1),\n (2019, 54, 1),\n (2019, 1, 0),\n (2019, 1, -1),\n (2019, 1, 8),\n (2019, 53, 1),\n (10000, 1, 1),\n (0, 1, 1),\n (9999999, 1, 1),\n (2<<32, 1, 1),\n (2019, 2<<32, 1),\n (2019, 1, 2<<32),\n ]\n\n for isocal in isocals:\n with self.subTest(isocal=isocal):\n with self.assertRaises(ValueError):\n self.theclass.fromisocalendar(*isocal)\n\n def test_fromisocalendar_type_errors(self):\n err_txformers = [\n str,\n float,\n lambda x: None,\n ]\n\n # Take a valid base tuple and transform it to contain one argument\n # with the wrong type. Repeat this for each argument, e.g.\n # [("2019", 1, 1), (2019, "1", 1), (2019, 1, "1"), ...]\n isocals = []\n base = (2019, 1, 1)\n for i in range(3):\n for txformer in err_txformers:\n err_val = list(base)\n err_val[i] = txformer(err_val[i])\n isocals.append(tuple(err_val))\n\n for isocal in isocals:\n with self.subTest(isocal=isocal):\n with self.assertRaises(TypeError):\n self.theclass.fromisocalendar(*isocal)\n\n\n#############################################################################\n# datetime tests\n\nclass SubclassDatetime(datetime):\n sub_var = 1\n\nclass TestDateTime(TestDate):\n\n theclass = datetime\n\n def test_basic_attributes(self):\n dt = self.theclass(2002, 3, 1, 12, 0)\n self.assertEqual(dt.year, 2002)\n self.assertEqual(dt.month, 3)\n self.assertEqual(dt.day, 1)\n self.assertEqual(dt.hour, 12)\n self.assertEqual(dt.minute, 0)\n self.assertEqual(dt.second, o o7\', timedelta(hours=6, minutes=27)),\n (\'12:32:30\', timedelta(hours=12, minutes=32, seconds=30)),\n (\'02:04:09.123456\', timedelta(hours=2, minutes=4, seconds=9, microseconds=123456))\n ]\n\n tzinfos = [\n (\'\', None),\n (\'+00:00\', timezone.utc),\n (\'+00:00\', timezone(timedelta(0))),\n ]\n\n tzinfos += [\n (prefix + expected, timezone(sign * td))\n for expected, td in tzoffsets\n for prefix, sign in [(\'-\', -1), (\'+\', 1)]\n ]\n\n dt_base = self.theclass(2016, 4, 1, 12, 37, 9)\n exp_base = \'2016-04-01T12:37:09\'\n\n for exp_tz, tzi in tzinfos:\n dt = dt_base.replace(tzinfo=tzi)\n exp = exp_base + exp_tz\n with self.subTest(tzi=tzi):\n assert dt.isoformat() == exp\n\n def test_format(self):\n dt = self.theclass(2007, 9, 10, 4, 5, 1, 123)\n self.assertEqual(dt.__format__(\'\'), str(dt))\n\n with self.assertRaisesRegex(TypeError, \'must be str, not int\'):\n dt.__format__(123)\n\n # check that a derived class\'s __str__() gets called\n class A(self.theclass):\n def __str__(self):\n return \'A\'\n a = A(2007, 9, 10, 4, 5, 1, 123)\n self.assertEqual(a.__format__(\'\'), \'A\')\n\n # check that a derived class\'s strftime gets called\n class B(self.theclass):\n def strftime(self, format_spec):\n return \'B\'\n b = B(2007, 9, 10, 4, 5, 1, 123)\n self.assertEqual(b.__format__(\'\'), str(dt))\n\n for fmt in ["m:%m d:%d y:%y",\n "m:%m d:%d y:%y H:%H M:%M S:%S",\n "%z %:z %Z",\n ]:\n self.assertEqual(dt.__format__(fmt), dt.strftime(fmt))\n self.assertEqual(a.__format__(fmt), dt.strftime(fmt))\n self.assertEqual(b.__format__(fmt), \'B\')\n\n def test_more_ctime(self):\n # Test fields that TestDate doesn\'t touch.\n import time\n\n t = self.theclass(2002, 3, 2, 18, 3, 5, 123)\n self.assertEqual(t.ctime(), "Sat Mar 2 18:03:05 2002")\n # Oops! The next line fails on Win2K under MSVC 6, so it\'s commented\n # out. The difference is that t.ctime() produces " 2" for the day,\n # but platform ctime() produces "02" for the day. According to\n # C99, t.ctime() is correct here.\n # self.assertEqual(t.ctime(), time.ctime(time.mktime(t.timetuple())))\n\n # So test a case where that difference doesn\'t matter.\n t = self.theclass(2002, 3, 22, 18, 3, 5, 123)\n self.assertEqual(t.ctime(), time.ctime(time.mktime(t.timetuple())))\n\n def test_tz_independent_comparing(self):\n dt1 = self.theclass(2002, 3, 1, 9, 0, 0)\n dt2 = self.theclass(2002, 3, 1, 10, 0, 0)\n dt3 = self.theclass(2002, 3, 1, 9, 0, 0)\n self.assertEqual(dt1, dt3)\n self.assertTrue(dt2 > dt3)\n\n # Make sure comparison doesn\'t forget microseconds, and isn\'t done\n # via comparing a float timestamp (an IEEE double doesn\'t have enough\n # precision to span microsecond resolution across years 1 through 9999,\n # so comparing via timestamp necessarily calls some distinct values\n # equal).\n dt1 = self.theclass(MAXYEAR, 12, 31, 23, 59, 59, 999998)\n us = timedelta(microseconds=1)\n dt2 = dt1 + us\n self.assertEqual(dt2 - dt1, us)\n self.assertTrue(dt1 < dt2)\n\n def test_strftime_with_bad_tzname_replace(self):\n # verify ok if tzinfo.tzname().replace() returns a non-string\n class MyTzInfo(FixedOffset):\n def tzname(self, dt):\n class MyStr(str):\n def replace(self, *args):\n return None\n return MyStr(\'name\')\n t = self.theclass(2005, 3, 2, 0, 0, 0, 0, MyTzInfo(3, \'name\'))\n self.assertRaises(TypeError, t.strftime, \'%Z\')\n\n def tes o o self.assertEqual(hour + a, self.theclass(2002, 3, 2, 18, 6))\n self.assertEqual(a + 10*hour, self.theclass(2002, 3, 3, 3, 6))\n self.assertEqual(a - hour, self.theclass(2002, 3, 2, 16, 6))\n self.assertEqual(-hour + a, self.theclass(2002, 3, 2, 16, 6))\n self.assertEqual(a - hour, a + -hour)\n self.assertEqual(a - 20*hour, self.theclass(2002, 3, 1, 21, 6))\n self.assertEqual(a + day, self.theclass(2002, 3, 3, 17, 6))\n self.assertEqual(a - day, self.theclass(2002, 3, 1, 17, 6))\n self.assertEqual(a + week, self.theclass(2002, 3, 9, 17, 6))\n self.assertEqual(a - week, self.theclass(2002, 2, 23, 17, 6))\n self.assertEqual(a + 52*week, self.theclass(2003, 3, 1, 17, 6))\n self.assertEqual(a - 52*week, self.theclass(2001, 3, 3, 17, 6))\n self.assertEqual((a + week) - a, week)\n self.assertEqual((a + day) - a, day)\n self.assertEqual((a + hour) - a, hour)\n self.assertEqual((a + millisec) - a, millisec)\n self.assertEqual((a - week) - a, -week)\n self.assertEqual((a - day) - a, -day)\n self.assertEqual((a - hour) - a, -hour)\n self.assertEqual((a - millisec) - a, -millisec)\n self.assertEqual(a - (a + week), -week)\n self.assertEqual(a - (a + day), -day)\n self.assertEqual(a - (a + hour), -hour)\n self.assertEqual(a - (a + millisec), -millisec)\n self.assertEqual(a - (a - week), week)\n self.assertEqual(a - (a - day), day)\n self.assertEqual(a - (a - hour), hour)\n self.assertEqual(a - (a - millisec), millisec)\n self.assertEqual(a + (week + day + hour + millisec),\n self.theclass(2002, 3, 10, 18, 6, 0, 1000))\n self.assertEqual(a + (week + day + hour + millisec),\n (((a + week) + day) + hour) + millisec)\n self.assertEqual(a - (week + day + hour + millisec),\n self.theclass(2002, 2, 22, 16, 5, 59, 999000))\n self.assertEqual(a - (week + day + hour + millisec),\n (((a - week) - day) - hour) - millisec)\n # Add/sub ints or floats should be illegal\n for i in 1, 1.0:\n self.assertRaises(TypeError, lambda: a+i)\n self.assertRaises(TypeError, lambda: a-i)\n self.assertRaises(TypeError, lambda: i+a)\n self.assertRaises(TypeError, lambda: i-a)\n\n # delta - datetime is senseless.\n self.assertRaises(TypeError, lambda: day - a)\n # mixing datetime and (delta or datetime) via * or // is senseless\n self.assertRaises(TypeError, lambda: day * a)\n self.assertRaises(TypeError, lambda: a * day)\n self.assertRaises(TypeError, lambda: day // a)\n self.assertRaises(TypeError, lambda: a // day)\n self.assertRaises(TypeError, lambda: a * a)\n self.assertRaises(TypeError, lambda: a // a)\n # datetime + datetime is senseless\n self.assertRaises(TypeError, lambda: a + a)\n\n def test_pickling(self):\n args = 6, 7, 23, 20, 59, 1, 64**2\n orig = self.theclass(*args)\n for pickler, unpickler, proto in pickle_choices:\n green = pickler.dumps(orig, proto)\n derived = unpickler.loads(green)\n self.assertEqual(orig, derived)\n self.assertEqual(orig.__reduce__(), orig.__reduce_ex__(2))\n\n def test_more_pickling(self):\n a = self.theclass(2003, 2, 7, 16, 48, 37, 444116)\n for proto in range(pickle.HIGHEST_PROTOCOL + 1):\n s = pickle.dumps(a, proto)\n b = pickle.loads(s)\n self.assertEqual(b.year, 2003)\n self.assertEqual(b.month, 2)\n self.assertEqual(b.day, 7)\n\n def test_pickling_subclass_datetime(self):\n args = 6, 7, 23, 20, 59, 1, 64**2\n orig = SubclassDatetime(*args)\n for pickler, unpickler, proto in pickle_choices:\n green = pickler.dumps(orig, proto)\n derived = unpickler.loads(green)\n self.assertEqual(orig, o ol(self.theclass.fromtimestamp(t.timestamp()), t)\n\n # Timestamp may raise an overflow error on some platforms\n # XXX: Do we care to support the first and last year?\n for t in [self.theclass(2,1,1), self.theclass(9998,12,12)]:\n try:\n s = t.timestamp()\n except OverflowError:\n pass\n else:\n self.assertEqual(self.theclass.fromtimestamp(s), t)\n\n def test_timestamp_aware(self):\n t = self.theclass(1970, 1, 1, tzinfo=timezone.utc)\n self.assertEqual(t.timestamp(), 0.0)\n t = self.theclass(1970, 1, 1, 1, 2, 3, 4, tzinfo=timezone.utc)\n self.assertEqual(t.timestamp(),\n 3600 + 2*60 + 3 + 4*1e-6)\n t = self.theclass(1970, 1, 1, 1, 2, 3, 4,\n tzinfo=timezone(timedelta(hours=-5), \'EST\'))\n self.assertEqual(t.timestamp(),\n 18000 + 3600 + 2*60 + 3 + 4*1e-6)\n\n @support.run_with_tz(\'MSK-03\') # Something east of Greenwich\n def test_microsecond_rounding(self):\n def utcfromtimestamp(*args, **kwargs):\n with self.assertWarns(DeprecationWarning):\n return self.theclass.utcfromtimestamp(*args, **kwargs)\n\n for fts in [self.theclass.fromtimestamp,\n utcfromtimestamp]:\n zero = fts(0)\n self.assertEqual(zero.second, 0)\n self.assertEqual(zero.microsecond, 0)\n one = fts(1e-6)\n try:\n minus_one = fts(-1e-6)\n except OSError:\n # localtime(-1) and gmtime(-1) is not supported on Windows\n pass\n else:\n self.assertEqual(minus_one.second, 59)\n self.assertEqual(minus_one.microsecond, 999999)\n\n t = fts(-1e-8)\n self.assertEqual(t, zero)\n t = fts(-9e-7)\n self.assertEqual(t, minus_one)\n t = fts(-1e-7)\n self.assertEqual(t, zero)\n t = fts(-1/2**7)\n self.assertEqual(t.second, 59)\n self.assertEqual(t.microsecond, 992188)\n\n t = fts(1e-7)\n self.assertEqual(t, zero)\n t = fts(9e-7)\n self.assertEqual(t, one)\n t = fts(0.99999949)\n self.assertEqual(t.second, 0)\n self.assertEqual(t.microsecond, 999999)\n t = fts(0.9999999)\n self.assertEqual(t.second, 1)\n self.assertEqual(t.microsecond, 0)\n t = fts(1/2**7)\n self.assertEqual(t.second, 0)\n self.assertEqual(t.microsecond, 7812)\n\n def test_timestamp_limits(self):\n with self.subTest("minimum UTC"):\n min_dt = self.theclass.min.replace(tzinfo=timezone.utc)\n min_ts = min_dt.timestamp()\n\n # This test assumes that datetime.min == 0000-01-01T00:00:00.00\n # If that assumption changes, this value can change as well\n self.assertEqual(min_ts, -62135596800)\n\n with self.subTest("maximum UTC"):\n # Zero out microseconds to avoid rounding issues\n max_dt = self.theclass.max.replace(tzinfo=timezone.utc,\n microsecond=0)\n max_ts = max_dt.timestamp()\n\n # This test assumes that datetime.max == 9999-12-31T23:59:59.999999\n # If that assumption changes, this value can change as well\n self.assertEqual(max_ts, 253402300799.0)\n\n def test_fromtimestamp_limits(self):\n try:\n self.theclass.fromtimestamp(-2**32 - 1)\n except (OSError, OverflowError):\n self.skipTest("Test not valid on this platform")\n\n # XXX: Replace these with datetime.{min,max}.timestamp() when we solve\n # the issue with gh-91012\n min_dt = self.theclass.min + timedelta(days=1)\n min_ts = min_dt.timestamp()\n\n max_dt = self.theclass.max.replace(microsecond=0)\ o ot negative timestamps")\n def test_negative_float_fromtimestamp(self):\n # The result is tz-dependent; at least test that this doesn\'t\n # fail (like it did before bug 1646728 was fixed).\n self.theclass.fromtimestamp(-1.05)\n\n @unittest.skipIf(sys.platform == "win32", "Windows doesn\'t accept negative timestamps")\n def test_negative_float_utcfromtimestamp(self):\n with self.assertWarns(DeprecationWarning):\n d = self.theclass.utcfromtimestamp(-1.05)\n self.assertEqual(d, self.theclass(1969, 12, 31, 23, 59, 58, 950000))\n\n def test_utcnow(self):\n import time\n\n # Call it a success if utcnow() and utcfromtimestamp() are within\n # a second of each other.\n tolerance = timedelta(seconds=1)\n for dummy in range(3):\n with self.assertWarns(DeprecationWarning):\n from_now = self.theclass.utcnow()\n\n with self.assertWarns(DeprecationWarning):\n from_timestamp = self.theclass.utcfromtimestamp(time.time())\n if abs(from_timestamp - from_now) <= tolerance:\n break\n # Else try again a few times.\n self.assertLessEqual(abs(from_timestamp - from_now), tolerance)\n\n def test_strptime(self):\n string = \'2004-12-01 13:02:47.197\'\n format = \'%Y-%m-%d %H:%M:%S.%f\'\n expected = _strptime._strptime_datetime_datetime(self.theclass, string,\n format)\n got = self.theclass.strptime(string, format)\n self.assertEqual(expected, got)\n self.assertIs(type(expected), self.theclass)\n self.assertIs(type(got), self.theclass)\n\n # bpo-34482: Check that surrogates are handled properly.\n inputs = [\n (\'2004-12-01\\ud80013:02:47.197\', \'%Y-%m-%d\\ud800%H:%M:%S.%f\'),\n (\'2004\\ud80012-01 13:02:47.197\', \'%Y\\ud800%m-%d %H:%M:%S.%f\'),\n (\'2004-12-01 13:02\\ud80047.197\', \'%Y-%m-%d %H:%M\\ud800%S.%f\'),\n ]\n for string, format in inputs:\n with self.subTest(string=string, format=format):\n expected = _strptime._strptime_datetime_datetime(self.theclass,\n string, format)\n got = self.theclass.strptime(string, format)\n self.assertEqual(expected, got)\n\n strptime = self.theclass.strptime\n\n self.assertEqual(strptime("+0002", "%z").utcoffset(), 2 * MINUTE)\n self.assertEqual(strptime("-0002", "%z").utcoffset(), -2 * MINUTE)\n self.assertEqual(\n strptime("-00:02:01.000003", "%z").utcoffset(),\n -timedelta(minutes=2, seconds=1, microseconds=3)\n )\n # Only local timezone and UTC are supported\n for tzseconds, tzname in ((0, \'UTC\'), (0, \'GMT\'),\n (-_time.timezone, _time.tzname[0])):\n if tzseconds < 0:\n sign = \'-\'\n seconds = -tzseconds\n else:\n sign =\'+\'\n seconds = tzseconds\n hours, minutes = divmod(seconds//60, 60)\n dtstr = "{}{:02d}{:02d} {}".format(sign, hours, minutes, tzname)\n dt = strptime(dtstr, "%z %Z")\n self.assertEqual(dt.utcoffset(), timedelta(seconds=tzseconds))\n self.assertEqual(dt.tzname(), tzname)\n # Can produce inconsistent datetime\n dtstr, fmt = "+1234 UTC", "%z %Z"\n dt = strptime(dtstr, fmt)\n self.assertEqual(dt.utcoffset(), 12 * HOUR + 34 * MINUTE)\n self.assertEqual(dt.tzname(), \'UTC\')\n # yet will roundtrip\n self.assertEqual(dt.strftime(fmt), dtstr)\n\n # Produce naive datetime if no %z is provided\n self.assertEqual(strptime("UTC", "%Z").tzinfo, None)\n\n with self.assertRaises(ValueError): strptime("-2400", "%z")\n with self.assertRaises(ValueError): strptime("-000", "%z")\n with self.assertRaises(Valu o oest_more_strftime(self):\n # This tests fields beyond those tested by the TestDate.test_strftime.\n t = self.theclass(2004, 12, 31, 6, 22, 33, 47)\n self.assertEqual(t.strftime("%m %d %y %f %S %M %H %j"),\n "12 31 04 000047 33 22 06 366")\n for (s, us), z in [((33, 123), "33.000123"), ((33, 0), "33"),]:\n tz = timezone(-timedelta(hours=2, seconds=s, microseconds=us))\n t = t.replace(tzinfo=tz)\n self.assertEqual(t.strftime("%z"), "-0200" + z)\n self.assertEqual(t.strftime("%:z"), "-02:00:" + z)\n\n def test_strftime_special(self):\n t = self.theclass(2004, 12, 31, 6, 22, 33, 47)\n s1 = t.strftime(\'%c\')\n s2 = t.strftime(\'%B\')\n # gh-52551, gh-78662: Unicode strings should pass through strftime,\n # independently from locale.\n self.assertEqual(t.strftime(\'\\U0001f40d\'), \'\\U0001f40d\')\n self.assertEqual(t.strftime(\'\\U0001f4bb%c\\U0001f40d%B\'), f\'\\U0001f4bb{s1}\\U0001f40d{s2}\')\n self.assertEqual(t.strftime(\'%c\\U0001f4bb%B\\U0001f40d\'), f\'{s1}\\U0001f4bb{s2}\\U0001f40d\')\n # Lone surrogates should pass through.\n self.assertEqual(t.strftime(\'\\ud83d\'), \'\\ud83d\')\n self.assertEqual(t.strftime(\'\\udc0d\'), \'\\udc0d\')\n self.assertEqual(t.strftime(\'\\ud83d%c\\udc0d%B\'), f\'\\ud83d{s1}\\udc0d{s2}\')\n self.assertEqual(t.strftime(\'%c\\ud83d%B\\udc0d\'), f\'{s1}\\ud83d{s2}\\udc0d\')\n self.assertEqual(t.strftime(\'%c\\udc0d%B\\ud83d\'), f\'{s1}\\udc0d{s2}\\ud83d\')\n # Surrogate pairs should not recombine.\n self.assertEqual(t.strftime(\'\\ud83d\\udc0d\'), \'\\ud83d\\udc0d\')\n self.assertEqual(t.strftime(\'%c\\ud83d\\udc0d%B\'), f\'{s1}\\ud83d\\udc0d{s2}\')\n # Surrogate-escaped bytes should not recombine.\n self.assertEqual(t.strftime(\'\\udcf0\\udc9f\\udc90\\udc8d\'), \'\\udcf0\\udc9f\\udc90\\udc8d\')\n self.assertEqual(t.strftime(\'%c\\udcf0\\udc9f\\udc90\\udc8d%B\'), f\'{s1}\\udcf0\\udc9f\\udc90\\udc8d{s2}\')\n # gh-124531: The null character should not terminate the format string.\n self.assertEqual(t.strftime(\'\\0\'), \'\\0\')\n self.assertEqual(t.strftime(\'\\0\'*1000), \'\\0\'*1000)\n self.assertEqual(t.strftime(\'\\0%c\\0%B\'), f\'\\0{s1}\\0{s2}\')\n self.assertEqual(t.strftime(\'%c\\0%B\\0\'), f\'{s1}\\0{s2}\\0\')\n\n def test_extract(self):\n dt = self.theclass(2002, 3, 4, 18, 45, 3, 1234)\n self.assertEqual(dt.date(), date(2002, 3, 4))\n self.assertEqual(dt.time(), time(18, 45, 3, 1234))\n\n def test_combine(self):\n d = date(2002, 3, 4)\n t = time(18, 45, 3, 1234)\n expected = self.theclass(2002, 3, 4, 18, 45, 3, 1234)\n combine = self.theclass.combine\n dt = combine(d, t)\n self.assertEqual(dt, expected)\n\n dt = combine(time=t, date=d)\n self.assertEqual(dt, expected)\n\n self.assertEqual(d, dt.date())\n self.assertEqual(t, dt.time())\n self.assertEqual(dt, combine(dt.date(), dt.time()))\n\n self.assertRaises(TypeError, combine) # need an arg\n self.assertRaises(TypeError, combine, d) # need two args\n self.assertRaises(TypeError, combine, t, d) # args reversed\n self.assertRaises(TypeError, combine, d, t, 1) # wrong tzinfo type\n self.assertRaises(TypeError, combine, d, t, 1, 2) # too many args\n self.assertRaises(TypeError, combine, "date", "time") # wrong types\n self.assertRaises(TypeError, combine, d, "time") # wrong type\n self.assertRaises(TypeError, combine, "date", t) # wrong type\n\n # tzinfo= argument\n dt = combine(d, t, timezone.utc)\n self.assertIs(dt.tzinfo, timezone.utc)\n dt = combine(d, t, tzinfo=timezone.utc)\n self.assertIs(dt.tzinfo, timezone.utc)\n t = time()\n dt = combine(dt, t)\n self.assertEqual(dt.date(), d)\n self.assertEqual(dt.time(), t)\n\n def tes o ot here\n ts = base_d.timestamp()\n\n test_cases = [\n (\'fromtimestamp\', (ts,), base_d),\n # See https://bugs.python.org/issue32417\n (\'fromtimestamp\', (ts, timezone.utc),\n base_d.astimezone(timezone.utc)),\n (\'utcfromtimestamp\', (utc_ts,), base_d),\n (\'fromisoformat\', (d_isoformat,), base_d),\n (\'strptime\', (d_isoformat, \'%Y-%m-%dT%H:%M:%S.%f\'), base_d),\n (\'combine\', (date(*args[0:3]), time(*args[3:])), base_d),\n ]\n\n for constr_name, constr_args, expected in test_cases:\n for base_obj in (DateTimeSubclass, base_d):\n # Test both the classmethod and method\n with self.subTest(base_obj_type=type(base_obj),\n constr_name=constr_name):\n constructor = getattr(base_obj, constr_name)\n\n if constr_name == "utcfromtimestamp":\n with self.assertWarns(DeprecationWarning):\n dt = constructor(*constr_args)\n else:\n dt = constructor(*constr_args)\n\n # Test that it creates the right subclass\n self.assertIsInstance(dt, DateTimeSubclass)\n\n # Test that it\'s equal to the base object\n self.assertEqual(dt, expected)\n\n # Test that it called the constructor\n self.assertEqual(dt.extra, 7)\n\n def test_subclass_now(self):\n # Test that alternate constructors call the constructor\n class DateTimeSubclass(self.theclass):\n def __new__(cls, *args, **kwargs):\n result = self.theclass.__new__(cls, *args, **kwargs)\n result.extra = 7\n\n return result\n\n test_cases = [\n (\'now\', \'now\', {}),\n (\'utcnow\', \'utcnow\', {}),\n (\'now_utc\', \'now\', {\'tz\': timezone.utc}),\n (\'now_fixed\', \'now\', {\'tz\': timezone(timedelta(hours=-5), "EST")}),\n ]\n\n for name, meth_name, kwargs in test_cases:\n with self.subTest(name):\n constr = getattr(DateTimeSubclass, meth_name)\n if meth_name == "utcnow":\n with self.assertWarns(DeprecationWarning):\n dt = constr(**kwargs)\n else:\n dt = constr(**kwargs)\n\n self.assertIsInstance(dt, DateTimeSubclass)\n self.assertEqual(dt.extra, 7)\n\n def test_subclass_replace_fold(self):\n class DateTimeSubclass(self.theclass):\n pass\n\n dt = DateTimeSubclass(2012, 1, 1)\n dt2 = DateTimeSubclass(2012, 1, 1, fold=1)\n\n test_cases = [\n (\'self.replace\', dt.replace(year=2013), 0),\n (\'self.replace\', dt2.replace(year=2013), 1),\n (\'copy.replace\', copy.replace(dt, year=2013), 0),\n (\'copy.replace\', copy.replace(dt2, year=2013), 1),\n ]\n\n for name, res, fold in test_cases:\n with self.subTest(name, fold=fold):\n self.assertIs(type(res), DateTimeSubclass)\n self.assertEqual(res.year, 2013)\n self.assertEqual(res.fold, fold)\n\n def test_valuerror_messages(self):\n pattern = re.compile(\n r"(year|month|day|hour|minute|second) must "\n r"be in \\d+\\.\\.\\d+, not \\d+"\n )\n test_cases = [\n (2009, 4, 1, 12, 30, 90), # Second out of range\n (2009, 4, 1, 12, 90, 45), # Minute out of range\n (2009, 4, 1, 25, 30, 45), # Hour out of range\n (2009, 13, 1, 24, 0, 0), # Month out of range\n (9999, 12, 31, 24, 0, 0), # Year out of range\n ]\n for case in test_cases:\n with self.subTest(case):\n with self.assertRaisesRegex(ValueError, pattern):\n se o oe[0:6] + (new_microseconds,)\n\n dt = self.theclass(*(dt_tuple[0:(4 + ip)]), tzinfo=tzi)\n dtstr = dt.isoformat(timespec=ts)\n with self.subTest(dtstr=dtstr):\n dt_rt = self.theclass.fromisoformat(dtstr)\n self.assertEqual(dt, dt_rt)\n\n def test_fromisoformat_datetime_examples(self):\n UTC = timezone.utc\n BST = timezone(timedelta(hours=1), \'BST\')\n EST = timezone(timedelta(hours=-5), \'EST\')\n EDT = timezone(timedelta(hours=-4), \'EDT\')\n examples = [\n (\'2025-01-02\', self.theclass(2025, 1, 2, 0, 0)),\n (\'2025-01-02T03\', self.theclass(2025, 1, 2, 3, 0)),\n (\'2025-01-02T03:04\', self.theclass(2025, 1, 2, 3, 4)),\n (\'2025-01-02T0304\', self.theclass(2025, 1, 2, 3, 4)),\n (\'2025-01-02T03:04:05\', self.theclass(2025, 1, 2, 3, 4, 5)),\n (\'2025-01-02T030405\', self.theclass(2025, 1, 2, 3, 4, 5)),\n (\'2025-01-02T03:04:05.6\',\n self.theclass(2025, 1, 2, 3, 4, 5, 600000)),\n (\'2025-01-02T03:04:05,6\',\n self.theclass(2025, 1, 2, 3, 4, 5, 600000)),\n (\'2025-01-02T03:04:05.678\',\n self.theclass(2025, 1, 2, 3, 4, 5, 678000)),\n (\'2025-01-02T03:04:05.678901\',\n self.theclass(2025, 1, 2, 3, 4, 5, 678901)),\n (\'2025-01-02T03:04:05,678901\',\n self.theclass(2025, 1, 2, 3, 4, 5, 678901)),\n (\'2025-01-02T030405.678901\',\n self.theclass(2025, 1, 2, 3, 4, 5, 678901)),\n (\'2025-01-02T030405,678901\',\n self.theclass(2025, 1, 2, 3, 4, 5, 678901)),\n (\'2025-01-02T03:04:05.6789010\',\n self.theclass(2025, 1, 2, 3, 4, 5, 678901)),\n (\'2009-04-19T03:15:45.2345\',\n self.theclass(2009, 4, 19, 3, 15, 45, 234500)),\n (\'2009-04-19T03:15:45.1234567\',\n self.theclass(2009, 4, 19, 3, 15, 45, 123456)),\n (\'2025-01-02T03:04:05,678\',\n self.theclass(2025, 1, 2, 3, 4, 5, 678000)),\n (\'20250102\', self.theclass(2025, 1, 2, 0, 0)),\n (\'20250102T03\', self.theclass(2025, 1, 2, 3, 0)),\n (\'20250102T03:04\', self.theclass(2025, 1, 2, 3, 4)),\n (\'20250102T03:04:05\', self.theclass(2025, 1, 2, 3, 4, 5)),\n (\'20250102T030405\', self.theclass(2025, 1, 2, 3, 4, 5)),\n (\'20250102T03:04:05.6\',\n self.theclass(2025, 1, 2, 3, 4, 5, 600000)),\n (\'20250102T03:04:05,6\',\n self.theclass(2025, 1, 2, 3, 4, 5, 600000)),\n (\'20250102T03:04:05.678\',\n self.theclass(2025, 1, 2, 3, 4, 5, 678000)),\n (\'20250102T03:04:05,678\',\n self.theclass(2025, 1, 2, 3, 4, 5, 678000)),\n (\'20250102T03:04:05.678901\',\n self.theclass(2025, 1, 2, 3, 4, 5, 678901)),\n (\'20250102T030405.678901\',\n self.theclass(2025, 1, 2, 3, 4, 5, 678901)),\n (\'20250102T030405,678901\',\n self.theclass(2025, 1, 2, 3, 4, 5, 678901)),\n (\'20250102T030405.6789010\',\n self.theclass(2025, 1, 2, 3, 4, 5, 678901)),\n (\'2022W01\', self.theclass(2022, 1, 3)),\n (\'2022W52520\', self.theclass(2022, 12, 26, 20, 0)),\n (\'2022W527520\', self.theclass(2023, 1, 1, 20, 0)),\n (\'2026W01516\', self.theclass(2025, 12, 29, 16, 0)),\n (\'2026W013516\', self.theclass(2025, 12, 31, 16, 0)),\n (\'2025W01503\', self.theclass(2024, 12, 30, 3, 0)),\n (\'2025W014503\', self.theclass(2025, 1, 2, 3, 0)),\n (\'2025W01512\', self.theclass(2024, 12, 30, 12, 0)),\n (\'2025W014512\', self.theclass(2025, 1, 2, 12, 0)),\n (\'2025W014T121431\', self.theclass(2025, 1, 2, 12, 14, 31)),\n (\'2026W013T162100\', self.theclass(2025, 12, 31, 16, 21)),\n (\'2026W013 162100\', self.theclass(202 o o # Test that fromisoformat() fails on invalid values\n bad_strs = [\n \'\', # Empty string\n \'\\ud800\', # bpo-34454: Surrogate code point\n \'2009.04-19T03\', # Wrong first separator\n \'2009-04.19T03\', # Wrong second separator\n \'2009-04-19T0a\', # Invalid hours\n \'2009-04-19T03:1a:45\', # Invalid minutes\n \'2009-04-19T03:15:4a\', # Invalid seconds\n \'2009-04-19T03;15:45\', # Bad first time separator\n \'2009-04-19T03:15;45\', # Bad second time separator\n \'2009-04-19T03:15:4500:00\', # Bad time zone separator\n \'2009-04-19T03:15:45.123456+24:30\', # Invalid time zone offset\n \'2009-04-19T03:15:45.123456-24:30\', # Invalid negative offset\n \'2009-04-10ᛇᛇᛇᛇᛇ12:15\', # Unicode chars\n \'2009-04\\ud80010T12:15\', # Surrogate char in date\n \'2009-04-10T12\\ud80015\', # Surrogate char in time\n \'2009-04-19T1\', # Incomplete hours\n \'2009-04-19T12:3\', # Incomplete minutes\n \'2009-04-19T12:30:4\', # Incomplete seconds\n \'2009-04-19T12:\', # Ends with time separator\n \'2009-04-19T12:30:\', # Ends with time separator\n \'2009-04-19T12:30:45.\', # Ends with time separator\n \'2009-04-19T12:30:45.123456+\', # Ends with timezone separator\n \'2009-04-19T12:30:45.123456-\', # Ends with timezone separator\n \'2009-04-19T12:30:45.123456-05:00a\', # Extra text\n \'2009-04-19T12:30:45.123-05:00a\', # Extra text\n \'2009-04-19T12:30:45-05:00a\', # Extra text\n \'2009-04-19T24:00:00.000001\', # Has non-zero microseconds on 24:00\n \'2009-04-19T24:00:01.000000\', # Has non-zero seconds on 24:00\n \'2009-04-19T24:01:00.000000\', # Has non-zero minutes on 24:00\n \'2009-04-32T24:00:00.000000\', # Day is invalid before wrapping due to 24:00\n \'2009-13-01T24:00:00.000000\', # Month is invalid before wrapping due to 24:00\n \'9999-12-31T24:00:00.000000\', # Year is invalid after wrapping due to 24:00\n \'2009-04-19T12:30Z12:00\', # Extra time zone info after Z\n \'2009-04-19T12:30:45:334034\', # Invalid microsecond separator\n \'2009-04-19T12:30:45.400 +02:30\', # Space between ms and timezone (gh-130959)\n \'2009-04-19T12:30:45.400 \', # Trailing space (gh-130959)\n \'2009-04-19T12:30:45. 400\', # Space before fraction (gh-130959)\n \'2009-04-19T12:30:45+00:90:00\', # Time zone field out from range\n \'2009-04-19T12:30:45+00:00:90\', # Time zone field out from range\n \'2009-04-19T12:30:45-00:90:00\', # Time zone field out from range\n \'2009-04-19T12:30:45-00:00:90\', # Time zone field out from range\n ]\n\n for bad_str in bad_strs:\n with self.subTest(bad_str=bad_str):\n with self.assertRaises(ValueError):\n self.theclass.fromisoformat(bad_str)\n\n def test_fromisoformat_fails_datetime_valueerror(self):\n pattern = re.compile(\n r"(year|month|day|hour|minute|second) must "\n r"be in \\d+\\.\\.\\d+, not \\d+"\n )\n bad_strs = [\n "2009-04-01T12:30:90", # Second out of range\n "2009-04-01T12:90:45", # Minute out of range\n "2009-04-01T25:30:45", # Hour out of range\n "2009-13-01T24:00:00", # Month out of range\n "9999-12-31T24:00:00", # Year out of range\n ]\n\n for bad_str in bad_strs:\n with self.subTest(bad_str=bad_str):\n with self.assertRaisesRege o o self.assertFalse(t1 > t2)\n self.assertFalse(t2 < t1)\n self.assertFalse(t1 >= t2)\n self.assertFalse(t2 <= t1)\n\n for badarg in OTHERSTUFF:\n self.assertEqual(t1 == badarg, False)\n self.assertEqual(t1 != badarg, True)\n self.assertEqual(badarg == t1, False)\n self.assertEqual(badarg != t1, True)\n\n self.assertRaises(TypeError, lambda: t1 <= badarg)\n self.assertRaises(TypeError, lambda: t1 < badarg)\n self.assertRaises(TypeError, lambda: t1 > badarg)\n self.assertRaises(TypeError, lambda: t1 >= badarg)\n self.assertRaises(TypeError, lambda: badarg <= t1)\n self.assertRaises(TypeError, lambda: badarg < t1)\n self.assertRaises(TypeError, lambda: badarg > t1)\n self.assertRaises(TypeError, lambda: badarg >= t1)\n\n def test_bad_constructor_arguments(self):\n # bad hours\n self.theclass(0, 0) # no exception\n self.theclass(23, 0) # no exception\n self.assertRaises(ValueError, self.theclass, -1, 0)\n self.assertRaises(ValueError, self.theclass, 24, 0)\n # bad minutes\n self.theclass(23, 0) # no exception\n self.theclass(23, 59) # no exception\n self.assertRaises(ValueError, self.theclass, 23, -1)\n self.assertRaises(ValueError, self.theclass, 23, 60)\n # bad seconds\n self.theclass(23, 59, 0) # no exception\n self.theclass(23, 59, 59) # no exception\n self.assertRaises(ValueError, self.theclass, 23, 59, -1)\n self.assertRaises(ValueError, self.theclass, 23, 59, 60)\n # bad microseconds\n self.theclass(23, 59, 59, 0) # no exception\n self.theclass(23, 59, 59, 999999) # no exception\n self.assertRaises(ValueError, self.theclass, 23, 59, 59, -1)\n self.assertRaises(ValueError, self.theclass, 23, 59, 59, 1000000)\n\n def test_hash_equality(self):\n d = self.theclass(23, 30, 17)\n e = self.theclass(23, 30, 17)\n self.assertEqual(d, e)\n self.assertEqual(hash(d), hash(e))\n\n dic = {d: 1}\n dic[e] = 2\n self.assertEqual(len(dic), 1)\n self.assertEqual(dic[d], 2)\n self.assertEqual(dic[e], 2)\n\n d = self.theclass(0, 5, 17)\n e = self.theclass(0, 5, 17)\n self.assertEqual(d, e)\n self.assertEqual(hash(d), hash(e))\n\n dic = {d: 1}\n dic[e] = 2\n self.assertEqual(len(dic), 1)\n self.assertEqual(dic[d], 2)\n self.assertEqual(dic[e], 2)\n\n def test_isoformat(self):\n t = self.theclass(4, 5, 1, 123)\n self.assertEqual(t.isoformat(), "04:05:01.000123")\n self.assertEqual(t.isoformat(), str(t))\n\n t = self.theclass()\n self.assertEqual(t.isoformat(), "00:00:00")\n self.assertEqual(t.isoformat(), str(t))\n\n t = self.theclass(microsecond=1)\n self.assertEqual(t.isoformat(), "00:00:00.000001")\n self.assertEqual(t.isoformat(), str(t))\n\n t = self.theclass(microsecond=10)\n self.assertEqual(t.isoformat(), "00:00:00.000010")\n self.assertEqual(t.isoformat(), str(t))\n\n t = self.theclass(microsecond=100)\n self.assertEqual(t.isoformat(), "00:00:00.000100")\n self.assertEqual(t.isoformat(), str(t))\n\n t = self.theclass(microsecond=1000)\n self.assertEqual(t.isoformat(), "00:00:00.001000")\n self.assertEqual(t.isoformat(), str(t))\n\n t = self.theclass(microsecond=10000)\n self.assertEqual(t.isoformat(), "00:00:00.010000")\n self.assertEqual(t.isoformat(), str(t))\n\n t = self.theclass(microsecond=100000)\n self.assertEqual(t.isoformat(), "00:00:00.100000")\n self.assertEqual(t.isoformat(), str(t))\n\n t = self.theclass(hour=12, minute=34, second=56, microsecond=123456)\n self.assertEqual(t.isoformat(timespec=\'hours\'), "12")\n self.assertEqual(t.isoformat(timespec=\'minutes\'), "12 o oecombine.\n self.assertEqual(t.strftime(\'\\udcf0\\udc9f\\udc90\\udc8d\'), \'\\udcf0\\udc9f\\udc90\\udc8d\')\n self.assertEqual(t.strftime(\'%I%p%Z\\udcf0\\udc9f\\udc90\\udc8d%X\'), f\'{s1}\\udcf0\\udc9f\\udc90\\udc8d{s2}\')\n # gh-124531: The null character should not terminate the format string.\n self.assertEqual(t.strftime(\'\\0\'), \'\\0\')\n self.assertEqual(t.strftime(\'\\0\'*1000), \'\\0\'*1000)\n self.assertEqual(t.strftime(\'\\0%I%p%Z\\0%X\'), f\'\\0{s1}\\0{s2}\')\n self.assertEqual(t.strftime(\'%I%p%Z\\0%X\\0\'), f\'{s1}\\0{s2}\\0\')\n\n def test_format(self):\n t = self.theclass(1, 2, 3, 4)\n self.assertEqual(t.__format__(\'\'), str(t))\n\n with self.assertRaisesRegex(TypeError, \'must be str, not int\'):\n t.__format__(123)\n\n # check that a derived class\'s __str__() gets called\n class A(self.theclass):\n def __str__(self):\n return \'A\'\n a = A(1, 2, 3, 4)\n self.assertEqual(a.__format__(\'\'), \'A\')\n\n # check that a derived class\'s strftime gets called\n class B(self.theclass):\n def strftime(self, format_spec):\n return \'B\'\n b = B(1, 2, 3, 4)\n self.assertEqual(b.__format__(\'\'), str(t))\n\n for fmt in [\'%H %M %S\',\n ]:\n self.assertEqual(t.__format__(fmt), t.strftime(fmt))\n self.assertEqual(a.__format__(fmt), t.strftime(fmt))\n self.assertEqual(b.__format__(fmt), \'B\')\n\n def test_str(self):\n self.assertEqual(str(self.theclass(1, 2, 3, 4)), "01:02:03.000004")\n self.assertEqual(str(self.theclass(10, 2, 3, 4000)), "10:02:03.004000")\n self.assertEqual(str(self.theclass(0, 2, 3, 400000)), "00:02:03.400000")\n self.assertEqual(str(self.theclass(12, 2, 3, 0)), "12:02:03")\n self.assertEqual(str(self.theclass(23, 15, 0, 0)), "23:15:00")\n\n def test_repr(self):\n name = \'datetime.\' + self.theclass.__name__\n self.assertEqual(repr(self.theclass(1, 2, 3, 4)),\n "%s(1, 2, 3, 4)" % name)\n self.assertEqual(repr(self.theclass(10, 2, 3, 4000)),\n "%s(10, 2, 3, 4000)" % name)\n self.assertEqual(repr(self.theclass(0, 2, 3, 400000)),\n "%s(0, 2, 3, 400000)" % name)\n self.assertEqual(repr(self.theclass(12, 2, 3, 0)),\n "%s(12, 2, 3)" % name)\n self.assertEqual(repr(self.theclass(23, 15, 0, 0)),\n "%s(23, 15)" % name)\n\n def test_repr_subclass(self):\n """Subclasses should have bare names in the repr (gh-107773)."""\n td = SubclassTime(hour=1)\n self.assertEqual(repr(td), "SubclassTime(1, 0)")\n td = SubclassTime(hour=2, minute=30)\n self.assertEqual(repr(td), "SubclassTime(2, 30)")\n td = SubclassTime(hour=2, minute=30, second=11)\n self.assertEqual(repr(td), "SubclassTime(2, 30, 11)")\n td = SubclassTime(minute=30, second=11, fold=0)\n self.assertEqual(repr(td), "SubclassTime(0, 30, 11)")\n td = SubclassTime(minute=30, second=11, fold=1)\n self.assertEqual(repr(td), "SubclassTime(0, 30, 11, fold=1)")\n\n def test_resolution_info(self):\n self.assertIsInstance(self.theclass.min, self.theclass)\n self.assertIsInstance(self.theclass.max, self.theclass)\n self.assertIsInstance(self.theclass.resolution, timedelta)\n self.assertTrue(self.theclass.max > self.theclass.min)\n\n def test_pickling(self):\n args = 20, 59, 16, 64**2\n orig = self.theclass(*args)\n for pickler, unpickler, proto in pickle_choices:\n green = pickler.dumps(orig, proto)\n derived = unpickler.loads(green)\n self.assertEqual(orig, derived)\n self.assertEqual(orig.__reduce__(), orig.__reduce_ex__(2))\n\n def test_pickling_subclass_time(self):\n args = 20, 59, 16, 64**2\n orig = SubclassTime(*args)\n o o (\'%S\', \'04:05:6\', \'%H:%M:%S\', t),\n (\'%I\', \'4am:05:06\', \'%I%p:%M:%S\', t),\n ]\n for reason, string, format, target in inputs:\n reason = \'test single digit \' + reason\n with self.subTest(reason=reason,\n string=string,\n format=format,\n target=target):\n newdate = self.theclass.strptime(string, format)\n self.assertEqual(newdate, target, msg=reason)\n\n def test_bool(self):\n # time is always True.\n cls = self.theclass\n self.assertTrue(cls(1))\n self.assertTrue(cls(0, 1))\n self.assertTrue(cls(0, 0, 1))\n self.assertTrue(cls(0, 0, 0, 1))\n self.assertTrue(cls(0))\n self.assertTrue(cls())\n\n def test_replace(self):\n cls = self.theclass\n args = [1, 2, 3, 4]\n base = cls(*args)\n self.assertEqual(base.replace(), base)\n self.assertEqual(copy.replace(base), base)\n\n changes = (("hour", 5),\n ("minute", 6),\n ("second", 7),\n ("microsecond", 8))\n for i, (name, newval) in enumerate(changes):\n newargs = args[:]\n newargs[i] = newval\n expected = cls(*newargs)\n self.assertEqual(base.replace(**{name: newval}), expected)\n self.assertEqual(copy.replace(base, **{name: newval}), expected)\n\n # Out of bounds.\n base = cls(1)\n self.assertRaises(ValueError, base.replace, hour=24)\n self.assertRaises(ValueError, base.replace, minute=-1)\n self.assertRaises(ValueError, base.replace, second=100)\n self.assertRaises(ValueError, base.replace, microsecond=1000000)\n self.assertRaises(ValueError, copy.replace, base, hour=24)\n self.assertRaises(ValueError, copy.replace, base, minute=-1)\n self.assertRaises(ValueError, copy.replace, base, second=100)\n self.assertRaises(ValueError, copy.replace, base, microsecond=1000000)\n\n def test_subclass_replace(self):\n class TimeSubclass(self.theclass):\n def __new__(cls, *args, **kwargs):\n result = self.theclass.__new__(cls, *args, **kwargs)\n result.extra = 7\n return result\n\n ctime = TimeSubclass(12, 30)\n ctime2 = TimeSubclass(12, 30, fold=1)\n\n test_cases = [\n (\'self.replace\', ctime.replace(hour=10), 0),\n (\'self.replace\', ctime2.replace(hour=10), 1),\n (\'copy.replace\', copy.replace(ctime, hour=10), 0),\n (\'copy.replace\', copy.replace(ctime2, hour=10), 1),\n ]\n\n for name, res, fold in test_cases:\n with self.subTest(name, fold=fold):\n self.assertIs(type(res), TimeSubclass)\n self.assertEqual(res.hour, 10)\n self.assertEqual(res.minute, 30)\n self.assertEqual(res.extra, 7)\n self.assertEqual(res.fold, fold)\n\n def test_subclass_time(self):\n\n class C(self.theclass):\n theAnswer = 42\n\n def __new__(cls, *args, **kws):\n temp = kws.copy()\n extra = temp.pop(\'extra\')\n result = self.theclass.__new__(cls, *args, **temp)\n result.extra = extra\n return result\n\n def newmeth(self, start):\n return start + self.hour + self.second\n\n args = 4, 5, 6\n\n dt1 = self.theclass(*args)\n dt2 = C(*args, **{\'extra\': 7})\n\n self.assertEqual(dt2.__class__, C)\n self.assertEqual(dt2.theAnswer, 42)\n self.assertEqual(dt2.extra, 7)\n self.assertEqual(dt1.isoformat(), dt2.isoformat())\n self.assertEqual(dt2.newmeth(-7), dt1.hour + dt1.second - 7)\n\n def test_backdoor_resistance(self):\n # see TestDate.test_backdoor_resistance().\n base = \'2:59.0\'\n for hour_byte in \' \', o opeError, t.dst)\n self.assertRaises(TypeError, t.tzname)\n\n # Offset out of range.\n class C6(tzinfo):\n def utcoffset(self, dt): return timedelta(hours=-24)\n def dst(self, dt): return timedelta(hours=24)\n t = cls(1, 1, 1, tzinfo=C6())\n self.assertRaises(ValueError, t.utcoffset)\n self.assertRaises(ValueError, t.dst)\n\n # Not a whole number of seconds.\n class C7(tzinfo):\n def utcoffset(self, dt): return timedelta(microseconds=61)\n def dst(self, dt): return timedelta(microseconds=-81)\n t = cls(1, 1, 1, tzinfo=C7())\n self.assertEqual(t.utcoffset(), timedelta(microseconds=61))\n self.assertEqual(t.dst(), timedelta(microseconds=-81))\n\n def test_aware_compare(self):\n cls = self.theclass\n\n # Ensure that utcoffset() gets ignored if the comparands have\n # the same tzinfo member.\n class OperandDependentOffset(tzinfo):\n def utcoffset(self, t):\n if t.minute < 10:\n # d0 and d1 equal after adjustment\n return timedelta(minutes=t.minute)\n else:\n # d2 off in the weeds\n return timedelta(minutes=59)\n\n base = cls(8, 9, 10, tzinfo=OperandDependentOffset())\n d0 = base.replace(minute=3)\n d1 = base.replace(minute=9)\n d2 = base.replace(minute=11)\n for x in d0, d1, d2:\n for y in d0, d1, d2:\n for op in lt, le, gt, ge, eq, ne:\n got = op(x, y)\n expected = op(x.minute, y.minute)\n self.assertEqual(got, expected)\n\n # However, if they\'re different members, uctoffset is not ignored.\n # Note that a time can\'t actually have an operand-dependent offset,\n # though (and time.utcoffset() passes None to tzinfo.utcoffset()),\n # so skip this test for time.\n if cls is not time:\n d0 = base.replace(minute=3, tzinfo=OperandDependentOffset())\n d1 = base.replace(minute=9, tzinfo=OperandDependentOffset())\n d2 = base.replace(minute=11, tzinfo=OperandDependentOffset())\n for x in d0, d1, d2:\n for y in d0, d1, d2:\n got = (x > y) - (x < y)\n if (x is d0 or x is d1) and (y is d0 or y is d1):\n expected = 0\n elif x is y is d2:\n expected = 0\n elif x is d2:\n expected = -1\n else:\n assert y is d2\n expected = 1\n self.assertEqual(got, expected)\n\n\n# Testing time objects with a non-None tzinfo.\nclass TestTimeTZ(TestTime, TZInfoBase, unittest.TestCase):\n theclass = time\n\n def test_empty(self):\n t = self.theclass()\n self.assertEqual(t.hour, 0)\n self.assertEqual(t.minute, 0)\n self.assertEqual(t.second, 0)\n self.assertEqual(t.microsecond, 0)\n self.assertIsNone(t.tzinfo)\n\n def test_zones(self):\n est = FixedOffset(-300, "EST", 1)\n utc = FixedOffset(0, "UTC", -2)\n met = FixedOffset(60, "MET", 3)\n t1 = time( 7, 47, tzinfo=est)\n t2 = time(12, 47, tzinfo=utc)\n t3 = time(13, 47, tzinfo=met)\n t4 = time(microsecond=40)\n t5 = time(microsecond=40, tzinfo=utc)\n\n self.assertEqual(t1.tzinfo, est)\n self.assertEqual(t2.tzinfo, utc)\n self.assertEqual(t3.tzinfo, met)\n self.assertIsNone(t4.tzinfo)\n self.assertEqual(t5.tzinfo, utc)\n\n self.assertEqual(t1.utcoffset(), timedelta(minutes=-300))\n self.assertEqual(t2.utcoffset(), timedelta(minutes=0))\n self.assertEqual(t3.utcoffset(), timedelta(minutes=60))\n self.assertIsNone(t4.utcoffset())\n self.assertRaises(TypeError, t1.utcoffset, "no args")\n\n self.assertEqual(t1.tzname(), "EST")\n o og, derived)\n self.assertIsInstance(derived.tzinfo, PicklableFixedOffset)\n self.assertEqual(derived.utcoffset(), timedelta(minutes=-300))\n self.assertEqual(derived.tzname(), \'cookie\')\n self.assertEqual(orig.__reduce__(), orig.__reduce_ex__(2))\n\n def test_compat_unpickle(self):\n tests = [\n b"cdatetime\\ntime\\n(S\'\\\\x05\\\\x06\\\\x07\\\\x01\\\\xe2@\'\\n"\n b"ctest.datetimetester\\nPicklableFixedOffset\\n(tR"\n b"(dS\'_FixedOffset__offset\'\\ncdatetime\\ntimedelta\\n"\n b"(I-1\\nI68400\\nI0\\ntRs"\n b"S\'_FixedOffset__dstoffset\'\\nNs"\n b"S\'_FixedOffset__name\'\\nS\'cookie\'\\nsbtR.",\n\n b\'cdatetime\\ntime\\n(U\\x06\\x05\\x06\\x07\\x01\\xe2@\'\n b\'ctest.datetimetester\\nPicklableFixedOffset\\n)R\'\n b\'}(U\\x14_FixedOffset__offsetcdatetime\\ntimedelta\\n\'\n b\'(J\\xff\\xff\\xff\\xffJ0\\x0b\\x01\\x00K\\x00tR\'\n b\'U\\x17_FixedOffset__dstoffsetN\'\n b\'U\\x12_FixedOffset__nameU\\x06cookieubtR.\',\n\n b\'\\x80\\x02cdatetime\\ntime\\nU\\x06\\x05\\x06\\x07\\x01\\xe2@\'\n b\'ctest.datetimetester\\nPicklableFixedOffset\\n)R\'\n b\'}(U\\x14_FixedOffset__offsetcdatetime\\ntimedelta\\n\'\n b\'J\\xff\\xff\\xff\\xffJ0\\x0b\\x01\\x00K\\x00\\x87R\'\n b\'U\\x17_FixedOffset__dstoffsetN\'\n b\'U\\x12_FixedOffset__nameU\\x06cookieub\\x86R.\',\n ]\n\n tinfo = PicklableFixedOffset(-300, \'cookie\')\n expected = self.theclass(5, 6, 7, 123456, tzinfo=tinfo)\n for data in tests:\n for loads in pickle_loads:\n derived = loads(data, encoding=\'latin1\')\n self.assertEqual(derived, expected, repr(data))\n self.assertIsInstance(derived.tzinfo, PicklableFixedOffset)\n self.assertEqual(derived.utcoffset(), timedelta(minutes=-300))\n self.assertEqual(derived.tzname(), \'cookie\')\n\n def test_more_bool(self):\n # time is always True.\n cls = self.theclass\n\n t = cls(0, tzinfo=FixedOffset(-300, ""))\n self.assertTrue(t)\n\n t = cls(5, tzinfo=FixedOffset(-300, ""))\n self.assertTrue(t)\n\n t = cls(5, tzinfo=FixedOffset(300, ""))\n self.assertTrue(t)\n\n t = cls(23, 59, tzinfo=FixedOffset(23*60 + 59, ""))\n self.assertTrue(t)\n\n def test_replace(self):\n cls = self.theclass\n z100 = FixedOffset(100, "+100")\n zm200 = FixedOffset(timedelta(minutes=-200), "-200")\n args = [1, 2, 3, 4, z100]\n base = cls(*args)\n self.assertEqual(base.replace(), base)\n self.assertEqual(copy.replace(base), base)\n\n changes = (("hour", 5),\n ("minute", 6),\n ("second", 7),\n ("microsecond", 8),\n ("tzinfo", zm200))\n for i, (name, newval) in enumerate(changes):\n newargs = args[:]\n newargs[i] = newval\n expected = cls(*newargs)\n self.assertEqual(base.replace(**{name: newval}), expected)\n self.assertEqual(copy.replace(base, **{name: newval}), expected)\n\n # Ensure we can get rid of a tzinfo.\n self.assertEqual(base.tzname(), "+100")\n base2 = base.replace(tzinfo=None)\n self.assertIsNone(base2.tzinfo)\n self.assertIsNone(base2.tzname())\n base22 = copy.replace(base, tzinfo=None)\n self.assertIsNone(base22.tzinfo)\n self.assertIsNone(base22.tzname())\n\n # Ensure we can add one.\n base3 = base2.replace(tzinfo=z100)\n self.assertEqual(base, base3)\n self.assertIs(base.tzinfo, base3.tzinfo)\n base32 = copy.replace(base22, tzinfo=z100)\n self.assertEqual(base, base32)\n self.assertIs(base.tzinfo, base32.tzinfo)\n\n # Out of bounds.\n base = cls(1)\n self.assertRaises(ValueError, base.replace, hour=24)\n self. o o timezone(timedelta(hours=2)),\n timezone(timedelta(hours=6, minutes=27))]\n\n timespecs = [\'hours\', \'minutes\', \'seconds\',\n \'milliseconds\', \'microseconds\']\n\n for ip, ts in enumerate(timespecs):\n for tzi in tzinfos:\n for t_tuple in time_bases:\n if ts == \'milliseconds\':\n new_microseconds = 1000 * (t_tuple[-1] // 1000)\n t_tuple = t_tuple[0:-1] + (new_microseconds,)\n\n t = self.theclass(*(t_tuple[0:(1 + ip)]), tzinfo=tzi)\n tstr = t.isoformat(timespec=ts)\n with self.subTest(tstr=tstr):\n t_rt = self.theclass.fromisoformat(tstr)\n self.assertEqual(t, t_rt)\n\n def test_fromisoformat_fractions(self):\n strs = [\n (\'12:30:45.1\', (12, 30, 45, 100000)),\n (\'12:30:45.12\', (12, 30, 45, 120000)),\n (\'12:30:45.123\', (12, 30, 45, 123000)),\n (\'12:30:45.1234\', (12, 30, 45, 123400)),\n (\'12:30:45.12345\', (12, 30, 45, 123450)),\n (\'12:30:45.123456\', (12, 30, 45, 123456)),\n (\'12:30:45.1234567\', (12, 30, 45, 123456)),\n (\'12:30:45.12345678\', (12, 30, 45, 123456)),\n ]\n\n for time_str, time_comps in strs:\n expected = self.theclass(*time_comps)\n actual = self.theclass.fromisoformat(time_str)\n\n self.assertEqual(actual, expected)\n\n def test_fromisoformat_time_examples(self):\n examples = [\n (\'0000\', self.theclass(0, 0)),\n (\'00:00\', self.theclass(0, 0)),\n (\'000000\', self.theclass(0, 0)),\n (\'00:00:00\', self.theclass(0, 0)),\n (\'000000.0\', self.theclass(0, 0)),\n (\'00:00:00.0\', self.theclass(0, 0)),\n (\'000000.000\', self.theclass(0, 0)),\n (\'00:00:00.000\', self.theclass(0, 0)),\n (\'000000.000000\', self.theclass(0, 0)),\n (\'00:00:00.000000\', self.theclass(0, 0)),\n (\'00:00:00,100000\', self.theclass(0, 0, 0, 100000)),\n (\'1200\', self.theclass(12, 0)),\n (\'12:00\', self.theclass(12, 0)),\n (\'120000\', self.theclass(12, 0)),\n (\'12:00:00\', self.theclass(12, 0)),\n (\'120000.0\', self.theclass(12, 0)),\n (\'12:00:00.0\', self.theclass(12, 0)),\n (\'120000.000\', self.theclass(12, 0)),\n (\'12:00:00.000\', self.theclass(12, 0)),\n (\'120000.000000\', self.theclass(12, 0)),\n (\'12:00:00.000000\', self.theclass(12, 0)),\n (\'2359\', self.theclass(23, 59)),\n (\'23:59\', self.theclass(23, 59)),\n (\'235959\', self.theclass(23, 59, 59)),\n (\'23:59:59\', self.theclass(23, 59, 59)),\n (\'235959.9\', self.theclass(23, 59, 59, 900000)),\n (\'23:59:59.9\', self.theclass(23, 59, 59, 900000)),\n (\'235959.999\', self.theclass(23, 59, 59, 999000)),\n (\'23:59:59.999\', self.theclass(23, 59, 59, 999000)),\n (\'235959.999999\', self.theclass(23, 59, 59, 999999)),\n (\'23:59:59.999999\', self.theclass(23, 59, 59, 999999)),\n (\'00:00:00Z\', self.theclass(0, 0, tzinfo=timezone.utc)),\n (\'12:00:00+0000\', self.theclass(12, 0, tzinfo=timezone.utc)),\n (\'12:00:00+00:00\', self.theclass(12, 0, tzinfo=timezone.utc)),\n (\'00:00:00+05\',\n self.theclass(0, 0, tzinfo=timezone(timedelta(hours=5)))),\n (\'00:00:00+05:30\',\n self.theclass(0, 0, tzinfo=timezone(timedelta(hours=5, minutes=30)))),\n (\'12:00:00-05:00\',\n self.theclass(12, 0, tzinfo=timezone(timedelta(hours=-5)))),\n (\'12:00:00-0500\',\n self.theclass(12, 0, tzinfo=timezone(timedelta(hours=-5)))),\n (\'00:00:00,000-23:59:59.999999\',\n self o o result = self.theclass.__new__(cls, *args, **temp)\n result.extra = extra\n return result\n\n def newmeth(self, start):\n return start + self.hour + self.second\n\n args = 4, 5, 6, 500, FixedOffset(-300, "EST", 1)\n\n dt1 = self.theclass(*args)\n dt2 = C(*args, **{\'extra\': 7})\n\n self.assertEqual(dt2.__class__, C)\n self.assertEqual(dt2.theAnswer, 42)\n self.assertEqual(dt2.extra, 7)\n self.assertEqual(dt1.utcoffset(), dt2.utcoffset())\n self.assertEqual(dt2.newmeth(-7), dt1.hour + dt1.second - 7)\n\n\n# Testing datetime objects with a non-None tzinfo.\n\nclass TestDateTimeTZ(TestDateTime, TZInfoBase, unittest.TestCase):\n theclass = datetime\n\n def test_trivial(self):\n dt = self.theclass(1, 2, 3, 4, 5, 6, 7)\n self.assertEqual(dt.year, 1)\n self.assertEqual(dt.month, 2)\n self.assertEqual(dt.day, 3)\n self.assertEqual(dt.hour, 4)\n self.assertEqual(dt.minute, 5)\n self.assertEqual(dt.second, 6)\n self.assertEqual(dt.microsecond, 7)\n self.assertEqual(dt.tzinfo, None)\n\n def test_even_more_compare(self):\n # The test_compare() and test_more_compare() inherited from TestDate\n # and TestDateTime covered non-tzinfo cases.\n\n # Smallest possible after UTC adjustment.\n t1 = self.theclass(1, 1, 1, tzinfo=FixedOffset(1439, ""))\n # Largest possible after UTC adjustment.\n t2 = self.theclass(MAXYEAR, 12, 31, 23, 59, 59, 999999,\n tzinfo=FixedOffset(-1439, ""))\n\n # Make sure those compare correctly, and w/o overflow.\n self.assertTrue(t1 < t2)\n self.assertTrue(t1 != t2)\n self.assertTrue(t2 > t1)\n\n self.assertEqual(t1, t1)\n self.assertEqual(t2, t2)\n\n # Equal after adjustment.\n t1 = self.theclass(1, 12, 31, 23, 59, tzinfo=FixedOffset(1, ""))\n t2 = self.theclass(2, 1, 1, 3, 13, tzinfo=FixedOffset(3*60+13+2, ""))\n self.assertEqual(t1, t2)\n\n # Change t1 not to subtract a minute, and t1 should be larger.\n t1 = self.theclass(1, 12, 31, 23, 59, tzinfo=FixedOffset(0, ""))\n self.assertTrue(t1 > t2)\n\n # Change t1 to subtract 2 minutes, and t1 should be smaller.\n t1 = self.theclass(1, 12, 31, 23, 59, tzinfo=FixedOffset(2, ""))\n self.assertTrue(t1 < t2)\n\n # Back to the original t1, but make seconds resolve it.\n t1 = self.theclass(1, 12, 31, 23, 59, tzinfo=FixedOffset(1, ""),\n second=1)\n self.assertTrue(t1 > t2)\n\n # Likewise, but make microseconds resolve it.\n t1 = self.theclass(1, 12, 31, 23, 59, tzinfo=FixedOffset(1, ""),\n microsecond=1)\n self.assertTrue(t1 > t2)\n\n # Make t2 naive and it should differ.\n t2 = self.theclass.min\n self.assertNotEqual(t1, t2)\n self.assertEqual(t2, t2)\n # and > comparison should fail\n with self.assertRaises(TypeError):\n t1 > t2\n\n # It\'s also naive if it has tzinfo but tzinfo.utcoffset() is None.\n class Naive(tzinfo):\n def utcoffset(self, dt): return None\n t2 = self.theclass(5, 6, 7, tzinfo=Naive())\n self.assertNotEqual(t1, t2)\n self.assertEqual(t2, t2)\n\n # OTOH, it\'s OK to compare two of these mixing the two ways of being\n # naive.\n t1 = self.theclass(5, 6, 7)\n self.assertEqual(t1, t2)\n\n # Try a bogus uctoffset.\n class Bogus(tzinfo):\n def utcoffset(self, dt):\n return timedelta(minutes=1440) # out of bounds\n t1 = self.theclass(2, 2, 2, tzinfo=Bogus())\n t2 = self.theclass(2, 2, 2, tzinfo=FixedOffset(0, ""))\n self.assertRaises(ValueError, lambda: t1 == t2)\n\n def test_pickling(self):\n # Try one without a tzinfo.\n args = 6, 7, 23, 20, 59, 1, 64**2\n orig = self.theclass(*args)\n f o o(t3.utcoffset(), timedelta(minutes=60))\n self.assertEqual(t1.tzname(), "EST")\n self.assertEqual(t2.tzname(), "UTC")\n self.assertEqual(t3.tzname(), "MET")\n self.assertEqual(hash(t1), hash(t2))\n self.assertEqual(hash(t1), hash(t3))\n self.assertEqual(hash(t2), hash(t3))\n self.assertEqual(t1, t2)\n self.assertEqual(t1, t3)\n self.assertEqual(t2, t3)\n self.assertEqual(str(t1), "2002-03-19 07:47:00-05:00")\n self.assertEqual(str(t2), "2002-03-19 12:47:00+00:00")\n self.assertEqual(str(t3), "2002-03-19 13:47:00+01:00")\n d = \'datetime.datetime(2002, 3, 19, \'\n self.assertEqual(repr(t1), d + "7, 47, tzinfo=est)")\n self.assertEqual(repr(t2), d + "12, 47, tzinfo=utc)")\n self.assertEqual(repr(t3), d + "13, 47, tzinfo=met)")\n\n def test_combine(self):\n met = FixedOffset(60, "MET")\n d = date(2002, 3, 4)\n tz = time(18, 45, 3, 1234, tzinfo=met)\n dt = datetime.combine(d, tz)\n self.assertEqual(dt, datetime(2002, 3, 4, 18, 45, 3, 1234,\n tzinfo=met))\n\n def test_extract(self):\n met = FixedOffset(60, "MET")\n dt = self.theclass(2002, 3, 4, 18, 45, 3, 1234, tzinfo=met)\n self.assertEqual(dt.date(), date(2002, 3, 4))\n self.assertEqual(dt.time(), time(18, 45, 3, 1234))\n self.assertEqual(dt.timetz(), time(18, 45, 3, 1234, tzinfo=met))\n\n def test_tz_aware_arithmetic(self):\n now = self.theclass.now()\n tz55 = FixedOffset(-330, "west 5:30")\n timeaware = now.time().replace(tzinfo=tz55)\n nowaware = self.theclass.combine(now.date(), timeaware)\n self.assertIs(nowaware.tzinfo, tz55)\n self.assertEqual(nowaware.timetz(), timeaware)\n\n # Can\'t mix aware and non-aware.\n self.assertRaises(TypeError, lambda: now - nowaware)\n self.assertRaises(TypeError, lambda: nowaware - now)\n\n # And adding datetime\'s doesn\'t make sense, aware or not.\n self.assertRaises(TypeError, lambda: now + nowaware)\n self.assertRaises(TypeError, lambda: nowaware + now)\n self.assertRaises(TypeError, lambda: nowaware + nowaware)\n\n # Subtracting should yield 0.\n self.assertEqual(now - now, timedelta(0))\n self.assertEqual(nowaware - nowaware, timedelta(0))\n\n # Adding a delta should preserve tzinfo.\n delta = timedelta(weeks=1, minutes=12, microseconds=5678)\n nowawareplus = nowaware + delta\n self.assertIs(nowaware.tzinfo, tz55)\n nowawareplus2 = delta + nowaware\n self.assertIs(nowawareplus2.tzinfo, tz55)\n self.assertEqual(nowawareplus, nowawareplus2)\n\n # that - delta should be what we started with, and that - what we\n # started with should be delta.\n diff = nowawareplus - delta\n self.assertIs(diff.tzinfo, tz55)\n self.assertEqual(nowaware, diff)\n self.assertRaises(TypeError, lambda: delta - nowawareplus)\n self.assertEqual(nowawareplus - nowaware, delta)\n\n # Make up a random timezone.\n tzr = FixedOffset(random.randrange(-1439, 1440), "randomtimezone")\n # Attach it to nowawareplus.\n nowawareplus = nowawareplus.replace(tzinfo=tzr)\n self.assertIs(nowawareplus.tzinfo, tzr)\n # Make sure the difference takes the timezone adjustments into account.\n got = nowaware - nowawareplus\n # Expected: (nowaware base - nowaware offset) -\n # (nowawareplus base - nowawareplus offset) =\n # (nowaware base - nowawareplus base) +\n # (nowawareplus offset - nowaware offset) =\n # -delta + nowawareplus offset - nowaware offset\n expected = nowawareplus.utcoffset() - nowaware.utcoffset() - delta\n self.assertEqual(got, expected)\n\n # Try max possible difference.\n min = self.theclass(1, 1, 1, tzinfo=FixedOffset(1439, "min"))\n max = self.theclass(MAXYEAR, 1 o o=None))\n\n def test_tzinfo_utcnow(self):\n meth = self.theclass.utcnow\n # Ensure it doesn\'t require tzinfo (i.e., that this doesn\'t blow up).\n with self.assertWarns(DeprecationWarning):\n base = meth()\n # Try with and without naming the keyword; for whatever reason,\n # utcnow() doesn\'t accept a tzinfo argument.\n off42 = FixedOffset(42, "42")\n self.assertRaises(TypeError, meth, off42)\n self.assertRaises(TypeError, meth, tzinfo=off42)\n\n def test_tzinfo_utcfromtimestamp(self):\n import time\n meth = self.theclass.utcfromtimestamp\n ts = time.time()\n # Ensure it doesn\'t require tzinfo (i.e., that this doesn\'t blow up).\n with self.assertWarns(DeprecationWarning):\n base = meth(ts)\n # Try with and without naming the keyword; for whatever reason,\n # utcfromtimestamp() doesn\'t accept a tzinfo argument.\n off42 = FixedOffset(42, "42")\n with warnings.catch_warnings(category=DeprecationWarning):\n warnings.simplefilter("ignore", category=DeprecationWarning)\n self.assertRaises(TypeError, meth, ts, off42)\n self.assertRaises(TypeError, meth, ts, tzinfo=off42)\n\n def test_tzinfo_timetuple(self):\n # TestDateTime tested most of this. datetime adds a twist to the\n # DST flag.\n class DST(tzinfo):\n def __init__(self, dstvalue):\n if isinstance(dstvalue, int):\n dstvalue = timedelta(minutes=dstvalue)\n self.dstvalue = dstvalue\n def dst(self, dt):\n return self.dstvalue\n\n cls = self.theclass\n for dstvalue, flag in (-33, 1), (33, 1), (0, 0), (None, -1):\n d = cls(1, 1, 1, 10, 20, 30, 40, tzinfo=DST(dstvalue))\n t = d.timetuple()\n self.assertEqual(1, t.tm_year)\n self.assertEqual(1, t.tm_mon)\n self.assertEqual(1, t.tm_mday)\n self.assertEqual(10, t.tm_hour)\n self.assertEqual(20, t.tm_min)\n self.assertEqual(30, t.tm_sec)\n self.assertEqual(0, t.tm_wday)\n self.assertEqual(1, t.tm_yday)\n self.assertEqual(flag, t.tm_isdst)\n\n # dst() returns wrong type.\n self.assertRaises(TypeError, cls(1, 1, 1, tzinfo=DST("x")).timetuple)\n\n # dst() at the edge.\n self.assertEqual(cls(1,1,1, tzinfo=DST(1439)).timetuple().tm_isdst, 1)\n self.assertEqual(cls(1,1,1, tzinfo=DST(-1439)).timetuple().tm_isdst, 1)\n\n # dst() out of range.\n self.assertRaises(ValueError, cls(1,1,1, tzinfo=DST(1440)).timetuple)\n self.assertRaises(ValueError, cls(1,1,1, tzinfo=DST(-1440)).timetuple)\n\n def test_utctimetuple(self):\n class DST(tzinfo):\n def __init__(self, dstvalue=0):\n if isinstance(dstvalue, int):\n dstvalue = timedelta(minutes=dstvalue)\n self.dstvalue = dstvalue\n def dst(self, dt):\n return self.dstvalue\n\n cls = self.theclass\n # This can\'t work: DST didn\'t implement utcoffset.\n self.assertRaises(NotImplementedError,\n cls(1, 1, 1, tzinfo=DST(0)).utcoffset)\n\n class UOFS(DST):\n def __init__(self, uofs, dofs=None):\n DST.__init__(self, dofs)\n self.uofs = timedelta(minutes=uofs)\n def utcoffset(self, dt):\n return self.uofs\n\n for dstvalue in -33, 33, 0, None:\n d = cls(1, 2, 3, 10, 20, 30, 40, tzinfo=UOFS(-53, dstvalue))\n t = d.utctimetuple()\n self.assertEqual(d.year, t.tm_year)\n self.assertEqual(d.month, t.tm_mon)\n self.assertEqual(d.day, t.tm_mday)\n self.assertEqual(11, t.tm_hour) # 20mm + 53mm = 1hn + 13mm\n self.assertEqual(13, t.tm_min)\n self.assertEqual(d.second, t.tm_sec)\n self.assertEqual(d.weekday(), t.tm_wday)\n o oce(**{name: newval}), expected)\n self.assertEqual(copy.replace(base, **{name: newval}), expected)\n\n # Ensure we can get rid of a tzinfo.\n self.assertEqual(base.tzname(), "+100")\n base2 = base.replace(tzinfo=None)\n self.assertIsNone(base2.tzinfo)\n self.assertIsNone(base2.tzname())\n base22 = copy.replace(base, tzinfo=None)\n self.assertIsNone(base22.tzinfo)\n self.assertIsNone(base22.tzname())\n\n # Ensure we can add one.\n base3 = base2.replace(tzinfo=z100)\n self.assertEqual(base, base3)\n self.assertIs(base.tzinfo, base3.tzinfo)\n base32 = copy.replace(base22, tzinfo=z100)\n self.assertEqual(base, base32)\n self.assertIs(base.tzinfo, base32.tzinfo)\n\n # Out of bounds.\n base = cls(2000, 2, 29)\n self.assertRaises(ValueError, base.replace, year=2001)\n self.assertRaises(ValueError, copy.replace, base, year=2001)\n\n def test_more_astimezone(self):\n # The inherited test_astimezone covered some trivial and error cases.\n fnone = FixedOffset(None, "None")\n f44m = FixedOffset(44, "44")\n fm5h = FixedOffset(-timedelta(hours=5), "m300")\n\n dt = self.theclass.now(tz=f44m)\n self.assertIs(dt.tzinfo, f44m)\n # Replacing with degenerate tzinfo raises an exception.\n self.assertRaises(ValueError, dt.astimezone, fnone)\n # Replacing with same tzinfo makes no change.\n x = dt.astimezone(dt.tzinfo)\n self.assertIs(x.tzinfo, f44m)\n self.assertEqual(x.date(), dt.date())\n self.assertEqual(x.time(), dt.time())\n\n # Replacing with different tzinfo does adjust.\n got = dt.astimezone(fm5h)\n self.assertIs(got.tzinfo, fm5h)\n self.assertEqual(got.utcoffset(), timedelta(hours=-5))\n expected = dt - dt.utcoffset() # in effect, convert to UTC\n expected += fm5h.utcoffset(dt) # and from there to local time\n expected = expected.replace(tzinfo=fm5h) # and attach new tzinfo\n self.assertEqual(got.date(), expected.date())\n self.assertEqual(got.time(), expected.time())\n self.assertEqual(got.timetz(), expected.timetz())\n self.assertIs(got.tzinfo, expected.tzinfo)\n self.assertEqual(got, expected)\n\n @support.run_with_tz(\'UTC\')\n def test_astimezone_default_utc(self):\n dt = self.theclass.now(timezone.utc)\n self.assertEqual(dt.astimezone(None), dt)\n self.assertEqual(dt.astimezone(), dt)\n\n # Note that offset in TZ variable has the opposite sign to that\n # produced by %z directive.\n @support.run_with_tz(\'EST+05EDT,M3.2.0,M11.1.0\')\n def test_astimezone_default_eastern(self):\n dt = self.theclass(2012, 11, 4, 6, 30, tzinfo=timezone.utc)\n local = dt.astimezone()\n self.assertEqual(dt, local)\n self.assertEqual(local.strftime("%z %Z"), "-0500 EST")\n dt = self.theclass(2012, 11, 4, 5, 30, tzinfo=timezone.utc)\n local = dt.astimezone()\n self.assertEqual(dt, local)\n self.assertEqual(local.strftime("%z %Z"), "-0400 EDT")\n\n @support.run_with_tz(\'EST+05EDT,M3.2.0,M11.1.0\')\n def test_astimezone_default_near_fold(self):\n # Issue #26616.\n u = datetime(2015, 11, 1, 5, tzinfo=timezone.utc)\n t = u.astimezone()\n s = t.astimezone()\n self.assertEqual(t.tzinfo, s.tzinfo)\n\n def test_aware_subtract(self):\n cls = self.theclass\n\n # Ensure that utcoffset() is ignored when the operands have the\n # same tzinfo member.\n class OperandDependentOffset(tzinfo):\n def utcoffset(self, t):\n if t.minute < 10:\n # d0 and d1 equal after adjustment\n return timedelta(minutes=t.minute)\n else:\n # d2 off in the weeds\n return timedelta(minutes=59)\n\n base = cls(8, 9, 10, 11, 12, 13, 14, tzinfo=OperandDependentOffset())\n d0 = base o ooffset = timedelta(hours=hours)\n self.reprname = reprname\n self.stdname = stdname\n self.dstname = dstname\n\n def __repr__(self):\n return self.reprname\n\n def tzname(self, dt):\n if self.dst(dt):\n return self.dstname\n else:\n return self.stdname\n\n def utcoffset(self, dt):\n return self.stdoffset + self.dst(dt)\n\n def dst(self, dt):\n if dt is None or dt.tzinfo is None:\n # An exception instead may be sensible here, in one or more of\n # the cases.\n return ZERO\n assert dt.tzinfo is self\n\n # Find first Sunday in April.\n start = first_sunday_on_or_after(DSTSTART.replace(year=dt.year))\n assert start.weekday() == 6 and start.month == 4 and start.day <= 7\n\n # Find last Sunday in October.\n end = first_sunday_on_or_after(DSTEND.replace(year=dt.year))\n assert end.weekday() == 6 and end.month == 10 and end.day >= 25\n\n # Can\'t compare naive to aware objects, so strip the timezone from\n # dt first.\n if start <= dt.replace(tzinfo=None) < end:\n return HOUR\n else:\n return ZERO\n\nEastern = USTimeZone(-5, "Eastern", "EST", "EDT")\nCentral = USTimeZone(-6, "Central", "CST", "CDT")\nMountain = USTimeZone(-7, "Mountain", "MST", "MDT")\nPacific = USTimeZone(-8, "Pacific", "PST", "PDT")\nutc_real = FixedOffset(0, "UTC", 0)\n# For better test coverage, we want another flavor of UTC that\'s west of\n# the Eastern and Pacific timezones.\nutc_fake = FixedOffset(-12*60, "UTCfake", 0)\n\nclass TestTimezoneConversions(unittest.TestCase):\n # The DST switch times for 2002, in std time.\n dston = datetime(2002, 4, 7, 2)\n dstoff = datetime(2002, 10, 27, 1)\n\n theclass = datetime\n\n # Check a time that\'s inside DST.\n def checkinside(self, dt, tz, utc, dston, dstoff):\n self.assertEqual(dt.dst(), HOUR)\n\n # Conversion to our own timezone is always an identity.\n self.assertEqual(dt.astimezone(tz), dt)\n\n asutc = dt.astimezone(utc)\n there_and_back = asutc.astimezone(tz)\n\n # Conversion to UTC and back isn\'t always an identity here,\n # because there are redundant spellings (in local time) of\n # UTC time when DST begins: the clock jumps from 1:59:59\n # to 3:00:00, and a local time of 2:MM:SS doesn\'t really\n # make sense then. The classes above treat 2:MM:SS as\n # daylight time then (it\'s "after 2am"), really an alias\n # for 1:MM:SS standard time. The latter form is what\n # conversion back from UTC produces.\n if dt.date() == dston.date() and dt.hour == 2:\n # We\'re in the redundant hour, and coming back from\n # UTC gives the 1:MM:SS standard-time spelling.\n self.assertEqual(there_and_back + HOUR, dt)\n # Although during was considered to be in daylight\n # time, there_and_back is not.\n self.assertEqual(there_and_back.dst(), ZERO)\n # They\'re the same times in UTC.\n self.assertEqual(there_and_back.astimezone(utc),\n dt.astimezone(utc))\n else:\n # We\'re not in the redundant hour.\n self.assertEqual(dt, there_and_back)\n\n # Because we have a redundant spelling when DST begins, there is\n # (unfortunately) an hour when DST ends that can\'t be spelled at all in\n # local time. When DST ends, the clock jumps from 1:59 back to 1:00\n # again. The hour 1:MM DST has no spelling then: 1:MM is taken to be\n # standard time. 1:MM DST == 0:MM EST, but 0:MM is taken to be\n # daylight time. The hour 1:MM daylight == 0:MM standard can\'t be\n # expressed in local time. Nevertheless, we want conversion back\n # from UTC to mimic the local clock\'s "repeat an hour" behavior.\n nexthour_utc = asutc + HOUR\n nexthour_tz = nexthour_utc.astimezone(tz)\n if o on expected = self.dston.replace(hour=3)\n got = fourback.astimezone(Eastern).replace(tzinfo=None)\n self.assertEqual(expected, got)\n\n # Similar, but map to 6:00 UTC == 1:00 EST == 2:00 DST. In that\n # case we want the 1:00 spelling.\n sixutc = self.dston.replace(hour=6, tzinfo=utc_real)\n # Now 6:00 "looks like daylight", so the offset wrt Eastern is -4,\n # and adding -4-0 == -4 gives the 2:00 spelling. We want the 1:00 EST\n # spelling.\n expected = self.dston.replace(hour=1)\n got = sixutc.astimezone(Eastern).replace(tzinfo=None)\n self.assertEqual(expected, got)\n\n # Now on the day DST ends, we want "repeat an hour" behavior.\n # UTC 4:MM 5:MM 6:MM 7:MM checking these\n # EST 23:MM 0:MM 1:MM 2:MM\n # EDT 0:MM 1:MM 2:MM 3:MM\n # wall 0:MM 1:MM 1:MM 2:MM against these\n for utc in utc_real, utc_fake:\n for tz in Eastern, Pacific:\n first_std_hour = self.dstoff - timedelta(hours=2) # 23:MM\n # Convert that to UTC.\n first_std_hour -= tz.utcoffset(None)\n # Adjust for possibly fake UTC.\n asutc = first_std_hour + utc.utcoffset(None)\n # First UTC hour to convert; this is 4:00 when utc=utc_real &\n # tz=Eastern.\n asutcbase = asutc.replace(tzinfo=utc)\n for tzhour in (0, 1, 1, 2):\n expectedbase = self.dstoff.replace(hour=tzhour)\n for minute in 0, 30, 59:\n expected = expectedbase.replace(minute=minute)\n asutc = asutcbase.replace(minute=minute)\n astz = asutc.astimezone(tz)\n self.assertEqual(astz.replace(tzinfo=None), expected)\n asutcbase += HOUR\n\n\n def test_bogus_dst(self):\n class ok(tzinfo):\n def utcoffset(self, dt): return HOUR\n def dst(self, dt): return HOUR\n\n now = self.theclass.now().replace(tzinfo=utc_real)\n # Doesn\'t blow up.\n now.astimezone(ok())\n\n # Does blow up.\n class notok(ok):\n def dst(self, dt): return None\n self.assertRaises(ValueError, now.astimezone, notok())\n\n # Sometimes blow up. In the following, tzinfo.dst()\n # implementation may return None or not None depending on\n # whether DST is assumed to be in effect. In this situation,\n # a ValueError should be raised by astimezone().\n class tricky_notok(ok):\n def dst(self, dt):\n if dt.year == 2000:\n return None\n else:\n return 10*HOUR\n dt = self.theclass(2001, 1, 1).replace(tzinfo=utc_real)\n self.assertRaises(ValueError, dt.astimezone, tricky_notok())\n\n def test_fromutc(self):\n self.assertRaises(TypeError, Eastern.fromutc) # not enough args\n now = datetime.now(tz=utc_real)\n self.assertRaises(ValueError, Eastern.fromutc, now) # wrong tzinfo\n now = now.replace(tzinfo=Eastern) # insert correct tzinfo\n enow = Eastern.fromutc(now) # doesn\'t blow up\n self.assertEqual(enow.tzinfo, Eastern) # has right tzinfo member\n self.assertRaises(TypeError, Eastern.fromutc, now, now) # too many args\n self.assertRaises(TypeError, Eastern.fromutc, date.today()) # wrong type\n\n # Always converts UTC to standard time.\n class FauxUSTimeZone(USTimeZone):\n def fromutc(self, dt):\n return dt + self.stdoffset\n FEastern = FauxUSTimeZone(-5, "FEastern", "FEST", "FEDT")\n\n # UTC 4:MM 5:MM 6:MM 7:MM 8:MM 9:MM\n # EST 23:MM 0:MM 1:MM 2:MM 3:MM 4:MM\n # EDT 0:MM 1:MM 2:MM 3:MM 4:MM 5:MM\n\n # Check around DST start.\n start = self.dston.replace(hour=4, tzinfo=Eastern)\n fstart = start.replace(tzinfo=FEastern)\n o oith self.assertRaises(AttributeError):\n x.abc = 1\n\n def test_check_arg_types(self):\n class Number:\n def __init__(self, value):\n self.value = value\n def __int__(self):\n return self.value\n\n class Float(float):\n pass\n\n for xx in [10.0, Float(10.9),\n decimal.Decimal(10), decimal.Decimal(\'10.9\'),\n Number(10), Number(10.9),\n \'10\']:\n self.assertRaises(TypeError, datetime, xx, 10, 10, 10, 10, 10, 10)\n self.assertRaises(TypeError, datetime, 10, xx, 10, 10, 10, 10, 10)\n self.assertRaises(TypeError, datetime, 10, 10, xx, 10, 10, 10, 10)\n self.assertRaises(TypeError, datetime, 10, 10, 10, xx, 10, 10, 10)\n self.assertRaises(TypeError, datetime, 10, 10, 10, 10, xx, 10, 10)\n self.assertRaises(TypeError, datetime, 10, 10, 10, 10, 10, xx, 10)\n self.assertRaises(TypeError, datetime, 10, 10, 10, 10, 10, 10, xx)\n\n\n#############################################################################\n# Local Time Disambiguation\n\n# An experimental reimplementation of fromutc that respects the "fold" flag.\n\nclass tzinfo2(tzinfo):\n\n def fromutc(self, dt):\n "datetime in UTC -> datetime in local time."\n\n if not isinstance(dt, datetime):\n raise TypeError("fromutc() requires a datetime argument")\n if dt.tzinfo is not self:\n raise ValueError("dt.tzinfo is not self")\n # Returned value satisfies\n # dt + ldt.utcoffset() = ldt\n off0 = dt.replace(fold=0).utcoffset()\n off1 = dt.replace(fold=1).utcoffset()\n if off0 is None or off1 is None or dt.dst() is None:\n raise ValueError\n if off0 == off1:\n ldt = dt + off0\n off1 = ldt.utcoffset()\n if off0 == off1:\n return ldt\n # Now, we discovered both possible offsets, so\n # we can just try four possible solutions:\n for off in [off0, off1]:\n ldt = dt + off\n if ldt.utcoffset() == off:\n return ldt\n ldt = ldt.replace(fold=1)\n if ldt.utcoffset() == off:\n return ldt\n\n raise ValueError("No suitable local time found")\n\n# Reimplementing simplified US timezones to respect the "fold" flag:\n\nclass USTimeZone2(tzinfo2):\n\n def __init__(self, hours, reprname, stdname, dstname):\n self.stdoffset = timedelta(hours=hours)\n self.reprname = reprname\n self.stdname = stdname\n self.dstname = dstname\n\n def __repr__(self):\n return self.reprname\n\n def tzname(self, dt):\n if self.dst(dt):\n return self.dstname\n else:\n return self.stdname\n\n def utcoffset(self, dt):\n return self.stdoffset + self.dst(dt)\n\n def dst(self, dt):\n if dt is None or dt.tzinfo is None:\n # An exception instead may be sensible here, in one or more of\n # the cases.\n return ZERO\n assert dt.tzinfo is self\n\n # Find first Sunday in April.\n start = first_sunday_on_or_after(DSTSTART.replace(year=dt.year))\n assert start.weekday() == 6 and start.month == 4 and start.day <= 7\n\n # Find last Sunday in October.\n end = first_sunday_on_or_after(DSTEND.replace(year=dt.year))\n assert end.weekday() == 6 and end.month == 10 and end.day >= 25\n\n # Can\'t compare naive to aware objects, so strip the timezone from\n # dt first.\n dt = dt.replace(tzinfo=None)\n if start + HOUR <= dt < end:\n # DST is in effect.\n return HOUR\n elif end <= dt < end + HOUR:\n # Fold (an ambiguous hour): use dt.fold to disambiguate.\n return ZERO if dt.fold else HOUR\n elif start <= dt < start + HOUR:\n # Gap (a non-existent hour): reverse the fold rule.\n r o o \'Mon Jun 23 20:59:59 1941 UTC\')\n\n ldt = datetime(1941, 6, 23, 23, 59, 59, tzinfo=Vilnius, fold=1)\n gdt = ldt.astimezone(timezone.utc)\n self.assertEqual(gdt.strftime("%c %Z"),\n \'Mon Jun 23 21:59:59 1941 UTC\')\n\n ldt = datetime(1941, 6, 24, 0, tzinfo=Vilnius)\n gdt = ldt.astimezone(timezone.utc)\n self.assertEqual(gdt.strftime("%c %Z"),\n \'Mon Jun 23 22:00:00 1941 UTC\')\n\n def test_constructors(self):\n t = time(0, fold=1)\n dt = datetime(1, 1, 1, fold=1)\n self.assertEqual(t.fold, 1)\n self.assertEqual(dt.fold, 1)\n with self.assertRaises(TypeError):\n time(0, 0, 0, 0, None, 0)\n\n def test_member(self):\n dt = datetime(1, 1, 1, fold=1)\n t = dt.time()\n self.assertEqual(t.fold, 1)\n t = dt.timetz()\n self.assertEqual(t.fold, 1)\n\n def test_replace(self):\n t = time(0)\n dt = datetime(1, 1, 1)\n self.assertEqual(t.replace(fold=1).fold, 1)\n self.assertEqual(dt.replace(fold=1).fold, 1)\n self.assertEqual(t.replace(fold=0).fold, 0)\n self.assertEqual(dt.replace(fold=0).fold, 0)\n # Check that replacement of other fields does not change "fold".\n t = t.replace(fold=1, tzinfo=Eastern)\n dt = dt.replace(fold=1, tzinfo=Eastern)\n self.assertEqual(t.replace(tzinfo=None).fold, 1)\n self.assertEqual(dt.replace(tzinfo=None).fold, 1)\n # Out of bounds.\n with self.assertRaises(ValueError):\n t.replace(fold=2)\n with self.assertRaises(ValueError):\n dt.replace(fold=2)\n # Check that fold is a keyword-only argument\n with self.assertRaises(TypeError):\n t.replace(1, 1, 1, None, 1)\n with self.assertRaises(TypeError):\n dt.replace(1, 1, 1, 1, 1, 1, 1, None, 1)\n\n def test_comparison(self):\n t = time(0)\n dt = datetime(1, 1, 1)\n self.assertEqual(t, t.replace(fold=1))\n self.assertEqual(dt, dt.replace(fold=1))\n\n def test_hash(self):\n t = time(0)\n dt = datetime(1, 1, 1)\n self.assertEqual(hash(t), hash(t.replace(fold=1)))\n self.assertEqual(hash(dt), hash(dt.replace(fold=1)))\n\n @support.run_with_tz(\'EST+05EDT,M3.2.0,M11.1.0\')\n def test_fromtimestamp(self):\n s = 1414906200\n dt0 = datetime.fromtimestamp(s)\n dt1 = datetime.fromtimestamp(s + 3600)\n self.assertEqual(dt0.fold, 0)\n self.assertEqual(dt1.fold, 1)\n\n @support.run_with_tz(\'Australia/Lord_Howe\')\n def test_fromtimestamp_lord_howe(self):\n tm = _time.localtime(1.4e9)\n if _time.strftime(\'%Z%z\', tm) != \'LHST+1030\':\n self.skipTest(\'Australia/Lord_Howe timezone is not supported on this platform\')\n # $ TZ=Australia/Lord_Howe date -r 1428158700\n # Sun Apr 5 01:45:00 LHDT 2015\n # $ TZ=Australia/Lord_Howe date -r 1428160500\n # Sun Apr 5 01:45:00 LHST 2015\n s = 1428158700\n t0 = datetime.fromtimestamp(s)\n t1 = datetime.fromtimestamp(s + 1800)\n self.assertEqual(t0, t1)\n self.assertEqual(t0.fold, 0)\n self.assertEqual(t1.fold, 1)\n\n def test_fromtimestamp_low_fold_detection(self):\n # Ensure that fold detection doesn\'t cause an\n # OSError for really low values, see bpo-29097\n self.assertEqual(datetime.fromtimestamp(0).fold, 0)\n\n @support.run_with_tz(\'EST+05EDT,M3.2.0,M11.1.0\')\n def test_timestamp(self):\n dt0 = datetime(2014, 11, 2, 1, 30)\n dt1 = dt0.replace(fold=1)\n self.assertEqual(dt0.timestamp() + 3600,\n dt1.timestamp())\n\n @support.run_with_tz(\'Australia/Lord_Howe\')\n def test_timestamp_lord_howe(self):\n tm = _time.localtime(1.4e9)\n if _time.strftime(\'%Z%z\', tm) != \'LHST+1030\':\n self.skipTest(\'Australia/Lord_Howe timezone is not supported on this platform\')\n o olf.assertEqual(t1.fold, 1)\n # The tricky part is when u is in the local fold:\n u = datetime(2002, 10, 27, 1, 30, tzinfo=Eastern2)\n t = Eastern2.fromutc(u)\n self.assertEqual((t.day, t.hour), (26, 21))\n # .. or gets into the local fold after a standard time adjustment\n u = datetime(2002, 10, 27, 6, 30, tzinfo=Eastern2)\n t = Eastern2.fromutc(u)\n self.assertEqual((t.day, t.hour), (27, 1))\n\n # What happens in the spring-forward gap?\n u = datetime(2002, 4, 7, 2, 0, tzinfo=Eastern2)\n t = Eastern2.fromutc(u)\n self.assertEqual((t.day, t.hour), (6, 21))\n\n def test_mixed_compare_regular(self):\n t = datetime(2000, 1, 1, tzinfo=Eastern2)\n self.assertEqual(t, t.astimezone(timezone.utc))\n t = datetime(2000, 6, 1, tzinfo=Eastern2)\n self.assertEqual(t, t.astimezone(timezone.utc))\n\n def test_mixed_compare_fold(self):\n t_fold = datetime(2002, 10, 27, 1, 45, tzinfo=Eastern2)\n t_fold_utc = t_fold.astimezone(timezone.utc)\n self.assertNotEqual(t_fold, t_fold_utc)\n self.assertNotEqual(t_fold_utc, t_fold)\n\n def test_mixed_compare_gap(self):\n t_gap = datetime(2002, 4, 7, 2, 45, tzinfo=Eastern2)\n t_gap_utc = t_gap.astimezone(timezone.utc)\n self.assertNotEqual(t_gap, t_gap_utc)\n self.assertNotEqual(t_gap_utc, t_gap)\n\n def test_hash_aware(self):\n t = datetime(2000, 1, 1, tzinfo=Eastern2)\n self.assertEqual(hash(t), hash(t.replace(fold=1)))\n t_fold = datetime(2002, 10, 27, 1, 45, tzinfo=Eastern2)\n t_gap = datetime(2002, 4, 7, 2, 45, tzinfo=Eastern2)\n self.assertEqual(hash(t_fold), hash(t_fold.replace(fold=1)))\n self.assertEqual(hash(t_gap), hash(t_gap.replace(fold=1)))\n\nSEC = timedelta(0, 1)\n\ndef pairs(iterable):\n a, b = itertools.tee(iterable)\n next(b, None)\n return zip(a, b)\n\nclass ZoneInfo(tzinfo):\n zoneroot = \'/usr/share/zoneinfo\'\n def __init__(self, ut, ti):\n """\n\n :param ut: array\n Array of transition point timestamps\n :param ti: list\n A list of (offset, isdst, abbr) tuples\n :return: None\n """\n self.ut = ut\n self.ti = ti\n self.lt = self.invert(ut, ti)\n\n @staticmethod\n def invert(ut, ti):\n lt = (array(\'q\', ut), array(\'q\', ut))\n if ut:\n offset = ti[0][0] // SEC\n lt[0][0] += offset\n lt[1][0] += offset\n for i in range(1, len(ut)):\n lt[0][i] += ti[i-1][0] // SEC\n lt[1][i] += ti[i][0] // SEC\n return lt\n\n @classmethod\n def fromfile(cls, fileobj):\n if fileobj.read(4).decode() != "TZif":\n raise ValueError("not a zoneinfo file")\n fileobj.seek(32)\n counts = array(\'i\')\n counts.fromfile(fileobj, 3)\n if sys.byteorder != \'big\':\n counts.byteswap()\n\n ut = array(\'i\')\n ut.fromfile(fileobj, counts[0])\n if sys.byteorder != \'big\':\n ut.byteswap()\n\n type_indices = array(\'B\')\n type_indices.fromfile(fileobj, counts[0])\n\n ttis = []\n for i in range(counts[1]):\n ttis.append(struct.unpack(">lbb", fileobj.read(6)))\n\n abbrs = fileobj.read(counts[2])\n\n # Convert ttis\n for i, (gmtoff, isdst, abbrind) in enumerate(ttis):\n abbr = abbrs[abbrind:abbrs.find(0, abbrind)].decode()\n ttis[i] = (timedelta(0, gmtoff), isdst, abbr)\n\n ti = [None] * len(ut)\n for i, idx in enumerate(type_indices):\n ti[i] = ttis[idx]\n\n self = cls(ut, ti)\n\n return self\n\n @classmethod\n def fromname(cls, name):\n path = os.path.join(cls.zoneroot, name)\n with open(path, \'rb\') as f:\n return cls.fromfile(f)\n\n EPOCHORDINAL = date(1970, 1, 1).toordinal()\n\n def fromutc(self, dt):\n """datetime in UTC -> datetime in local o o+= 1\n trans_counts = (gap_count, fold_count, zeros_count)\n print("Number of zones: %5d" % count)\n print("Number of transitions: %5d = %d (gaps) + %d (folds) + %d (zeros)" %\n ((sum(trans_counts),) + trans_counts))\n print("Min gap: %16s at %s in %s" % (min_gap, min_gap_datetime, min_gap_zone))\n print("Max gap: %16s at %s in %s" % (max_gap, max_gap_datetime, max_gap_zone))\n print("Min fold: %16s at %s in %s" % (min_fold, min_fold_datetime, min_fold_zone))\n print("Max fold: %16s at %s in %s" % (max_fold, max_fold_datetime, max_fold_zone))\n\n\n def transitions(self):\n for (_, prev_ti), (t, ti) in pairs(zip(self.ut, self.ti)):\n shift = ti[0] - prev_ti[0]\n yield (EPOCH_NAIVE + timedelta(seconds=t)), shift\n\n def nondst_folds(self):\n """Find all folds with the same value of isdst on both sides of the transition."""\n for (_, prev_ti), (t, ti) in pairs(zip(self.ut, self.ti)):\n shift = ti[0] - prev_ti[0]\n if shift < ZERO and ti[1] == prev_ti[1]:\n yield _utcfromtimestamp(datetime, t,), -shift, prev_ti[2], ti[2]\n\n @classmethod\n def print_all_nondst_folds(cls, same_abbr=False, start_year=1):\n count = 0\n for zonename in cls.zonenames():\n tz = cls.fromname(zonename)\n for dt, shift, prev_abbr, abbr in tz.nondst_folds():\n if dt.year < start_year or same_abbr and prev_abbr != abbr:\n continue\n count += 1\n print("%3d) %-30s %s %10s %5s -> %s" %\n (count, zonename, dt, shift, prev_abbr, abbr))\n\n def folds(self):\n for t, shift in self.transitions():\n if shift < ZERO:\n yield t, -shift\n\n def gaps(self):\n for t, shift in self.transitions():\n if shift > ZERO:\n yield t, shift\n\n def zeros(self):\n for t, shift in self.transitions():\n if not shift:\n yield t\n\n\nclass ZoneInfoTest(unittest.TestCase):\n zonename = \'America/New_York\'\n\n def setUp(self):\n if sys.platform == "vxworks":\n self.skipTest("Skipping zoneinfo tests on VxWorks")\n if sys.platform == "win32":\n self.skipTest("Skipping zoneinfo tests on Windows")\n try:\n self.tz = ZoneInfo.fromname(self.zonename)\n except FileNotFoundError as err:\n self.skipTest("Skipping %s: %s" % (self.zonename, err))\n\n def assertEquivDatetimes(self, a, b):\n self.assertEqual((a.replace(tzinfo=None), a.fold, id(a.tzinfo)),\n (b.replace(tzinfo=None), b.fold, id(b.tzinfo)))\n\n def test_folds(self):\n tz = self.tz\n for dt, shift in tz.folds():\n for x in [0 * shift, 0.5 * shift, shift - timedelta.resolution]:\n udt = dt + x\n ldt = tz.fromutc(udt.replace(tzinfo=tz))\n self.assertEqual(ldt.fold, 1)\n adt = udt.replace(tzinfo=timezone.utc).astimezone(tz)\n self.assertEquivDatetimes(adt, ldt)\n utcoffset = ldt.utcoffset()\n self.assertEqual(ldt.replace(tzinfo=None), udt + utcoffset)\n # Round trip\n self.assertEquivDatetimes(ldt.astimezone(timezone.utc),\n udt.replace(tzinfo=timezone.utc))\n\n\n for x in [-timedelta.resolution, shift]:\n udt = dt + x\n udt = udt.replace(tzinfo=tz)\n ldt = tz.fromutc(udt)\n self.assertEqual(ldt.fold, 0)\n\n def test_gaps(self):\n tz = self.tz\n for dt, shift in tz.gaps():\n for x in [0 * shift, 0.5 * shift, shift - timedelta.resolution]:\n udt = dt + x\n udt = udt.replace(tzinfo=tz)\n ldt = tz.fromutc(udt)\n self.assertEqual(ldt.fold, 0)\n o oith(\'Pure\'):\n self.skipTest(\'Not relevant in pure Python\')\n\n # This *must* be called, and it must be called first, so until either\n # restriction is loosened, we\'ll call it as part of test setup\n _testcapi.test_datetime_capi()\n\n def test_utc_capi(self):\n for use_macro in (True, False):\n capi_utc = _testcapi.get_timezone_utc_capi(use_macro)\n\n with self.subTest(use_macro=use_macro):\n self.assertIs(capi_utc, timezone.utc)\n\n def test_timezones_capi(self):\n est_capi, est_macro, est_macro_nn = _testcapi.make_timezones_capi()\n\n exp_named = timezone(timedelta(hours=-5), "EST")\n exp_unnamed = timezone(timedelta(hours=-5))\n\n cases = [\n (\'est_capi\', est_capi, exp_named),\n (\'est_macro\', est_macro, exp_named),\n (\'est_macro_nn\', est_macro_nn, exp_unnamed)\n ]\n\n for name, tz_act, tz_exp in cases:\n with self.subTest(name=name):\n self.assertEqual(tz_act, tz_exp)\n\n dt1 = datetime(2000, 2, 4, tzinfo=tz_act)\n dt2 = datetime(2000, 2, 4, tzinfo=tz_exp)\n\n self.assertEqual(dt1, dt2)\n self.assertEqual(dt1.tzname(), dt2.tzname())\n\n dt_utc = datetime(2000, 2, 4, 5, tzinfo=timezone.utc)\n\n self.assertEqual(dt1.astimezone(timezone.utc), dt_utc)\n\n def test_PyDateTime_DELTA_GET(self):\n class TimeDeltaSubclass(timedelta):\n pass\n\n for klass in [timedelta, TimeDeltaSubclass]:\n for args in [(26, 55, 99999), (26, 55, 99999)]:\n d = klass(*args)\n with self.subTest(cls=klass, date=args):\n days, seconds, microseconds = _testcapi.PyDateTime_DELTA_GET(d)\n\n self.assertEqual(days, d.days)\n self.assertEqual(seconds, d.seconds)\n self.assertEqual(microseconds, d.microseconds)\n\n def test_PyDateTime_GET(self):\n class DateSubclass(date):\n pass\n\n for klass in [date, DateSubclass]:\n for args in [(2000, 1, 2), (2012, 2, 29)]:\n d = klass(*args)\n with self.subTest(cls=klass, date=args):\n year, month, day = _testcapi.PyDateTime_GET(d)\n\n self.assertEqual(year, d.year)\n self.assertEqual(month, d.month)\n self.assertEqual(day, d.day)\n\n def test_PyDateTime_DATE_GET(self):\n class DateTimeSubclass(datetime):\n pass\n\n for klass in [datetime, DateTimeSubclass]:\n for args in [(1993, 8, 26, 22, 12, 55, 99999),\n (1993, 8, 26, 22, 12, 55, 99999,\n timezone.utc)]:\n d = klass(*args)\n with self.subTest(cls=klass, date=args):\n hour, minute, second, microsecond, tzinfo = \\\n _testcapi.PyDateTime_DATE_GET(d)\n\n self.assertEqual(hour, d.hour)\n self.assertEqual(minute, d.minute)\n self.assertEqual(second, d.second)\n self.assertEqual(microsecond, d.microsecond)\n self.assertIs(tzinfo, d.tzinfo)\n\n def test_PyDateTime_TIME_GET(self):\n class TimeSubclass(time):\n pass\n\n for klass in [time, TimeSubclass]:\n for args in [(12, 30, 20, 10),\n (12, 30, 20, 10, timezone.utc)]:\n d = klass(*args)\n with self.subTest(cls=klass, date=args):\n hour, minute, second, microsecond, tzinfo = \\\n _testcapi.PyDateTime_TIME_GET(d)\n\n self.assertEqual(hour, d.hour)\n self.assertEqual(minute, d.minute)\n self.assertEqual(second, d.second)\n self.assertEqual(microsecond, d.mi o o args = [tuple(), list(), 1, \'2011-01-01\',\n timezone.utc, date(2011, 1, 1), datetime(2011, 1, 1)]\n\n for arg in args:\n for exact in (True, False):\n with self.subTest(arg=arg, exact=exact):\n self.assertFalse(is_timedelta(arg, exact))\n\n def test_check_tzinfo(self):\n class TZInfoSubclass(tzinfo):\n pass\n\n tzi = tzinfo()\n tzis = TZInfoSubclass()\n tz = timezone(timedelta(hours=-5))\n\n is_tzinfo = _testcapi.datetime_check_tzinfo\n\n # Check the ones that should be valid\n self.assertTrue(is_tzinfo(tzi))\n self.assertTrue(is_tzinfo(tz))\n self.assertTrue(is_tzinfo(tzis))\n self.assertTrue(is_tzinfo(tzi, True))\n\n # Check that the subclasses do not match exactly\n self.assertFalse(is_tzinfo(tz, True))\n self.assertFalse(is_tzinfo(tzis, True))\n\n # Check that various other things are not tzinfos\n args = [tuple(), list(), 1, \'2011-01-01\',\n date(2011, 1, 1), datetime(2011, 1, 1)]\n\n for arg in args:\n for exact in (True, False):\n with self.subTest(arg=arg, exact=exact):\n self.assertFalse(is_tzinfo(arg, exact))\n\n def test_date_from_date(self):\n exp_date = date(1993, 8, 26)\n\n for macro in False, True:\n with self.subTest(macro=macro):\n c_api_date = _testcapi.get_date_fromdate(\n macro,\n exp_date.year,\n exp_date.month,\n exp_date.day)\n\n self.assertEqual(c_api_date, exp_date)\n\n def test_datetime_from_dateandtime(self):\n exp_date = datetime(1993, 8, 26, 22, 12, 55, 99999)\n\n for macro in False, True:\n with self.subTest(macro=macro):\n c_api_date = _testcapi.get_datetime_fromdateandtime(\n macro,\n exp_date.year,\n exp_date.month,\n exp_date.day,\n exp_date.hour,\n exp_date.minute,\n exp_date.second,\n exp_date.microsecond)\n\n self.assertEqual(c_api_date, exp_date)\n\n def test_datetime_from_dateandtimeandfold(self):\n exp_date = datetime(1993, 8, 26, 22, 12, 55, 99999)\n\n for fold in [0, 1]:\n for macro in False, True:\n with self.subTest(macro=macro, fold=fold):\n c_api_date = _testcapi.get_datetime_fromdateandtimeandfold(\n macro,\n exp_date.year,\n exp_date.month,\n exp_date.day,\n exp_date.hour,\n exp_date.minute,\n exp_date.second,\n exp_date.microsecond,\n exp_date.fold)\n\n self.assertEqual(c_api_date, exp_date)\n self.assertEqual(c_api_date.fold, exp_date.fold)\n\n def test_time_from_time(self):\n exp_time = time(22, 12, 55, 99999)\n\n for macro in False, True:\n with self.subTest(macro=macro):\n c_api_time = _testcapi.get_time_fromtime(\n macro,\n exp_time.hour,\n exp_time.minute,\n exp_time.second,\n exp_time.microsecond)\n\n self.assertEqual(c_api_time, exp_time)\n\n def test_time_from_timeandfold(self):\n exp_time = time(22, 12, 55, 99999)\n\n for fold in [0, 1]:\n for macro in False, True:\n with self.subTest(macro=macro, fold=fold):\n c_api_time = _testcapi.get_time_fromtimeandfold(\n macro,\n exp_time.hour,\n exp_time.minute,\n exp_time.second,\n exp_time.microsec o o = textwrap.dedent("""\n import datetime\n from _ast import Tuple\n f = lambda: None\n Tuple.dims = property(f, f)\n\n class tzutc(datetime.tzinfo):\n pass\n """)\n script_helper.assert_python_ok(\'-c\', script)\n\n with self.subTest(\'complex\'):\n script = textwrap.dedent("""\n import asyncio\n import datetime\n from typing import Type\n\n class tzutc(datetime.tzinfo):\n pass\n _EPOCHTZ = datetime.datetime(1970, 1, 1, tzinfo=tzutc())\n\n class FakeDateMeta(type):\n def __instancecheck__(self, obj):\n return True\n class FakeDate(datetime.date, metaclass=FakeDateMeta):\n pass\n def pickle_fake_date(datetime_) -> Type[FakeDate]:\n # A pickle function for FakeDate\n return FakeDate\n """)\n script_helper.assert_python_ok(\'-c\', script)\n\n def test_update_type_cache(self):\n # gh-120782\n script = textwrap.dedent("""\n import sys\n for i in range(5):\n import _datetime\n assert _datetime.date.max > _datetime.date.min\n assert _datetime.time.max > _datetime.time.min\n assert _datetime.datetime.max > _datetime.datetime.min\n assert _datetime.timedelta.max > _datetime.timedelta.min\n assert _datetime.date.__dict__["min"] is _datetime.date.min\n assert _datetime.date.__dict__["max"] is _datetime.date.max\n assert _datetime.date.__dict__["resolution"] is _datetime.date.resolution\n assert _datetime.time.__dict__["min"] is _datetime.time.min\n assert _datetime.time.__dict__["max"] is _datetime.time.max\n assert _datetime.time.__dict__["resolution"] is _datetime.time.resolution\n assert _datetime.datetime.__dict__["min"] is _datetime.datetime.min\n assert _datetime.datetime.__dict__["max"] is _datetime.datetime.max\n assert _datetime.datetime.__dict__["resolution"] is _datetime.datetime.resolution\n assert _datetime.timedelta.__dict__["min"] is _datetime.timedelta.min\n assert _datetime.timedelta.__dict__["max"] is _datetime.timedelta.max\n assert _datetime.timedelta.__dict__["resolution"] is _datetime.timedelta.resolution\n assert _datetime.timezone.__dict__["min"] is _datetime.timezone.min\n assert _datetime.timezone.__dict__["max"] is _datetime.timezone.max\n assert _datetime.timezone.__dict__["utc"] is _datetime.timezone.utc\n assert isinstance(_datetime.timezone.min, _datetime.tzinfo)\n assert isinstance(_datetime.timezone.max, _datetime.tzinfo)\n assert isinstance(_datetime.timezone.utc, _datetime.tzinfo)\n del sys.modules[\'_datetime\']\n """)\n script_helper.assert_python_ok(\'-c\', script)\n\n\ndef load_tests(loader, standard_tests, pattern):\n standard_tests.addTest(ZoneInfoCompleteTest())\n return standard_tests\n\n\nif __name__ == "__main__":\n unittest.main()\n', ast_parse_kwargs={}, filename=PosixPath('/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/datetimetester.py')) o---------------------------------------------------------------------- oTraceback (most recent call last): o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_unparse.py", line 137, in check_ast_roundtrip o code2 = ast.unparse(ast1) o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/ast.py", line 630, in unparse o return unparser.visit(ast_obj) o ~~~~~~~~~~~~~~^^^^^^^^^ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/_ast_unparse.py", line 193, in visit o self.traverse(node) o ~~~~~~~~~~~~~^^^^^^ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/_ast_unparse.py", line 184, in traverse o super().visit(node) o ~~~~~~~~~~~~~^^^^^^ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/ast.py", line 512, in visit o return visitor(node) o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/_ast_unparse.py", line 209, in visit_Module o self._write_docstring_and_traverse_body(node) o ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/_ast_unparse.py", line 199, in _write_docstring_and_traverse_body o self.traverse(node.body[1:]) o ~~~~~~~~~~~~~^^^^^^^^^^^^^^^ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/_ast_unparse.py", line 182, in traverse o self.traverse(item) o ~~~~~~~~~~~~~^^^^^^ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/_ast_unparse.py", line 184, in traverse o super().visit(node) o ~~~~~~~~~~~~~^^^^^^ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/ast.py", line 512, in visit o return visitor(node) o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/_ast_unparse.py", line 415, in visit_ClassDef o self._write_docstring_and_traverse_body(node) o ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/_ast_unparse.py", line 201, in _write_docstring_and_traverse_body o self.traverse(node.body) o ~~~~~~~~~~~~~^^^^^^^^^^^ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/_ast_unparse.py", line 182, in traverse o self.traverse(item) o ~~~~~~~~~~~~~^^^^^^ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/_ast_unparse.py", line 184, in traverse o super().visit(node) o ~~~~~~~~~~~~~^^^^^^ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/ast.py", line 512, in visit o return visitor(node) o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/_ast_unparse.py", line 418, in visit_FunctionDef o self._function_helper(node, "def") o ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/_ast_unparse.py", line 438, in _function_helper o self._write_docstring_and_traverse_body(node) o ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/_ast_unparse.py", line 201, in _write_docstring_and_traverse_body o self.traverse(node.body) o ~~~~~~~~~~~~~^^^^^^^^^^^ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/_ast_unparse.py", line 182, in traverse o self.traverse(item) o ~~~~~~~~~~~~~^^^^^^ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/_ast_unparse.py", line 184, in traverse o super().visit(node) o ~~~~~~~~~~~~~^^^^^^ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/ast.py", line 512, in visit o return visitor(node) o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/_ast_unparse.py", line 474, in visit_For o self._for_helper("for ", node) o ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/_ast_unparse.py", line 486, in _for_helper o self.traverse(node.body) o ~~~~~~~~~~~~~^^^^^^^^^^^ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/_ast_unparse.py", line 182, in traverse o self.traverse(item) o ~~~~~~~~~~~~~^^^^^^ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/_ast_unparse.py", line 184, in traverse o super().visit(node) o ~~~~~~~~~~~~~^^^^^^ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/ast.py", line 512, in visit o return visitor(node) o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/_ast_unparse.py", line 524, in visit_With o self.traverse(node.body) o ~~~~~~~~~~~~~^^^^^^^^^^^ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/_ast_unparse.py", line 182, in traverse o self.traverse(item) o ~~~~~~~~~~~~~^^^^^^ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/_ast_unparse.py", line 184, in traverse o super().visit(node) o ~~~~~~~~~~~~~^^^^^^ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/ast.py", line 512, in visit o return visitor(node) o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/_ast_unparse.py", line 522, in visit_With o self.interleave(lambda: self.write(", "), self.traverse, node.items) o ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/_ast_unparse.py", line 66, in interleave o f(next(seq)) o ~^^^^^^^^^^^ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/_ast_unparse.py", line 184, in traverse o super().visit(node) o ~~~~~~~~~~~~~^^^^^^ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/ast.py", line 512, in visit o return visitor(node) o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/_ast_unparse.py", line 1093, in visit_withitem o self.traverse(node.context_expr) o ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/_ast_unparse.py", line 184, in traverse o super().visit(node) o ~~~~~~~~~~~~~^^^^^^ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/ast.py", line 512, in visit o return visitor(node) o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/_ast_unparse.py", line 954, in visit_Call o self.traverse(node.func) o ~~~~~~~~~~~~~^^^^^^^^^^^ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/_ast_unparse.py", line 184, in traverse o super().visit(node) o ~~~~~~~~~~~~~^^^^^^ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/ast.py", line 512, in visit o return visitor(node) o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/_ast_unparse.py", line 943, in visit_Attribute o self.traverse(node.value) o ~~~~~~~~~~~~~^^^^^^^^^^^^ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/_ast_unparse.py", line 184, in traverse o super().visit(node) o ~~~~~~~~~~~~~^^^^^^ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/ast.py", line 512, in visit o return visitor(node) o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/_ast_unparse.py", line 708, in visit_Name o self.write(node.id) o ~~~~~~~~~~^^^^^^^^^ oTypeError: 'Unparser' object is not callable o oStdout: oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/imaplib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/csv.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/abc.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/statistics.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_collections_abc.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/pstats.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/gzip.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/timeit.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/socket.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/token.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/shelve.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/zipimport.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/heapq.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/textwrap.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/mailbox.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/copyreg.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/keyword.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_aix_support.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/uuid.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/functools.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/genericpath.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/posixpath.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/poplib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/colorsys.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/ftplib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/numbers.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/pickletools.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/ssl.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/shutil.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/compileall.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/subprocess.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/getpass.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/pkgutil.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_osx_support.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/linecache.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/codecs.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/runpy.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/dataclasses.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/cProfile.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/locale.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/secrets.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/weakref.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/bdb.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/fileinput.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/ast.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_threading_local.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/modulefinder.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/bz2.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/doctest.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_py_warnings.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/shlex.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/io.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/wave.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/configparser.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/platform.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/this.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/tty.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/pty.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/dis.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/plistlib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/code.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/site.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_pydecimal.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/tempfile.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_pydatetime.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/types.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/getopt.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/antigravity.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/tokenize.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/quopri.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/codeop.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_compat_pickle.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/__hello__.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/selectors.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_ios_support.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_apple_support.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/webbrowser.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/datetime.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/signal.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/profile.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/optparse.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/warnings.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/tabnanny.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/fractions.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/copy.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/reprlib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/traceback.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/pydoc.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_colorize.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/decimal.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/pyclbr.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/tracemalloc.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/ipaddress.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/os.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/hashlib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_strptime.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/fnmatch.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/sre_parse.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_pylong.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/rlcompleter.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/turtle.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_ast_unparse.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/py_compile.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/random.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_opcode_metadata.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/trace.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/sre_constants.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/annotationlib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/sched.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/struct.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/sre_compile.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_android_support.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/__future__.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/calendar.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/cmd.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/bisect.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/pprint.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_pyio.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_markupbase.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/hmac.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/nturl2path.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/netrc.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/opcode.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/queue.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/gettext.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/base64.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_sitebuiltins.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/contextlib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/pdb.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/contextvars.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/inspect.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/pickle.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/socketserver.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/zipapp.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_py_abc.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/tarfile.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/lzma.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/enum.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/symtable.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_weakrefset.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/graphlib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/glob.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/argparse.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/mimetypes.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/smtplib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/stat.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/difflib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/typing.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/stringprep.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/operator.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/filecmp.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/ntpath.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_epoll.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_wait3.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_mailbox.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_profile.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_statistics.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_shlex.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_funcattrs.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_linecache.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_codecencodings_hk.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_yield_from.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_descr.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_functools.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/curses_tests.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_bigaddrspace.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_subclassinit.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_dictviews.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_smtplib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/pyclbr_input.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_eintr.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_codecencodings_jp.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_httpservers.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/_test_embed_structseq.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_unicode_identifiers.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_set.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_locale.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_weakref.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_strptime.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_kqueue.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_faulthandler.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_decorators.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_site.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_frozen.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_ordered_dict.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_deque.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_types.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_unicodedata.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_strftime.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_venv.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_dtrace.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_select.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_strtod.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_audit.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/profilee.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_pstats.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_ftplib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_keywordonlyarg.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_unpack.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_codecencodings_tw.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_pow.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_threading.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_dbm_gnu.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_mmap.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/multibytecodec_support.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_opcodes.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_str.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_getpath.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_dictcomps.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_gettext.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_complex.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_thread.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_fork1.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/audiotests.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_ensurepip.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_zlib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_io.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_tempfile.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_finalization.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/_test_gc_fast_cycles.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_codecencodings_kr.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_sort.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_copyreg.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_asyncgen.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_sys_settrace.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_posixpath.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_base64.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_pep646_syntax.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_xml_etree_c.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/dis_module.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_hash.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_dict.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_wait4.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_compare.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_type_params.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_smtpnet.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_hmac.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_zipimport_support.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_xxlimited.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_isinstance.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_htmlparser.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_ntpath.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/memory_watchdog.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_gzip.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_urllib_response.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_tokenize.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/_code_definitions.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_string_literals.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_pyclbr.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_builtin.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_except_star.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_thread_local_bytecode.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_csv.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_enumerate.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_binop.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_compiler_codegen.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_trace.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_pwd.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_range.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_codeccallbacks.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/fork_wait.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_univnewlines.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_annotationlib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_minidom.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/tf_inherit_check.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_richcmp.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_imaplib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_positional_only_arg.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_py_compile.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_abc.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/datetimetester.py o o====================================================================== oERROR: test_files (test.test_unparse.DirectoryTestCase.test_files) (code1='# tests common to dict and UserDict\nimport unittest\nimport collections\nfrom test import support\n\n\nclass BasicTestMappingProtocol(unittest.TestCase):\n # This base class can be used to check that an object conforms to the\n # mapping protocol\n\n # Functions that can be useful to override to adapt to dictionary\n # semantics\n type2test = None # which class is being tested (overwrite in subclasses)\n\n def _reference(self):\n """Return a dictionary of values which are invariant by storage\n in the object under test."""\n return {"1": "2", "key1":"value1", "key2":(1,2,3)}\n def _empty_mapping(self):\n """Return an empty mapping object"""\n return self.type2test()\n def _full_mapping(self, data):\n """Return a mapping object with the value contained in data\n dictionary"""\n x = self._empty_mapping()\n for key, value in data.items():\n x[key] = value\n return x\n\n def __init__(self, *args, **kw):\n unittest.TestCase.__init__(self, *args, **kw)\n self.reference = self._reference().copy()\n\n # A (key, value) pair not in the mapping\n key, value = self.reference.popitem()\n self.other = {key:value}\n\n # A (key, value) pair in the mapping\n key, value = self.reference.popitem()\n self.inmapping = {key:value}\n self.reference[key] = value\n\n def test_read(self):\n # Test for read only operations on mapping\n p = self._empty_mapping()\n p1 = dict(p) #workaround for singleton objects\n d = self._full_mapping(self.reference)\n if d is p:\n p = p1\n #Indexing\n for key, value in self.reference.items():\n self.assertEqual(d[key], value)\n knownkey = list(self.other.keys())[0]\n self.assertRaises(KeyError, lambda:d[knownkey])\n #len\n self.assertEqual(len(p), 0)\n self.assertEqual(len(d), len(self.reference))\n #__contains__\n for k in self.reference:\n self.assertIn(k, d)\n for k in self.other:\n self.assertNotIn(k, d)\n #cmp\n self.assertEqual(p, p)\n self.assertEqual(d, d)\n self.assertNotEqual(p, d)\n self.assertNotEqual(d, p)\n #bool\n if p: self.fail("Empty mapping must compare to False")\n if not d: self.fail("Full mapping must compare to True")\n # keys(), items(), iterkeys() ...\n def check_iterandlist(iter, lst, ref):\n self.assertHasAttr(iter, \'__next__\')\n self.assertHasAttr(iter, \'__iter__\')\n x = list(iter)\n self.assertTrue(set(x)==set(lst)==set(ref))\n check_iterandlist(iter(d.keys()), list(d.keys()),\n self.reference.keys())\n check_iterandlist(iter(d), list(d.keys()), self.reference.keys())\n check_iterandlist(iter(d.values()), list(d.values()),\n self.reference.values())\n check_iterandlist(iter(d.items()), list(d.items()),\n self.reference.items())\n #get\n key, value = next(iter(d.items()))\n knownkey, knownvalue = next(iter(self.other.items()))\n self.assertEqual(d.get(key, knownvalue), value)\n self.assertEqual(d.get(knownkey, knownvalue), knownvalue)\n self.assertNotIn(knownkey, d)\n\n def test_write(self):\n # Test for write operations on mapping\n p = self._empty_mapping()\n #Indexing\n for key, value in self.reference.items():\n p[key] = value\n self.assertEqual(p[key], value)\n for key in self.reference.keys():\n del p[key]\n self.assertRaises(KeyError, lambda:p[key])\n p = self._empty_mapping()\n #update\n p.update(self.reference)\n self.assertEqual(dict(p), self.reference)\n items = list(p.items())\n p = self._empty_mapping( o o:\n self.i = 1\n def __iter__(self):\n return self\n def __next__(self):\n if self.i:\n self.i = 0\n return \'a\'\n raise Exc\n return BogonIter()\n def __getitem__(self, key):\n return key\n self.assertRaises(Exc, d.update, FailingUserDict())\n\n class FailingUserDict:\n def keys(self):\n class BogonIter:\n def __init__(self):\n self.i = ord(\'a\')\n def __iter__(self):\n return self\n def __next__(self):\n if self.i <= ord(\'z\'):\n rtn = chr(self.i)\n self.i += 1\n return rtn\n raise StopIteration\n return BogonIter()\n def __getitem__(self, key):\n raise Exc\n self.assertRaises(Exc, d.update, FailingUserDict())\n\n d = self._empty_mapping()\n class badseq(object):\n def __iter__(self):\n return self\n def __next__(self):\n raise Exc()\n\n self.assertRaises(Exc, d.update, badseq())\n\n self.assertRaises(ValueError, d.update, [(1, 2, 3)])\n\n # no test_fromkeys or test_copy as both os.environ and selves don\'t support it\n\n def test_get(self):\n d = self._empty_mapping()\n self.assertTrue(d.get(list(self.other.keys())[0]) is None)\n self.assertEqual(d.get(list(self.other.keys())[0], 3), 3)\n d = self.reference\n self.assertTrue(d.get(list(self.other.keys())[0]) is None)\n self.assertEqual(d.get(list(self.other.keys())[0], 3), 3)\n self.assertEqual(d.get(list(self.inmapping.keys())[0]),\n list(self.inmapping.values())[0])\n self.assertEqual(d.get(list(self.inmapping.keys())[0], 3),\n list(self.inmapping.values())[0])\n self.assertRaises(TypeError, d.get)\n self.assertRaises(TypeError, d.get, None, None, None)\n\n def test_setdefault(self):\n d = self._empty_mapping()\n self.assertRaises(TypeError, d.setdefault)\n\n def test_popitem(self):\n d = self._empty_mapping()\n self.assertRaises(KeyError, d.popitem)\n self.assertRaises(TypeError, d.popitem, 42)\n\n def test_pop(self):\n d = self._empty_mapping()\n k, v = list(self.inmapping.items())[0]\n d[k] = v\n self.assertRaises(KeyError, d.pop, list(self.other.keys())[0])\n\n self.assertEqual(d.pop(k), v)\n self.assertEqual(len(d), 0)\n\n self.assertRaises(KeyError, d.pop, k)\n\n\nclass TestMappingProtocol(BasicTestMappingProtocol):\n def test_constructor(self):\n BasicTestMappingProtocol.test_constructor(self)\n self.assertTrue(self._empty_mapping() is not self._empty_mapping())\n self.assertEqual(self.type2test(x=1, y=2), {"x": 1, "y": 2})\n\n def test_bool(self):\n BasicTestMappingProtocol.test_bool(self)\n self.assertTrue(not self._empty_mapping())\n self.assertTrue(self._full_mapping({"x": "y"}))\n self.assertTrue(bool(self._empty_mapping()) is False)\n self.assertTrue(bool(self._full_mapping({"x": "y"})) is True)\n\n def test_keys(self):\n BasicTestMappingProtocol.test_keys(self)\n d = self._empty_mapping()\n self.assertEqual(list(d.keys()), [])\n d = self._full_mapping({\'a\': 1, \'b\': 2})\n k = d.keys()\n self.assertIn(\'a\', k)\n self.assertIn(\'b\', k)\n self.assertNotIn(\'c\', k)\n\n def test_values(self):\n BasicTestMappingProtocol.test_values(self)\n d = self._full_mapping({1:2})\n self.assertEqual(list(d.values()), [2])\n\n def test_items(self):\n BasicTestMappingProtocol.test_items o o(self.type2test):\n def __init__(self, *args, **kwargs):\n raise Exc()\n\n self.assertRaises(Exc, baddict1.fromkeys, [1])\n\n class BadSeq(object):\n def __iter__(self):\n return self\n def __next__(self):\n raise Exc()\n\n self.assertRaises(Exc, self.type2test.fromkeys, BadSeq())\n\n class baddict2(self.type2test):\n def __setitem__(self, key, value):\n raise Exc()\n\n self.assertRaises(Exc, baddict2.fromkeys, [1])\n\n def test_copy(self):\n d = self._full_mapping({1:1, 2:2, 3:3})\n self.assertEqual(d.copy(), {1:1, 2:2, 3:3})\n d = self._empty_mapping()\n self.assertEqual(d.copy(), d)\n self.assertIsInstance(d.copy(), d.__class__)\n self.assertRaises(TypeError, d.copy, None)\n\n def test_get(self):\n BasicTestMappingProtocol.test_get(self)\n d = self._empty_mapping()\n self.assertTrue(d.get(\'c\') is None)\n self.assertEqual(d.get(\'c\', 3), 3)\n d = self._full_mapping({\'a\' : 1, \'b\' : 2})\n self.assertTrue(d.get(\'c\') is None)\n self.assertEqual(d.get(\'c\', 3), 3)\n self.assertEqual(d.get(\'a\'), 1)\n self.assertEqual(d.get(\'a\', 3), 1)\n\n def test_setdefault(self):\n BasicTestMappingProtocol.test_setdefault(self)\n d = self._empty_mapping()\n self.assertTrue(d.setdefault(\'key0\') is None)\n d.setdefault(\'key0\', [])\n self.assertTrue(d.setdefault(\'key0\') is None)\n d.setdefault(\'key\', []).append(3)\n self.assertEqual(d[\'key\'][0], 3)\n d.setdefault(\'key\', []).append(4)\n self.assertEqual(len(d[\'key\']), 2)\n\n def test_popitem(self):\n BasicTestMappingProtocol.test_popitem(self)\n for copymode in -1, +1:\n # -1: b has same structure as a\n # +1: b is a.copy()\n for log2size in range(12):\n size = 2**log2size\n a = self._empty_mapping()\n b = self._empty_mapping()\n for i in range(size):\n a[repr(i)] = i\n if copymode < 0:\n b[repr(i)] = i\n if copymode > 0:\n b = a.copy()\n for i in range(size):\n ka, va = ta = a.popitem()\n self.assertEqual(va, int(ka))\n kb, vb = tb = b.popitem()\n self.assertEqual(vb, int(kb))\n self.assertTrue(not(copymode < 0 and ta != tb))\n self.assertTrue(not a)\n self.assertTrue(not b)\n\n def test_pop(self):\n BasicTestMappingProtocol.test_pop(self)\n\n # Tests for pop with specified key\n d = self._empty_mapping()\n k, v = \'abc\', \'def\'\n\n self.assertEqual(d.pop(k, v), v)\n d[k] = v\n self.assertEqual(d.pop(k, 1), v)\n\n\nclass TestHashMappingProtocol(TestMappingProtocol):\n\n def test_getitem(self):\n TestMappingProtocol.test_getitem(self)\n class Exc(Exception): pass\n\n class BadEq(object):\n def __eq__(self, other):\n raise Exc()\n def __hash__(self):\n return 24\n\n d = self._empty_mapping()\n d[BadEq()] = 42\n self.assertRaises(KeyError, d.__getitem__, 23)\n\n class BadHash(object):\n fail = False\n def __hash__(self):\n if self.fail:\n raise Exc()\n else:\n return 42\n\n d = self._empty_mapping()\n x = BadHash()\n d[x] = 42\n x.fail = True\n self.assertRaises(Exc, d.__getitem__, x)\n\n def test_fromkeys(self):\n TestMappingProtocol.test_fromkeys(self)\n class mydict(self.type2test):\n def __new__(cls):\n return collections.UserDict()\n ud = mydict.fromkeys(\'ab\')\n self.assertEqual oud, {\'a\':None, \'b\':None})\n self.assertIsInstance(ud, collections.UserDict)\n\n def test_pop(self):\n TestMappingProtocol.test_pop(self)\n\n class Exc(Exception): pass\n\n class BadHash(object):\n fail = False\n def __hash__(self):\n if self.fail:\n raise Exc()\n else:\n return 42\n\n d = self._empty_mapping()\n x = BadHash()\n d[x] = 42\n x.fail = True\n self.assertRaises(Exc, d.pop, x)\n\n def test_mutatingiteration(self):\n d = self._empty_mapping()\n d[1] = 1\n try:\n count = 0\n for i in d:\n d[i+1] = 1\n if count >= 1:\n self.fail("changing dict size during iteration doesn\'t raise Error")\n count += 1\n except RuntimeError:\n pass\n\n def test_repr(self):\n d = self._empty_mapping()\n self.assertEqual(repr(d), \'{}\')\n d[1] = 2\n self.assertEqual(repr(d), \'{1: 2}\')\n d = self._empty_mapping()\n d[1] = d\n self.assertEqual(repr(d), \'{1: {...}}\')\n\n class Exc(Exception): pass\n\n class BadRepr(object):\n def __repr__(self):\n raise Exc()\n\n d = self._full_mapping({1: BadRepr()})\n self.assertRaises(Exc, repr, d)\n\n @support.skip_wasi_stack_overflow()\n @support.skip_emscripten_stack_overflow()\n @support.skip_if_sanitizer("requires deep stack", ub=True)\n def test_repr_deep(self):\n d = self._empty_mapping()\n for i in range(support.exceeds_recursion_limit()):\n d0 = d\n d = self._empty_mapping()\n d[1] = d0\n self.assertRaises(RecursionError, repr, d)\n\n def test_eq(self):\n self.assertEqual(self._empty_mapping(), self._empty_mapping())\n self.assertEqual(self._full_mapping({1: 2}),\n self._full_mapping({1: 2}))\n\n class Exc(Exception): pass\n\n class BadCmp(object):\n def __eq__(self, other):\n raise Exc()\n def __hash__(self):\n return 1\n\n d1 = self._full_mapping({BadCmp(): 1})\n d2 = self._full_mapping({1: 1})\n self.assertRaises(Exc, lambda: BadCmp()==1)\n self.assertRaises(Exc, lambda: d1==d2)\n\n def test_setdefault(self):\n TestMappingProtocol.test_setdefault(self)\n\n class Exc(Exception): pass\n\n class BadHash(object):\n fail = False\n def __hash__(self):\n if self.fail:\n raise Exc()\n else:\n return 42\n\n d = self._empty_mapping()\n x = BadHash()\n d[x] = 42\n x.fail = True\n self.assertRaises(Exc, d.setdefault, x, [])\n', ast_parse_kwargs={}, filename=PosixPath('/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/mapping_tests.py')) o---------------------------------------------------------------------- oTraceback (most recent call last): o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_unparse.py", line 139, in check_ast_roundtrip o self.assertASTEqual(ast1, ast2) o ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/support/ast_helper.py", line 46, in assertASTEqual o traverse_compare(ast1, ast2) o ~~~~~~~~~~~~~~~~^^^^^^^^^^^^ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/support/ast_helper.py", line 27, in traverse_compare o traverse_compare(value1, value2) o ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/support/ast_helper.py", line 31, in traverse_compare o traverse_compare(node1, node2) o ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/support/ast_helper.py", line 27, in traverse_compare o traverse_compare(value1, value2) o ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/support/ast_helper.py", line 31, in traverse_compare o traverse_compare(node1, node2) o ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/support/ast_helper.py", line 27, in traverse_compare o traverse_compare(value1, value2) o ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/support/ast_helper.py", line 31, in traverse_compare o traverse_compare(node1, node2) o ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/support/ast_helper.py", line 27, in traverse_compare o traverse_compare(value1, value2) o ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/support/ast_helper.py", line 27, in traverse_compare o traverse_compare(value1, value2) o ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/support/ast_helper.py", line 31, in traverse_compare o traverse_compare(node1, node2) o ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/support/ast_helper.py", line 27, in traverse_compare o traverse_compare(value1, value2) o ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/support/ast_helper.py", line 23, in traverse_compare o value2 = getattr(b, field, missing) oTypeError: attribute name must be string, not 'Name' o oStdout: oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/imaplib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/csv.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/abc.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/statistics.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_collections_abc.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/pstats.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/gzip.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/timeit.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/socket.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/token.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/shelve.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/zipimport.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/heapq.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/textwrap.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/mailbox.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/copyreg.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/keyword.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_aix_support.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/uuid.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/functools.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/genericpath.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/posixpath.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/poplib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/colorsys.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/ftplib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/numbers.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/pickletools.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/ssl.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/shutil.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/compileall.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/subprocess.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/getpass.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/pkgutil.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_osx_support.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/linecache.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/codecs.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/runpy.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/dataclasses.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/cProfile.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/locale.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/secrets.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/weakref.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/bdb.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/fileinput.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/ast.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_threading_local.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/modulefinder.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/bz2.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/doctest.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_py_warnings.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/shlex.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/io.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/wave.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/configparser.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/platform.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/this.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/tty.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/pty.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/dis.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/plistlib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/code.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/site.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_pydecimal.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/tempfile.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_pydatetime.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/types.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/getopt.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/antigravity.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/tokenize.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/quopri.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/codeop.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_compat_pickle.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/__hello__.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/selectors.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_ios_support.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_apple_support.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/webbrowser.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/datetime.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/signal.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/profile.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/optparse.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/warnings.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/tabnanny.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/fractions.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/copy.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/reprlib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/traceback.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/pydoc.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_colorize.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/decimal.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/pyclbr.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/tracemalloc.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/ipaddress.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/os.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/hashlib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_strptime.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/fnmatch.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/sre_parse.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_pylong.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/rlcompleter.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/turtle.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_ast_unparse.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/py_compile.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/random.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_opcode_metadata.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/trace.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/sre_constants.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/annotationlib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/sched.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/struct.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/sre_compile.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_android_support.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/__future__.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/calendar.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/cmd.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/bisect.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/pprint.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_pyio.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_markupbase.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/hmac.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/nturl2path.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/netrc.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/opcode.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/queue.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/gettext.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/base64.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_sitebuiltins.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/contextlib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/pdb.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/contextvars.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/inspect.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/pickle.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/socketserver.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/zipapp.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_py_abc.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/tarfile.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/lzma.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/enum.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/symtable.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/_weakrefset.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/graphlib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/glob.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/argparse.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/mimetypes.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/smtplib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/stat.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/difflib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/typing.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/stringprep.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/operator.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/filecmp.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/ntpath.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_epoll.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_wait3.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_mailbox.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_profile.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_statistics.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_shlex.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_funcattrs.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_linecache.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_codecencodings_hk.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_yield_from.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_descr.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_functools.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/curses_tests.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_bigaddrspace.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_subclassinit.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_dictviews.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_smtplib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/pyclbr_input.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_eintr.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_codecencodings_jp.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_httpservers.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/_test_embed_structseq.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_unicode_identifiers.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_set.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_locale.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_weakref.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_strptime.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_kqueue.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_faulthandler.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_decorators.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_site.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_frozen.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_ordered_dict.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_deque.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_types.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_unicodedata.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_strftime.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_venv.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_dtrace.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_select.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_strtod.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_audit.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/profilee.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_pstats.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_ftplib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_keywordonlyarg.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_unpack.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_codecencodings_tw.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_pow.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_threading.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_dbm_gnu.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_mmap.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/multibytecodec_support.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_opcodes.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_str.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_getpath.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_dictcomps.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_gettext.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_complex.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_thread.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_fork1.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/audiotests.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_ensurepip.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_zlib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_io.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_tempfile.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_finalization.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/_test_gc_fast_cycles.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_codecencodings_kr.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_sort.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_copyreg.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_asyncgen.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_sys_settrace.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_posixpath.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_base64.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_pep646_syntax.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_xml_etree_c.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/dis_module.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_hash.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_dict.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_wait4.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_compare.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_type_params.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_smtpnet.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_hmac.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_zipimport_support.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_xxlimited.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_isinstance.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_htmlparser.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_ntpath.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/memory_watchdog.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_gzip.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_urllib_response.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_tokenize.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/_code_definitions.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_string_literals.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_pyclbr.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_builtin.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_except_star.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_thread_local_bytecode.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_csv.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_enumerate.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_binop.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_compiler_codegen.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_trace.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_pwd.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_range.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_codeccallbacks.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/fork_wait.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_univnewlines.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_annotationlib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_minidom.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/tf_inherit_check.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_richcmp.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_imaplib.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_positional_only_arg.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_py_compile.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_abc.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/datetimetester.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/mock_socket.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/list_tests.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/_test_atexit.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_compile.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_unary.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_logging.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_cprofile.py oTesting /root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/mapping_tests.py o o---------------------------------------------------------------------- oRan 78 tests in 27.096s o oFAILED (errors=2) otest test_unparse failed o0:10:43 load avg: 2.98 [310/491/5] test__locale passed o0:10:43 load avg: 2.98 [311/491/5] test_dbm passed o0:10:43 load avg: 2.98 [312/491/5] test_funcattrs passed o0:10:44 load avg: 2.98 [313/491/5] test_type_aliases passed o0:10:44 load avg: 2.98 [314/491/5] test_textwrap passed o0:10:44 load avg: 2.98 [315/491/5] test_mimetypes passed o0:10:53 load avg: 2.98 [316/491/5] test_ast passed o0:10:53 load avg: 2.98 [317/491/5] test_dictcomps passed o0:10:54 load avg: 2.98 [318/491/5] test.test_asyncio.test_tools passed o0:10:54 load avg: 2.98 [319/491/5] test.test_asyncio.test_unix_events passed o0:10:56 load avg: 2.90 [320/491/5] test_lzma passed o0:10:57 load avg: 2.90 [321/491/5] test_slice passed o0:10:57 load avg: 2.90 [322/491/5] test_filecmp passed o0:10:58 load avg: 2.90 [323/491/5] test_bz2 passed o0:10:58 load avg: 2.90 [324/491/5] test_getpass passed o0:10:58 load avg: 2.90 [325/491/5] test_launcher skipped otest_launcher skipped -- test only applies to Windows o0:11:01 load avg: 2.91 [326/491/5] test_pickletools passed o0:11:01 load avg: 2.91 [327/491/5] test_unicode_identifiers passed o0:11:03 load avg: 2.91 [328/491/5] test_multibytecodec passed o0:11:03 load avg: 2.91 [329/491/5] test_genericclass passed o0:11:04 load avg: 2.91 [330/491/5] test.test_asyncio.test_graph passed o0:11:04 load avg: 3.00 [331/491/5] test_exception_group passed o0:11:05 load avg: 3.00 [332/491/5] test_global passed o0:11:05 load avg: 3.00 [333/491/5] test_binascii passed o0:11:05 load avg: 3.00 [334/491/5] test_unpack passed o0:11:08 load avg: 3.00 [335/491/5] test_posix passed o0:11:08 load avg: 3.00 [336/491/5] test.test_future_stmt.test_future_multiple_imports passed o0:11:21 load avg: 3.07 [337/491/5] test.test_asyncio.test_taskgroups passed -- running (1): test_tools (36.7 sec) o0:11:22 load avg: 3.07 [338/491/5] test_xml_etree passed -- running (1): test_tools (37.6 sec) o0:11:22 load avg: 3.07 [339/491/5] test_pty passed -- running (1): test_tools (38.0 sec) o0:11:44 load avg: 3.26 [340/491/5] test_subprocess passed -- running (1): test_tools (1 min) o0:11:46 load avg: 3.40 [341/491/5] test_thread passed -- running (1): test_tools (1 min 1 sec) o0:11:46 load avg: 3.40 [342/491/5] test_ttk_textonly skipped -- running (1): test_tools (1 min 2 sec) otest_ttk_textonly skipped -- No module named '_tkinter' o0:11:47 load avg: 3.40 [343/491/5] test_tty passed -- running (1): test_tools (1 min 2 sec) o0:11:53 load avg: 3.45 [344/491/5] test_unittest passed -- running (1): test_tools (1 min 9 sec) o0:11:54 load avg: 3.49 [345/491/5] test_asyncgen passed -- running (1): test_tools (1 min 10 sec) o0:11:58 load avg: 3.49 [346/491/5] test_calendar passed -- running (1): test_tools (1 min 14 sec) o0:11:59 load avg: 3.49 [347/491/5] test_wsgiref passed -- running (1): test_tools (1 min 14 sec) o0:11:59 load avg: 3.49 [348/491/5] test_float passed -- running (1): test_tools (1 min 15 sec) o0:12:29 load avg: 3.27 running (2): test_tools (1 min 45 sec), test.test_multiprocessing_spawn.test_misc (30.0 sec) o0:12:31 load avg: 3.25 [349/491/5] test.test_multiprocessing_spawn.test_misc passed (31.9 sec) -- running (1): test_tools (1 min 47 sec) o0:12:31 load avg: 3.25 [350/491/6] test_pprint failed (1 error) -- running (1): test_tools (1 min 47 sec) otest_abc_views (test.test_pprint.QueryTestCase.test_abc_views) ... ok otest_basic (test.test_pprint.QueryTestCase.test_basic) ... ok otest_basic_line_wrap (test.test_pprint.QueryTestCase.test_basic_line_wrap) ... ok otest_bytearray_wrap (test.test_pprint.QueryTestCase.test_bytearray_wrap) ... ok otest_bytes_wrap (test.test_pprint.QueryTestCase.test_bytes_wrap) ... ok otest_chainmap (test.test_pprint.QueryTestCase.test_chainmap) ... ok otest_compact (test.test_pprint.QueryTestCase.test_compact) ... ok otest_compact_width (test.test_pprint.QueryTestCase.test_compact_width) ... ok otest_container_repr_override_called (test.test_pprint.QueryTestCase.test_container_repr_override_called) ... ok otest_counter (test.test_pprint.QueryTestCase.test_counter) ... ok otest_cyclic_dataclass (test.test_pprint.QueryTestCase.test_cyclic_dataclass) ... ok otest_dataclass_no_repr (test.test_pprint.QueryTestCase.test_dataclass_no_repr) ... ok otest_dataclass_with_repr (test.test_pprint.QueryTestCase.test_dataclass_with_repr) ... ok otest_default_dict (test.test_pprint.QueryTestCase.test_default_dict) ... ok otest_depth (test.test_pprint.QueryTestCase.test_depth) ... ok otest_deque (test.test_pprint.QueryTestCase.test_deque) ... ok otest_dict_views (test.test_pprint.QueryTestCase.test_dict_views) ... ok otest_empty_dataclass (test.test_pprint.QueryTestCase.test_empty_dataclass) ... ok otest_empty_simple_namespace (test.test_pprint.QueryTestCase.test_empty_simple_namespace) ... ok otest_init (test.test_pprint.QueryTestCase.test_init) ... ok otest_integer (test.test_pprint.QueryTestCase.test_integer) ... ok otest_knotted (test.test_pprint.QueryTestCase.test_knotted) ... ok otest_larger_dataclass (test.test_pprint.QueryTestCase.test_larger_dataclass) ... ok otest_lazy_import (test.test_pprint.QueryTestCase.test_lazy_import) ... ok otest_mapping_proxy (test.test_pprint.QueryTestCase.test_mapping_proxy) ... ok otest_mapping_subclass_repr (test.test_pprint.QueryTestCase.test_mapping_subclass_repr) oTest that mapping ABC views use their ._mapping's __repr__. ... ok otest_mapping_view_subclass_no_mapping (test.test_pprint.QueryTestCase.test_mapping_view_subclass_no_mapping) ... ok otest_nested_indentations (test.test_pprint.QueryTestCase.test_nested_indentations) ... ok otest_nested_views (test.test_pprint.QueryTestCase.test_nested_views) ... ok otest_ordered_dict (test.test_pprint.QueryTestCase.test_ordered_dict) ... ok otest_recursive_dataclass (test.test_pprint.QueryTestCase.test_recursive_dataclass) ... ok otest_same_as_repr (test.test_pprint.QueryTestCase.test_same_as_repr) ... ok otest_set_of_sets_reprs (test.test_pprint.QueryTestCase.test_set_of_sets_reprs) ... ok otest_set_reprs (test.test_pprint.QueryTestCase.test_set_reprs) ... ok otest_simple_namespace (test.test_pprint.QueryTestCase.test_simple_namespace) ... ok otest_simple_namespace_subclass (test.test_pprint.QueryTestCase.test_simple_namespace_subclass) ... ok otest_small_dataclass (test.test_pprint.QueryTestCase.test_small_dataclass) ... ok otest_small_simple_namespace (test.test_pprint.QueryTestCase.test_small_simple_namespace) ... ok otest_sort_dict (test.test_pprint.QueryTestCase.test_sort_dict) ... ok otest_sort_orderable_and_unorderable_values (test.test_pprint.QueryTestCase.test_sort_orderable_and_unorderable_values) ... ok otest_sort_unorderable_values (test.test_pprint.QueryTestCase.test_sort_unorderable_values) ... ok otest_sorted_dict (test.test_pprint.QueryTestCase.test_sorted_dict) ... ok otest_stdout_is_None (test.test_pprint.QueryTestCase.test_stdout_is_None) ... ok otest_str_wrap (test.test_pprint.QueryTestCase.test_str_wrap) ... ERROR otest_subclassing (test.test_pprint.QueryTestCase.test_subclassing) ... ok otest_unorderable_items_views (test.test_pprint.QueryTestCase.test_unorderable_items_views) oCheck that views with unorderable items have stable sorting. ... ok otest_unreadable (test.test_pprint.QueryTestCase.test_unreadable) ... ok otest_user_dict (test.test_pprint.QueryTestCase.test_user_dict) ... ok otest_user_list (test.test_pprint.QueryTestCase.test_user_list) ... ok otest_user_string (test.test_pprint.QueryTestCase.test_user_string) ... ok otest_width (test.test_pprint.QueryTestCase.test_width) ... ok o o====================================================================== oERROR: test_str_wrap (test.test_pprint.QueryTestCase.test_str_wrap) o---------------------------------------------------------------------- oTraceback (most recent call last): o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_pprint.py", line 1110, in test_str_wrap o formatted = pprint.pformat([special] * 2, width=width) o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/pprint.py", line 61, in pformat o underscore_numbers=underscore_numbers).pformat(object) o ~~~~~~~^^^^^^^^ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/pprint.py", line 167, in pformat o self._format(object, sio, 0, 0, {}, 0) o ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/pprint.py", line 193, in _format o p(self, object, stream, indent, allowance, context, level + 1) o ~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/pprint.py", line 296, in _pprint_list o self._format_items(object, stream, indent, allowance + 1, o ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ o context, level) o ^^^^^^^^^^^^^^^ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/pprint.py", line 511, in _format_items o self._format(ent, stream, indent, o ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ o allowance if last else 1, o ^^^^^^^^^^^^^^^^^^^^^^^^^ o context, level) o ^^^^^^^^^^^^^^^ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/pprint.py", line 193, in _format o p(self, object, stream, indent, allowance, context, level + 1) o ~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/pprint.py", line 363, in _pprint_str o if len(repr(candidate)) > max_width2: o ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ oTypeError: '>' not supported between instances of 'int' and 'PrettyPrinter' o o---------------------------------------------------------------------- oRan 51 tests in 0.142s o oFAILED (errors=1) otest test_pprint failed o0:12:32 load avg: 3.25 [351/491/6] test_strptime passed -- running (1): test_tools (1 min 47 sec) o0:12:35 load avg: 3.31 [352/491/6] test_tools passed (1 min 51 sec) o0:12:36 load avg: 3.31 [353/491/6] test.test_concurrent_futures.test_wait passed o0:12:37 load avg: 3.31 [354/491/6] test_robotparser passed o0:12:38 load avg: 3.31 [355/491/6] test_scope passed o0:12:38 load avg: 3.31 [356/491/6] test_unicode_file_functions passed o0:12:38 load avg: 3.31 [357/491/6] test_rlcompleter passed o0:12:38 load avg: 3.31 [358/491/6] test_winconsoleio skipped otest_winconsoleio skipped -- test only relevant on win32 o0:12:38 load avg: 3.31 [359/491/6] test_bigaddrspace passed o0:12:39 load avg: 3.31 [360/491/6] test_atexit passed o0:12:39 load avg: 3.31 [361/491/6] test_generator_stop passed o0:12:47 load avg: 3.11 [362/491/6] test.test_asyncio.test_subprocess passed o0:12:48 load avg: 3.11 [363/491/6] test.test_asyncio.test_waitfor passed o0:12:48 load avg: 3.11 [364/491/6] test_coroutines passed o0:12:52 load avg: 3.02 [365/491/6] test_selectors passed o0:12:53 load avg: 3.02 [366/491/6] test.test_asyncio.test_futures2 passed o0:12:53 load avg: 3.02 [367/491/6] test.test_asyncio.test_queues passed o0:12:53 load avg: 3.02 [368/491/6] test_property passed o0:12:54 load avg: 3.02 [369/491/6] test_codecs passed o0:12:55 load avg: 3.10 [370/491/6] test_sundry passed o0:12:55 load avg: 3.10 [371/491/6] test_codecencodings_tw passed o0:12:55 load avg: 3.10 [372/491/6] test_getpath passed o0:12:55 load avg: 3.10 [373/491/6] test_contextlib_async passed o0:12:55 load avg: 3.10 [374/491/6] test_compiler_codegen passed o0:12:56 load avg: 3.10 [375/491/6] test_exception_hierarchy passed o0:13:13 load avg: 2.85 [376/491/6] test_source_encoding passed o0:13:14 load avg: 2.85 [377/491/6] test_dis passed o0:13:15 load avg: 2.85 [378/491/6] test_copyreg passed o0:13:22 load avg: 2.72 [379/491/6] test_eintr passed o0:13:22 load avg: 2.72 [380/491/6] test_plistlib passed o0:13:22 load avg: 2.72 [381/491/6] test_startfile skipped otest_startfile skipped -- object has no attribute 'startfile' o0:13:23 load avg: 2.72 [382/491/6] test_range passed o0:13:30 load avg: 2.46 [383/491/6] test_socket passed (34.1 sec) o0:13:30 load avg: 2.46 [384/491/6] test_dtrace passed o0:13:30 load avg: 2.46 [385/491/6] test_type_comments passed o0:13:30 load avg: 2.46 [386/491/6] test_fileio passed o0:13:31 load avg: 2.46 [387/491/6] test_named_expressions passed o0:13:37 load avg: 2.34 [388/491/7] test_queue worker non-zero exit code (Exit code -6 (SIGABRT)) otest_failing_queue (test.test_queue.CFailingQueueTest.test_failing_queue) ... ok otest_basic (test.test_queue.CLifoQueueTest.test_basic) ... ok otest_negative_timeout_raises_exception (test.test_queue.CLifoQueueTest.test_negative_timeout_raises_exception) ... ok otest_nowait (test.test_queue.CLifoQueueTest.test_nowait) ... ok otest_queue_join (test.test_queue.CLifoQueueTest.test_queue_join) ... ok otest_queue_task_done (test.test_queue.CLifoQueueTest.test_queue_task_done) ... ok otest_shrinking_queue (test.test_queue.CLifoQueueTest.test_shrinking_queue) ... ok otest_shutdown_all_methods_in_many_threads (test.test_queue.CLifoQueueTest.test_shutdown_all_methods_in_many_threads) ... ok otest_shutdown_all_methods_in_one_thread (test.test_queue.CLifoQueueTest.test_shutdown_all_methods_in_one_thread) ... ok otest_shutdown_allowed_transitions (test.test_queue.CLifoQueueTest.test_shutdown_allowed_transitions) ... ok otest_shutdown_empty (test.test_queue.CLifoQueueTest.test_shutdown_empty) ... ok otest_shutdown_get (test.test_queue.CLifoQueueTest.test_shutdown_get) ... ok otest_shutdown_get_task_done_join (test.test_queue.CLifoQueueTest.test_shutdown_get_task_done_join) ... ok otest_shutdown_immediate (test.test_queue.CLifoQueueTest.test_shutdown_immediate) ... ok otest_shutdown_immediate_all_methods_in_many_threads (test.test_queue.CLifoQueueTest.test_shutdown_immediate_all_methods_in_many_threads) ... ok otest_shutdown_immediate_all_methods_in_one_thread (test.test_queue.CLifoQueueTest.test_shutdown_immediate_all_methods_in_one_thread) ... ok otest_shutdown_immediate_get (test.test_queue.CLifoQueueTest.test_shutdown_immediate_get) ... ok otest_shutdown_immediate_join (test.test_queue.CLifoQueueTest.test_shutdown_immediate_join) ... ok otest_shutdown_immediate_put (test.test_queue.CLifoQueueTest.test_shutdown_immediate_put) ... ok otest_shutdown_immediate_put_join (test.test_queue.CLifoQueueTest.test_shutdown_immediate_put_join) ... ok otest_shutdown_join (test.test_queue.CLifoQueueTest.test_shutdown_join) ... ok otest_shutdown_nonempty (test.test_queue.CLifoQueueTest.test_shutdown_nonempty) ... ok otest_shutdown_pending_get (test.test_queue.CLifoQueueTest.test_shutdown_pending_get) ... ok otest_shutdown_put (test.test_queue.CLifoQueueTest.test_shutdown_put) ... ok otest_shutdown_put_join (test.test_queue.CLifoQueueTest.test_shutdown_put_join) ... ok otest_basic (test.test_queue.CPriorityQueueTest.test_basic) ... ok otest_negative_timeout_raises_exception (test.test_queue.CPriorityQueueTest.test_negative_timeout_raises_exception) ... ok otest_nowait (test.test_queue.CPriorityQueueTest.test_nowait) ... ok otest_queue_join (test.test_queue.CPriorityQueueTest.test_queue_join) ... ok otest_queue_task_done (test.test_queue.CPriorityQueueTest.test_queue_task_done) ... ok otest_shrinking_queue (test.test_queue.CPriorityQueueTest.test_shrinking_queue) ... ok otest_shutdown_all_methods_in_many_threads (test.test_queue.CPriorityQueueTest.test_shutdown_all_methods_in_many_threads) ... ok otest_shutdown_all_methods_in_one_thread (test.test_queue.CPriorityQueueTest.test_shutdown_all_methods_in_one_thread) ... ok otest_shutdown_allowed_transitions (test.test_queue.CPriorityQueueTest.test_shutdown_allowed_transitions) ... ok otest_shutdown_empty (test.test_queue.CPriorityQueueTest.test_shutdown_empty) ... ok otest_shutdown_get (test.test_queue.CPriorityQueueTest.test_shutdown_get) ... ok otest_shutdown_get_task_done_join (test.test_queue.CPriorityQueueTest.test_shutdown_get_task_done_join) ... ok otest_shutdown_immediate (test.test_queue.CPriorityQueueTest.test_shutdown_immediate) ... ok otest_shutdown_immediate_all_methods_in_many_threads (test.test_queue.CPriorityQueueTest.test_shutdown_immediate_all_methods_in_many_threads) ... ok otest_shutdown_immediate_all_methods_in_one_thread (test.test_queue.CPriorityQueueTest.test_shutdown_immediate_all_methods_in_one_thread) ... ok otest_shutdown_immediate_get (test.test_queue.CPriorityQueueTest.test_shutdown_immediate_get) ... ok otest_shutdown_immediate_join (test.test_queue.CPriorityQueueTest.test_shutdown_immediate_join) ... ok otest_shutdown_immediate_put (test.test_queue.CPriorityQueueTest.test_shutdown_immediate_put) ... ok otest_shutdown_immediate_put_join (test.test_queue.CPriorityQueueTest.test_shutdown_immediate_put_join) ... ok otest_shutdown_join (test.test_queue.CPriorityQueueTest.test_shutdown_join) ... ok otest_shutdown_nonempty (test.test_queue.CPriorityQueueTest.test_shutdown_nonempty) ... ok otest_shutdown_pending_get (test.test_queue.CPriorityQueueTest.test_shutdown_pending_get) ... ok otest_shutdown_put (test.test_queue.CPriorityQueueTest.test_shutdown_put) ... ok otest_shutdown_put_join (test.test_queue.CPriorityQueueTest.test_shutdown_put_join) ... ok otest_basic (test.test_queue.CQueueTest.test_basic) ... ok otest_negative_timeout_raises_exception (test.test_queue.CQueueTest.test_negative_timeout_raises_exception) ... ok otest_nowait (test.test_queue.CQueueTest.test_nowait) ... ok otest_queue_join (test.test_queue.CQueueTest.test_queue_join) ... ok otest_queue_task_done (test.test_queue.CQueueTest.test_queue_task_done) ... ok otest_shrinking_queue (test.test_queue.CQueueTest.test_shrinking_queue) ... ok otest_shutdown_all_methods_in_many_threads (test.test_queue.CQueueTest.test_shutdown_all_methods_in_many_threads) ... ok otest_shutdown_all_methods_in_one_thread (test.test_queue.CQueueTest.test_shutdown_all_methods_in_one_thread) ... ok otest_shutdown_allowed_transitions (test.test_queue.CQueueTest.test_shutdown_allowed_transitions) ... ok otest_shutdown_empty (test.test_queue.CQueueTest.test_shutdown_empty) ... ok otest_shutdown_get (test.test_queue.CQueueTest.test_shutdown_get) ... ok otest_shutdown_get_task_done_join (test.test_queue.CQueueTest.test_shutdown_get_task_done_join) ... ok otest_shutdown_immediate (test.test_queue.CQueueTest.test_shutdown_immediate) ... ok otest_shutdown_immediate_all_methods_in_many_threads (test.test_queue.CQueueTest.test_shutdown_immediate_all_methods_in_many_threads) ... ok otest_shutdown_immediate_all_methods_in_one_thread (test.test_queue.CQueueTest.test_shutdown_immediate_all_methods_in_one_thread) ... ok otest_shutdown_immediate_get (test.test_queue.CQueueTest.test_shutdown_immediate_get) ... ok otest_shutdown_immediate_join (test.test_queue.CQueueTest.test_shutdown_immediate_join) ... ok otest_shutdown_immediate_put (test.test_queue.CQueueTest.test_shutdown_immediate_put) ... ok otest_shutdown_immediate_put_join (test.test_queue.CQueueTest.test_shutdown_immediate_put_join) ... ok otest_shutdown_join (test.test_queue.CQueueTest.test_shutdown_join) ... ok otest_shutdown_nonempty (test.test_queue.CQueueTest.test_shutdown_nonempty) ... ok otest_shutdown_pending_get (test.test_queue.CQueueTest.test_shutdown_pending_get) ... ok otest_shutdown_put (test.test_queue.CQueueTest.test_shutdown_put) ... ok otest_shutdown_put_join (test.test_queue.CQueueTest.test_shutdown_put_join) ... ok otest_basic (test.test_queue.CSimpleQueueTest.test_basic) ... ok otest_is_default (test.test_queue.CSimpleQueueTest.test_is_default) ... ok otest_many_threads (test.test_queue.CSimpleQueueTest.test_many_threads) ... skipped 'not enough memory: 4.9G minimum needed' otest_many_threads_nonblock (test.test_queue.CSimpleQueueTest.test_many_threads_nonblock) ... skipped 'not enough memory: 4.9G minimum needed' otest_many_threads_timeout (test.test_queue.CSimpleQueueTest.test_many_threads_timeout) ... skipped 'not enough memory: 4.9G minimum needed' otest_negative_timeout_raises_exception (test.test_queue.CSimpleQueueTest.test_negative_timeout_raises_exception) ... ok otest_order (test.test_queue.CSimpleQueueTest.test_order) ... ok otest_reentrancy (test.test_queue.CSimpleQueueTest.test_reentrancy) ... ok otest_references (test.test_queue.CSimpleQueueTest.test_references) ... ok otest_failing_queue (test.test_queue.PyFailingQueueTest.test_failing_queue) ... ok otest_basic (test.test_queue.PyLifoQueueTest.test_basic) ... ok otest_negative_timeout_raises_exception (test.test_queue.PyLifoQueueTest.test_negative_timeout_raises_exception) ... ok otest_nowait (test.test_queue.PyLifoQueueTest.test_nowait) ... ok otest_queue_join (test.test_queue.PyLifoQueueTest.test_queue_join) ... ok otest_queue_task_done (test.test_queue.PyLifoQueueTest.test_queue_task_done) ... ok otest_shrinking_queue (test.test_queue.PyLifoQueueTest.test_shrinking_queue) ... ok otest_shutdown_all_methods_in_many_threads (test.test_queue.PyLifoQueueTest.test_shutdown_all_methods_in_many_threads) ... python: Python/generated_cases.c.h:9097: _PyEval_EvalFrameDefault: Assertion `!PyStackRef_IsNull(GETLOCAL(oparg))' failed. oFatal Python error: Aborted o oCurrent thread 0x00007fe0beffd6c0 [Thread-217 (_re] (most recent call first): o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py", line 414 in notify o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/queue.py", line 217 in get o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_queue.py", line 351 in _read_msg_thread o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py", line 1016 in run o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py", line 1074 in _bootstrap_inner o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py", line 1036 in _bootstrap o oThread 0x00007fe0bf7fe6c0 [Thread-216 (_re] (most recent call first): o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py", line 307 in __enter__ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/queue.py", line 194 in get o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_queue.py", line 351 in _read_msg_thread o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py", line 1016 in run o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py", line 1074 in _bootstrap_inner o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py", line 1036 in _bootstrap o oThread 0x00007fe0bffff6c0 [Thread-215 (_re] (most recent call first): o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py", line 307 in __enter__ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/queue.py", line 89 in task_done o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_queue.py", line 352 in _read_msg_thread o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py", line 1016 in run o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py", line 1074 in _bootstrap_inner o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py", line 1036 in _bootstrap o oThread 0x00007fe0d4d6d6c0 [Thread-214 (_re] (most recent call first): o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py", line 307 in __enter__ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/queue.py", line 194 in get o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_queue.py", line 351 in _read_msg_thread o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py", line 1016 in run o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py", line 1074 in _bootstrap_inner o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py", line 1036 in _bootstrap o oThread 0x00007fe0d556e6c0 [Thread-213 (_re] (most recent call first): o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py", line 307 in __enter__ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/queue.py", line 194 in get o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_queue.py", line 351 in _read_msg_thread o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py", line 1016 in run o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py", line 1074 in _bootstrap_inner o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py", line 1036 in _bootstrap o oThread 0x00007fe0d66686c0 [Thread-212 (_re] (most recent call first): o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py", line 307 in __enter__ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/queue.py", line 194 in get o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_queue.py", line 351 in _read_msg_thread o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py", line 1016 in run o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py", line 1074 in _bootstrap_inner o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py", line 1036 in _bootstrap o oThread 0x00007fe0d7d5a740 [python] (most recent call first): o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py", line 1125 in join o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_queue.py", line 409 in _shutdown_all_methods_in_many_threads o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_queue.py", line 418 in test_shutdown_all_methods_in_many_threads o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/unittest/case.py", line 613 in _callTestMethod o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/unittest/case.py", line 667 in run o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/unittest/case.py", line 723 in __call__ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/unittest/suite.py", line 122 in run o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/unittest/suite.py", line 84 in __call__ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/unittest/suite.py", line 122 in run o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/unittest/suite.py", line 84 in __call__ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/unittest/runner.py", line 257 in run o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/libregrtest/single.py", line 84 in _run_suite o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/libregrtest/single.py", line 42 in run_unittest o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/libregrtest/single.py", line 162 in test_func o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/libregrtest/single.py", line 118 in regrtest_runner o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/libregrtest/single.py", line 165 in _load_run_test o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/libregrtest/single.py", line 210 in _runtest_env_changed_exc o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/libregrtest/single.py", line 319 in _runtest o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/libregrtest/single.py", line 348 in run_single_test o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/libregrtest/worker.py", line 92 in worker_process o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/libregrtest/worker.py", line 127 in main o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/libregrtest/worker.py", line 131 in o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/runpy.py", line 88 in _run_code o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/runpy.py", line 198 in _run_module_as_main o oCurrent thread's C stack trace (most recent call first): o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at _Py_DumpStack+0x33 [0x55990f8922fb] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x308691 [0x55990f8a5691] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x30890a [0x55990f8a590a] o Binary file "/lib/x86_64-linux-gnu/libc.so.6", at +0x3bfd0 [0x7fe0d7d98fd0] o Binary file "/lib/x86_64-linux-gnu/libc.so.6", at +0x8ad3c [0x7fe0d7de7d3c] o Binary file "/lib/x86_64-linux-gnu/libc.so.6", at gsignal+0x12 [0x7fe0d7d98f32] o Binary file "/lib/x86_64-linux-gnu/libc.so.6", at abort+0xd3 [0x7fe0d7d83472] o Binary file "/lib/x86_64-linux-gnu/libc.so.6", at +0x26395 [0x7fe0d7d83395] o Binary file "/lib/x86_64-linux-gnu/libc.so.6", at +0x34e32 [0x7fe0d7d91e32] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at _PyEval_EvalFrameDefault+0x195aa [0x55990f7fd84f] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x269fea [0x55990f806fea] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x26a188 [0x55990f807188] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x1187dc [0x55990f6b57dc] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x11b735 [0x55990f6b8735] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x11b89a [0x55990f6b889a] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x11a0b8 [0x55990f6b70b8] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x11a3a8 [0x55990f6b73a8] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at PyObject_Call+0x20 [0x55990f6b73e0] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at _PyEval_EvalFrameDefault+0x741c [0x55990f7eb6c1] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x269fea [0x55990f806fea] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x26a188 [0x55990f807188] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x1187dc [0x55990f6b57dc] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x11b735 [0x55990f6b8735] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x11b974 [0x55990f6b8974] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x285be5 [0x55990f822be5] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x285cc0 [0x55990f822cc0] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at _PyEval_EvalFrameDefault+0xa96d [0x55990f7eec12] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x269fea [0x55990f806fea] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x26a188 [0x55990f807188] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x1187dc [0x55990f6b57dc] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x11b735 [0x55990f6b8735] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x11b974 [0x55990f6b8974] o o0:13:39 load avg: 2.34 [389/491/7] test.test_asyncio.test_futures passed o0:13:39 load avg: 2.34 [390/491/7] test_glob passed o0:13:40 load avg: 2.31 [391/491/7] test_weakset passed o0:13:40 load avg: 2.31 [392/491/7] test.test_asyncio.test_runners passed o0:13:40 load avg: 2.31 [393/491/7] test.test_concurrent_futures.test_shutdown passed o0:13:40 load avg: 2.31 [394/491/7] test_dbm_dumb passed o0:13:42 load avg: 2.31 [395/491/7] test_long passed o0:13:43 load avg: 2.31 [396/491/7] test_annotationlib passed o0:13:43 load avg: 2.31 [397/491/7] test_py_compile passed o0:13:45 load avg: 2.29 [398/491/7] test_fork1 passed o0:13:46 load avg: 2.29 [399/491/7] test.test_gdb.test_cfunction_full skipped otest.test_gdb.test_cfunction_full skipped -- Couldn't find gdb program on the path: [Errno 2] No such file or directory: 'gdb' o0:13:46 load avg: 2.29 [400/491/7] test.test_pydoc.test_pydoc passed o0:13:46 load avg: 2.29 [401/491/7] test.test_gdb.test_backtrace skipped otest.test_gdb.test_backtrace skipped -- Couldn't find gdb program on the path: [Errno 2] No such file or directory: 'gdb' o0:13:46 load avg: 2.29 [402/491/7] test_memoryio passed o0:13:48 load avg: 2.29 [403/491/7] test_tracemalloc passed o0:13:48 load avg: 2.29 [404/491/7] test_urllib2_localnet passed o0:13:48 load avg: 2.29 [405/491/7] test_threading_local passed o0:13:48 load avg: 2.29 [406/491/7] test_fileutils passed o0:13:48 load avg: 2.29 [407/491/7] test_contains passed o0:13:49 load avg: 2.29 [408/491/7] test_tabnanny passed o0:13:50 load avg: 2.34 [409/491/7] test_ctypes passed o0:13:50 load avg: 2.34 [410/491/7] test_doctest passed o0:13:51 load avg: 2.34 [411/491/7] test_repl passed o0:13:52 load avg: 2.34 [412/491/7] test_bdb passed o0:13:52 load avg: 2.34 [413/491/7] test_listcomps passed o0:13:52 load avg: 2.34 [414/491/7] test_pathlib passed o0:13:52 load avg: 2.34 [415/491/7] test_richcmp passed o0:13:53 load avg: 2.34 [416/491/7] test_index passed o0:13:53 load avg: 2.34 [417/491/7] test_turtle skipped otest_turtle skipped -- No module named '_tkinter' o0:13:56 load avg: 2.32 [418/491/7] test_argparse passed o0:13:56 load avg: 2.32 [419/491/7] test_graphlib passed o0:13:56 load avg: 2.32 [420/491/7] test_int_literal passed o0:13:56 load avg: 2.32 [421/491/7] test_thread_local_bytecode passed o0:13:57 load avg: 2.32 [422/491/7] test_dataclasses passed o0:13:57 load avg: 2.32 [423/491/7] test_kqueue skipped otest_kqueue skipped -- test works only on BSD o0:13:59 load avg: 2.32 [424/491/7] test.test_concurrent_futures.test_init passed o0:14:00 load avg: 2.37 [425/491/7] test_popen passed o0:14:00 load avg: 2.37 [426/491/7] test_idle skipped otest_idle skipped -- No module named '_tkinter' o0:14:01 load avg: 2.37 [427/491/7] test.test_asyncio.test_locks passed o0:14:01 load avg: 2.37 [428/491/7] test_pwd passed o0:14:03 load avg: 2.37 [429/491/7] test_peepholer passed o0:14:03 load avg: 2.37 [430/491/7] test_class passed o0:14:05 load avg: 2.42 [431/491/7] test_fstring passed o0:14:05 load avg: 2.42 [432/491/7] test_tempfile passed o0:14:12 load avg: 2.55 [433/491/7] test_unicodedata passed o0:14:13 load avg: 2.55 [434/491/7] test_site passed o0:14:22 load avg: 2.54 [435/491/7] test.test_concurrent_futures.test_deadlock passed o0:14:22 load avg: 2.54 [436/491/7] test_pkgutil passed o0:14:23 load avg: 2.54 [437/491/7] test.test_future_stmt.test_future_single_import passed o0:14:23 load avg: 2.54 [438/491/7] test_locale passed o0:14:29 load avg: 2.49 [439/491/7] test_urllibnet passed o0:14:30 load avg: 2.49 [440/491/7] test.test_asyncio.test_pep492 passed o0:14:30 load avg: 2.54 [441/491/7] test.test_asyncio.test_staggered passed o0:14:30 load avg: 2.54 [442/491/7] test_osx_env passed o0:14:31 load avg: 2.54 [443/491/7] test_codecencodings_jp passed o0:14:38 load avg: 2.65 [444/491/7] test_weakref passed o0:14:38 load avg: 2.65 [445/491/7] test_frozen passed o0:14:38 load avg: 2.65 [446/491/7] test_patma passed o0:14:38 load avg: 2.65 [447/491/7] test_pkg passed o0:14:44 load avg: 2.60 [448/491/7] test_wait3 passed -- running (1): test_int (30.7 sec) o0:14:44 load avg: 2.60 [449/491/7] test_unpack_ex passed -- running (1): test_int (31.0 sec) o0:14:44 load avg: 2.60 [450/491/7] test.test_asyncio.test_streams passed -- running (1): test_int (31.4 sec) o0:14:44 load avg: 2.60 [451/491/7] test_reprlib passed -- running (1): test_int (31.6 sec) o0:14:45 load avg: 2.63 [452/491/7] test_eof passed -- running (1): test_int (32.2 sec) o0:14:53 load avg: 2.66 [453/491/7] test_int passed (40.6 sec) o0:14:54 load avg: 2.66 [454/491/7] test_threadedtempfile passed o0:14:54 load avg: 2.66 [455/491/7] test_fnmatch passed o0:14:55 load avg: 2.61 [456/491/7] test_context passed o0:14:55 load avg: 2.61 [457/491/7] test_perfmaps passed o0:14:55 load avg: 2.61 [458/491/7] test__osx_support passed o0:14:56 load avg: 2.61 [459/491/7] test_numeric_tower passed o0:14:56 load avg: 2.61 [460/491/7] test_hmac passed o0:14:56 load avg: 2.61 [461/491/7] test_contextlib passed o0:14:57 load avg: 2.61 [462/491/7] test_zipimport_support passed o0:14:57 load avg: 2.61 [463/491/7] test_xml_dom_minicompat passed o0:15:04 load avg: 2.48 [464/491/7] test.test_multiprocessing_fork.test_misc passed o0:15:04 load avg: 2.48 [465/491/7] test.test_future_stmt.test_future_multiple_features passed o0:15:05 load avg: 2.44 [466/491/7] test_base64 passed o0:15:16 load avg: 2.45 [467/491/7] test_venv passed o0:15:16 load avg: 2.45 [468/491/7] test_urllib_response passed o0:15:16 load avg: 2.45 [469/491/7] test_strftime passed o0:15:17 load avg: 2.45 [470/491/7] test_termios passed o0:15:17 load avg: 2.45 [471/491/7] test_defaultdict passed o0:15:18 load avg: 2.45 [472/491/7] test_sqlite3 passed o0:15:18 load avg: 2.45 [473/491/7] test_devpoll skipped otest_devpoll skipped -- test works only on Solaris OS family o0:15:18 load avg: 2.45 [474/491/7] test_wave passed o0:15:18 load avg: 2.45 [475/491/7] test_xxtestfuzz passed o0:15:19 load avg: 2.45 [476/491/7] test_symtable passed o0:15:19 load avg: 2.45 [477/491/7] test_free_threading skipped otest_free_threading skipped -- GIL enabled o0:15:19 load avg: 2.45 [478/491/7] test_socketserver passed o0:15:20 load avg: 2.41 [479/491/7] test_call passed o0:15:21 load avg: 2.41 [480/491/7] test_codecmaps_hk passed o0:15:21 load avg: 2.41 [481/491/7] test_code_module passed o0:15:26 load avg: 2.30 [482/491/7] test_urllib2net passed o0:15:26 load avg: 2.30 [483/491/7] test_asdl_parser passed o0:15:26 load avg: 2.30 [484/491/7] test_stringprep passed o0:15:27 load avg: 2.30 [485/491/7] test_poplib passed o0:15:27 load avg: 2.30 [486/491/7] test_runpy passed o0:15:48 load avg: 2.60 [487/491/7] test.test_multiprocessing_spawn.test_manager passed o0:15:48 load avg: 2.60 [488/491/7] test_dynamic passed o0:15:51 load avg: 2.56 [489/491/7] test_bytes passed o0:15:51 load avg: 2.56 [490/491/7] test.test_multiprocessing_fork.test_processes passed o0:15:53 load avg: 2.56 [491/491/7] test.test_asyncio.test_sock_lowlevel passed o o== Tests result: FAILURE == o o10 slowest tests: o- test_tools: 1 min 51 sec o- test_signal: 1 min 3 sec o- test_statistics: 51.7 sec o- test.test_multiprocessing_spawn.test_processes: 51.0 sec o- test_math: 49.5 sec o- test.test_multiprocessing_forkserver.test_processes: 46.3 sec o- test_int: 40.6 sec o- test.test_concurrent_futures.test_process_pool: 38.8 sec o- test_zipimport: 35.6 sec o- test_io: 34.4 sec o o28 tests skipped: o test.test_asyncio.test_windows_events o test.test_asyncio.test_windows_utils test.test_gdb.test_backtrace o test.test_gdb.test_cfunction test.test_gdb.test_cfunction_full o test.test_gdb.test_misc test.test_gdb.test_pretty_print o test_android test_apple test_dbm_ndbm test_devpoll o test_free_threading test_idle test_kqueue test_launcher o test_msvcrt test_startfile test_tcl test_tkinter test_ttk o test_ttk_textonly test_turtle test_winapi test_winconsoleio o test_winreg test_winsound test_wmi test_zstd o o1 test skipped (resource denied): o test_zipfile64 o o7 tests failed: o test_importlib test_pickle test_pprint test_queue test_re test_sys o test_unparse o o455 tests OK. o o0:15:53 load avg: 2.56 Re-running 7 failed tests in verbose mode in subprocesses o0:15:53 load avg: 2.56 Run 7 tests in parallel using 2 worker processes (timeout: 20 min, worker timeout: 25 min) o0:15:54 load avg: 2.56 [1/7] test_importlib passed oRe-running test_importlib in verbose mode (matching: test_nonmodule_cases) otest_nonmodule_cases (test.test_importlib.extension.test_loader.NonModuleExtensionTests.test_nonmodule_cases) ... test_nonmodule_with_methods (__main__.Frozen_NonModuleExtensionTests.test_nonmodule_with_methods) ... ok otest_null_slots (__main__.Frozen_NonModuleExtensionTests.test_null_slots) ... ok otest_nonmodule_with_methods (__main__.Source_NonModuleExtensionTests.test_nonmodule_with_methods) ... ok otest_null_slots (__main__.Source_NonModuleExtensionTests.test_null_slots) ... ok o o---------------------------------------------------------------------- oRan 4 tests in 0.001s o oOK ook o o---------------------------------------------------------------------- oRan 1 test in 0.097s o oOK o0:15:54 load avg: 2.56 [2/7] test_re passed oRe-running test_re in verbose mode (matching: test_big_codesize) otest_big_codesize (test.test_re.ReTests.test_big_codesize) ... ok o o---------------------------------------------------------------------- oRan 1 test in 0.164s o oOK o0:15:56 load avg: 2.59 [3/7] test_sys passed oRe-running test_sys in verbose mode otest_exc_info_no_exception (test.test_sys.ActiveExceptionTests.test_exc_info_no_exception) ... ok otest_exc_info_with_exception_instance (test.test_sys.ActiveExceptionTests.test_exc_info_with_exception_instance) ... ok otest_exc_info_with_exception_type (test.test_sys.ActiveExceptionTests.test_exc_info_with_exception_type) ... ok otest_sys_exception_no_exception (test.test_sys.ActiveExceptionTests.test_sys_exception_no_exception) ... ok otest_sys_exception_with_exception_instance (test.test_sys.ActiveExceptionTests.test_sys_exception_with_exception_instance) ... ok otest_sys_exception_with_exception_type (test.test_sys.ActiveExceptionTests.test_sys_exception_with_exception_type) ... ok otest_custom_displayhook (test.test_sys.DisplayHookTest.test_custom_displayhook) ... ok otest_gh130163 (test.test_sys.DisplayHookTest.test_gh130163) ... ok otest_lost_displayhook (test.test_sys.DisplayHookTest.test_lost_displayhook) ... ok otest_original_displayhook (test.test_sys.DisplayHookTest.test_original_displayhook) ... ok otest_excepthook (test.test_sys.ExceptHookTest.test_excepthook) ... ok otest_excepthook_bytes_filename (test.test_sys.ExceptHookTest.test_excepthook_bytes_filename) ... ok otest_original_excepthook (test.test_sys.ExceptHookTest.test_original_excepthook) ... ok otest_asyncgen_hooks (test.test_sys.SizeofTest.test_asyncgen_hooks) ... ok otest_changing_sys_stderr_and_removing_reference (test.test_sys.SizeofTest.test_changing_sys_stderr_and_removing_reference) ... ok otest_default (test.test_sys.SizeofTest.test_default) ... ok otest_errors (test.test_sys.SizeofTest.test_errors) ... ok otest_gc_head_size (test.test_sys.SizeofTest.test_gc_head_size) ... ok otest_objecttypes (test.test_sys.SizeofTest.test_objecttypes) ... ok otest_pythontypes (test.test_sys.SizeofTest.test_pythontypes) ... ok otest_slots (test.test_sys.SizeofTest.test_slots) ... ok otest_43581 (test.test_sys.SysModuleTest.test_43581) ... ok otest__enablelegacywindowsfsencoding (test.test_sys.SysModuleTest.test__enablelegacywindowsfsencoding) ... skipped 'needs sys._enablelegacywindowsfsencoding()' otest_attributes (test.test_sys.SysModuleTest.test_attributes) ... ok otest_c_locale_surrogateescape (test.test_sys.SysModuleTest.test_c_locale_surrogateescape) ... ok otest_call_tracing (test.test_sys.SysModuleTest.test_call_tracing) ... ok otest_clear_type_cache (test.test_sys.SysModuleTest.test_clear_type_cache) ... ok otest_current_exceptions (test.test_sys.SysModuleTest.test_current_exceptions) ... ok otest_current_frames (test.test_sys.SysModuleTest.test_current_frames) ... ok otest_debugmallocstats (test.test_sys.SysModuleTest.test_debugmallocstats) ... ok otest_disable_gil_abi (test.test_sys.SysModuleTest.test_disable_gil_abi) ... ok otest_dlopenflags (test.test_sys.SysModuleTest.test_dlopenflags) ... ok otest_emscripten_info (test.test_sys.SysModuleTest.test_emscripten_info) ... skipped 'only available on Emscripten' otest_executable (test.test_sys.SysModuleTest.test_executable) ... ok otest_exit (test.test_sys.SysModuleTest.test_exit) ... ok otest_exit_codes_under_repl (test.test_sys.SysModuleTest.test_exit_codes_under_repl) ... ok otest_getallocatedblocks (test.test_sys.SysModuleTest.test_getallocatedblocks) ... ok otest_getandroidapilevel (test.test_sys.SysModuleTest.test_getandroidapilevel) ... skipped 'Android only' otest_getdefaultencoding (test.test_sys.SysModuleTest.test_getdefaultencoding) ... ok otest_getfilesystemencoding (test.test_sys.SysModuleTest.test_getfilesystemencoding) ... ok otest_getframe (test.test_sys.SysModuleTest.test_getframe) ... ok otest_getframemodulename (test.test_sys.SysModuleTest.test_getframemodulename) ... ok otest_getobjects (test.test_sys.SysModuleTest.test_getobjects) ... skipped 'need sys.getobjects()' otest_getrecursionlimit (test.test_sys.SysModuleTest.test_getrecursionlimit) ... ok otest_getwindowsversion (test.test_sys.SysModuleTest.test_getwindowsversion) ... skipped "object has no attribute 'getwindowsversion'" otest_implementation (test.test_sys.SysModuleTest.test_implementation) ... ok otest_intern (test.test_sys.SysModuleTest.test_intern) ... ok otest_ioencoding (test.test_sys.SysModuleTest.test_ioencoding) ... ok otest_ioencoding_nonascii (test.test_sys.SysModuleTest.test_ioencoding_nonascii) ... skipped 'requires FS encoding to match locale' otest_is_finalizing (test.test_sys.SysModuleTest.test_is_finalizing) ... ok otest_is_gil_enabled (test.test_sys.SysModuleTest.test_is_gil_enabled) ... ok otest_issue20602 (test.test_sys.SysModuleTest.test_issue20602) ... ok otest_module_names (test.test_sys.SysModuleTest.test_module_names) ... ok otest_no_duplicates_in_meta_path (test.test_sys.SysModuleTest.test_no_duplicates_in_meta_path) ... ok otest_orig_argv (test.test_sys.SysModuleTest.test_orig_argv) ... ok otest_posix_locale_surrogateescape (test.test_sys.SysModuleTest.test_posix_locale_surrogateescape) ... ok otest_pystats (test.test_sys.SysModuleTest.test_pystats) ... skipped 'need Py_STATS build' otest_recursionlimit_recovery (test.test_sys.SysModuleTest.test_recursionlimit_recovery) ... ok otest_refcount (test.test_sys.SysModuleTest.test_refcount) ... ok otest_setrecursionlimit (test.test_sys.SysModuleTest.test_setrecursionlimit) ... ok otest_setrecursionlimit_to_depth (test.test_sys.SysModuleTest.test_setrecursionlimit_to_depth) ... ok otest_stdlib_dir (test.test_sys.SysModuleTest.test_stdlib_dir) ... ok otest_subinterp_intern_dynamically_allocated (test.test_sys.SysModuleTest.test_subinterp_intern_dynamically_allocated) ... ok otest_subinterp_intern_singleton (test.test_sys.SysModuleTest.test_subinterp_intern_singleton) ... ok otest_subinterp_intern_statically_allocated (test.test_sys.SysModuleTest.test_subinterp_intern_statically_allocated) ... ok otest_switchinterval (test.test_sys.SysModuleTest.test_switchinterval) ... ok otest_sys_flags (test.test_sys.SysModuleTest.test_sys_flags) ... ok otest_sys_flags_no_instantiation (test.test_sys.SysModuleTest.test_sys_flags_no_instantiation) ... ok otest_sys_getwindowsversion_no_instantiation (test.test_sys.SysModuleTest.test_sys_getwindowsversion_no_instantiation) ... skipped "object has no attribute 'getwindowsversion'" otest_sys_ignores_cleaning_up_user_data (test.test_sys.SysModuleTest.test_sys_ignores_cleaning_up_user_data) ... ok otest_sys_tracebacklimit (test.test_sys.SysModuleTest.test_sys_tracebacklimit) ... ok otest_sys_version_info_no_instantiation (test.test_sys.SysModuleTest.test_sys_version_info_no_instantiation) ... ok otest_thread_info (test.test_sys.SysModuleTest.test_thread_info) ... ok otest_new_namespace_for_each_remote_exec (test.test_sys.TestRemoteExec.test_new_namespace_for_each_remote_exec) oTest that each remote_exec call gets its own namespace. ... ok otest_remote_exec (test.test_sys.TestRemoteExec.test_remote_exec) oTest basic remote exec functionality ... ok otest_remote_exec_bytes (test.test_sys.TestRemoteExec.test_remote_exec_bytes) ... ok otest_remote_exec_disabled_by_env (test.test_sys.TestRemoteExec.test_remote_exec_disabled_by_env) oTest remote exec is disabled when PYTHON_DISABLE_REMOTE_DEBUG is set ... ok otest_remote_exec_disabled_by_xoption (test.test_sys.TestRemoteExec.test_remote_exec_disabled_by_xoption) oTest remote exec is disabled with -Xdisable-remote-debug ... ok otest_remote_exec_in_process_without_debug_fails_envvar (test.test_sys.TestRemoteExec.test_remote_exec_in_process_without_debug_fails_envvar) oTest remote exec in a process without remote debugging enabled ... ok otest_remote_exec_in_process_without_debug_fails_xoption (test.test_sys.TestRemoteExec.test_remote_exec_in_process_without_debug_fails_xoption) oTest remote exec in a process without remote debugging enabled ... ok otest_remote_exec_invalid_pid (test.test_sys.TestRemoteExec.test_remote_exec_invalid_pid) oTest remote exec with invalid process ID ... ok otest_remote_exec_invalid_script (test.test_sys.TestRemoteExec.test_remote_exec_invalid_script) oTest remote exec with invalid script type ... ok otest_remote_exec_invalid_script_path (test.test_sys.TestRemoteExec.test_remote_exec_invalid_script_path) oTest remote exec with invalid script path ... ok otest_remote_exec_raises_audit_event (test.test_sys.TestRemoteExec.test_remote_exec_raises_audit_event) oTest remote exec raises an audit event ... ok otest_remote_exec_syntax_error (test.test_sys.TestRemoteExec.test_remote_exec_syntax_error) oTest remote exec with syntax error in script ... ok otest_remote_exec_undecodable (test.test_sys.TestRemoteExec.test_remote_exec_undecodable) ... ok otest_remote_exec_with_exception (test.test_sys.TestRemoteExec.test_remote_exec_with_exception) oTest remote exec with an exception raised in the target process ... ok otest_remote_exec_with_self_process (test.test_sys.TestRemoteExec.test_remote_exec_with_self_process) oTest remote exec with the target process being the same as the test process ... ok otest_jit_is_active (test.test_sys.TestSysJIT.test_jit_is_active) ... ok otest_jit_is_available (test.test_sys.TestSysJIT.test_jit_is_available) ... ok otest_jit_is_enabled (test.test_sys.TestSysJIT.test_jit_is_enabled) ... ok otest_custom_unraisablehook (test.test_sys.UnraisableHookTest.test_custom_unraisablehook) ... ok otest_custom_unraisablehook_fail (test.test_sys.UnraisableHookTest.test_custom_unraisablehook_fail) ... ok otest_original_unraisablehook (test.test_sys.UnraisableHookTest.test_original_unraisablehook) ... ok otest_original_unraisablehook_err (test.test_sys.UnraisableHookTest.test_original_unraisablehook_err) ... ok otest_original_unraisablehook_exception_qualname (test.test_sys.UnraisableHookTest.test_original_unraisablehook_exception_qualname) ... ok otest_original_unraisablehook_wrong_type (test.test_sys.UnraisableHookTest.test_original_unraisablehook_wrong_type) ... ok o o---------------------------------------------------------------------- oRan 97 tests in 1.948s o oOK (skipped=8) o0:16:05 load avg: 2.65 [4/7] test_pickle passed oRe-running test_pickle in verbose mode otest_class_dispatch_table (test.test_pickle.CChainDispatchTableTests.test_class_dispatch_table) ... ok otest_default_dispatch_table (test.test_pickle.CChainDispatchTableTests.test_default_dispatch_table) ... ok otest_dispatch_table_None_item (test.test_pickle.CChainDispatchTableTests.test_dispatch_table_None_item) ... ok otest_instance_dispatch_table (test.test_pickle.CChainDispatchTableTests.test_instance_dispatch_table) ... ok otest_class_dispatch_table (test.test_pickle.CDispatchTableTests.test_class_dispatch_table) ... ok otest_default_dispatch_table (test.test_pickle.CDispatchTableTests.test_default_dispatch_table) ... ok otest_dispatch_table_None_item (test.test_pickle.CDispatchTableTests.test_dispatch_table_None_item) ... ok otest_instance_dispatch_table (test.test_pickle.CDispatchTableTests.test_instance_dispatch_table) ... ok otest_appends_on_non_lists (test.test_pickle.CDumpPickle_LoadPickle.test_appends_on_non_lists) ... ok otest_attribute_name_interning (test.test_pickle.CDumpPickle_LoadPickle.test_attribute_name_interning) ... ok otest_buffers_error (test.test_pickle.CDumpPickle_LoadPickle.test_buffers_error) ... ok otest_buffers_numpy (test.test_pickle.CDumpPickle_LoadPickle.test_buffers_numpy) ... skipped 'Test needs Numpy' otest_builtin_exceptions (test.test_pickle.CDumpPickle_LoadPickle.test_builtin_exceptions) ... ok otest_builtin_functions (test.test_pickle.CDumpPickle_LoadPickle.test_builtin_functions) ... ok otest_builtin_types (test.test_pickle.CDumpPickle_LoadPickle.test_builtin_types) ... ok otest_bytearray (test.test_pickle.CDumpPickle_LoadPickle.test_bytearray) ... ok otest_bytearray_memoization (test.test_pickle.CDumpPickle_LoadPickle.test_bytearray_memoization) ... ok otest_bytes (test.test_pickle.CDumpPickle_LoadPickle.test_bytes) ... ok otest_bytes_memoization (test.test_pickle.CDumpPickle_LoadPickle.test_bytes_memoization) ... ok otest_c_methods (test.test_pickle.CDumpPickle_LoadPickle.test_c_methods) ... ok otest_compat_pickle (test.test_pickle.CDumpPickle_LoadPickle.test_compat_pickle) ... ok otest_complex_newobj (test.test_pickle.CDumpPickle_LoadPickle.test_complex_newobj) ... ok otest_complex_newobj_ex (test.test_pickle.CDumpPickle_LoadPickle.test_complex_newobj_ex) ... ok otest_dict_chunking (test.test_pickle.CDumpPickle_LoadPickle.test_dict_chunking) ... ok otest_dynamic_class (test.test_pickle.CDumpPickle_LoadPickle.test_dynamic_class) ... ok otest_ellipsis (test.test_pickle.CDumpPickle_LoadPickle.test_ellipsis) ... ok otest_evil_class_mutating_dict (test.test_pickle.CDumpPickle_LoadPickle.test_evil_class_mutating_dict) ... ok otest_float (test.test_pickle.CDumpPickle_LoadPickle.test_float) ... ok otest_float_format (test.test_pickle.CDumpPickle_LoadPickle.test_float_format) ... o test_float_format (test.test_pickle.CDumpPickle_LoadPickle.test_float_format) (locale='de_DE') ... skipped "no locale 'de_DE'" o test_float_format (test.test_pickle.CDumpPickle_LoadPickle.test_float_format) (locale='fr_FR') ... skipped "no locale 'fr_FR'" otest_framed_write_sizes_with_delayed_writer (test.test_pickle.CDumpPickle_LoadPickle.test_framed_write_sizes_with_delayed_writer) ... ok otest_framing_large_objects (test.test_pickle.CDumpPickle_LoadPickle.test_framing_large_objects) ... ok otest_framing_many_objects (test.test_pickle.CDumpPickle_LoadPickle.test_framing_many_objects) ... ok otest_getinitargs (test.test_pickle.CDumpPickle_LoadPickle.test_getinitargs) ... ok otest_global_ext1 (test.test_pickle.CDumpPickle_LoadPickle.test_global_ext1) ... ok otest_global_ext2 (test.test_pickle.CDumpPickle_LoadPickle.test_global_ext2) ... ok otest_global_ext4 (test.test_pickle.CDumpPickle_LoadPickle.test_global_ext4) ... ok otest_in_band_buffers (test.test_pickle.CDumpPickle_LoadPickle.test_in_band_buffers) ... ok otest_inband_accept_default_buffers_argument (test.test_pickle.CDumpPickle_LoadPickle.test_inband_accept_default_buffers_argument) ... ok otest_int_pickling_efficiency (test.test_pickle.CDumpPickle_LoadPickle.test_int_pickling_efficiency) ... ok otest_ints (test.test_pickle.CDumpPickle_LoadPickle.test_ints) ... ok otest_large_pickles (test.test_pickle.CDumpPickle_LoadPickle.test_large_pickles) ... ok otest_list_chunking (test.test_pickle.CDumpPickle_LoadPickle.test_list_chunking) ... ok otest_long (test.test_pickle.CDumpPickle_LoadPickle.test_long) ... ok otest_long1 (test.test_pickle.CDumpPickle_LoadPickle.test_long1) ... ok otest_long4 (test.test_pickle.CDumpPickle_LoadPickle.test_long4) ... ok otest_many_puts_and_gets (test.test_pickle.CDumpPickle_LoadPickle.test_many_puts_and_gets) ... ok otest_metaclass (test.test_pickle.CDumpPickle_LoadPickle.test_metaclass) ... ok otest_misc (test.test_pickle.CDumpPickle_LoadPickle.test_misc) ... ok otest_nested_names (test.test_pickle.CDumpPickle_LoadPickle.test_nested_names) ... ok otest_newobj_generic (test.test_pickle.CDumpPickle_LoadPickle.test_newobj_generic) ... ok otest_newobj_list (test.test_pickle.CDumpPickle_LoadPickle.test_newobj_list) ... ok otest_newobj_list_slots (test.test_pickle.CDumpPickle_LoadPickle.test_newobj_list_slots) ... ok otest_newobj_not_class (test.test_pickle.CDumpPickle_LoadPickle.test_newobj_not_class) ... ok otest_newobj_overridden_new (test.test_pickle.CDumpPickle_LoadPickle.test_newobj_overridden_new) ... ok otest_newobj_proxies (test.test_pickle.CDumpPickle_LoadPickle.test_newobj_proxies) ... ok otest_newobj_tuple (test.test_pickle.CDumpPickle_LoadPickle.test_newobj_tuple) ... ok otest_notimplemented (test.test_pickle.CDumpPickle_LoadPickle.test_notimplemented) ... ok otest_oob_buffers (test.test_pickle.CDumpPickle_LoadPickle.test_oob_buffers) ... ok otest_oob_buffers_writable_to_readonly (test.test_pickle.CDumpPickle_LoadPickle.test_oob_buffers_writable_to_readonly) ... ok otest_optional_frames (test.test_pickle.CDumpPickle_LoadPickle.test_optional_frames) ... ok otest_pickle_setstate_None (test.test_pickle.CDumpPickle_LoadPickle.test_pickle_setstate_None) ... ok otest_pickle_to_2x (test.test_pickle.CDumpPickle_LoadPickle.test_pickle_to_2x) ... ok otest_proto (test.test_pickle.CDumpPickle_LoadPickle.test_proto) ... ok otest_py_methods (test.test_pickle.CDumpPickle_LoadPickle.test_py_methods) ... ok otest_recursive_dict (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_dict) ... ok otest_recursive_dict_and_inst (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_dict_and_inst) ... ok otest_recursive_dict_key (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_dict_key) ... ok otest_recursive_dict_like (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_dict_like) ... ok otest_recursive_dict_like_key (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_dict_like_key) ... ok otest_recursive_dict_subclass (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_dict_subclass) ... ok otest_recursive_dict_subclass_and_inst (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_dict_subclass_and_inst) ... ok otest_recursive_dict_subclass_key (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_dict_subclass_key) ... ok otest_recursive_frozenset_and_inst (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_frozenset_and_inst) ... ok otest_recursive_frozenset_subclass_and_inst (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_frozenset_subclass_and_inst) ... ok otest_recursive_inst (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_inst) ... ok otest_recursive_inst_state (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_inst_state) ... ok otest_recursive_list (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_list) ... ok otest_recursive_list_and_inst (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_list_and_inst) ... ok otest_recursive_list_like (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_list_like) ... ok otest_recursive_list_subclass (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_list_subclass) ... ok otest_recursive_list_subclass_and_inst (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_list_subclass_and_inst) ... ok otest_recursive_multi (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_multi) ... ok otest_recursive_nested_names (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_nested_names) ... ok otest_recursive_nested_names2 (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_nested_names2) ... ok otest_recursive_set (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_set) ... ok otest_recursive_set_and_inst (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_set_and_inst) ... ok otest_recursive_set_subclass_and_inst (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_set_subclass_and_inst) ... ok otest_recursive_tuple_and_dict (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_tuple_and_dict) ... ok otest_recursive_tuple_and_dict_key (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_tuple_and_dict_key) ... ok otest_recursive_tuple_and_dict_like (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_tuple_and_dict_like) ... ok otest_recursive_tuple_and_dict_like_key (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_tuple_and_dict_like_key) ... ok otest_recursive_tuple_and_dict_subclass (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_tuple_and_dict_subclass) ... ok otest_recursive_tuple_and_dict_subclass_key (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_tuple_and_dict_subclass_key) ... ok otest_recursive_tuple_and_inst (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_tuple_and_inst) ... ok otest_recursive_tuple_and_inst_state (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_tuple_and_inst_state) ... ok otest_recursive_tuple_and_list (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_tuple_and_list) ... ok otest_recursive_tuple_and_list_like (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_tuple_and_list_like) ... ok otest_recursive_tuple_and_list_subclass (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_tuple_and_list_subclass) ... ok otest_recursive_tuple_subclass_and_inst (test.test_pickle.CDumpPickle_LoadPickle.test_recursive_tuple_subclass_and_inst) ... ok otest_reduce (test.test_pickle.CDumpPickle_LoadPickle.test_reduce) ... ok otest_reduce_calls_base (test.test_pickle.CDumpPickle_LoadPickle.test_reduce_calls_base) ... ok otest_reduce_ex_called (test.test_pickle.CDumpPickle_LoadPickle.test_reduce_ex_called) ... ok otest_reduce_ex_calls_base (test.test_pickle.CDumpPickle_LoadPickle.test_reduce_ex_calls_base) ... ok otest_reduce_ex_overrides_reduce (test.test_pickle.CDumpPickle_LoadPickle.test_reduce_ex_overrides_reduce) ... ok otest_reduce_overrides_default_reduce_ex (test.test_pickle.CDumpPickle_LoadPickle.test_reduce_overrides_default_reduce_ex) ... ok otest_roundtrip_equality (test.test_pickle.CDumpPickle_LoadPickle.test_roundtrip_equality) ... ok otest_set_chunking (test.test_pickle.CDumpPickle_LoadPickle.test_set_chunking) ... ok otest_setitems_on_non_dicts (test.test_pickle.CDumpPickle_LoadPickle.test_setitems_on_non_dicts) ... ok otest_short_tuples (test.test_pickle.CDumpPickle_LoadPickle.test_short_tuples) ... ok otest_simple_newobj (test.test_pickle.CDumpPickle_LoadPickle.test_simple_newobj) ... ok otest_singleton_types (test.test_pickle.CDumpPickle_LoadPickle.test_singleton_types) ... ok otest_singletons (test.test_pickle.CDumpPickle_LoadPickle.test_singletons) ... ok otest_structseq (test.test_pickle.CDumpPickle_LoadPickle.test_structseq) ... ok otest_unicode (test.test_pickle.CDumpPickle_LoadPickle.test_unicode) ... ok otest_unicode_high_plane (test.test_pickle.CDumpPickle_LoadPickle.test_unicode_high_plane) ... ok otest_unicode_memoization (test.test_pickle.CDumpPickle_LoadPickle.test_unicode_memoization) ... ok otest_custom_pickler_dispatch_table_memleak (test.test_pickle.CIdPersPicklerTests.test_custom_pickler_dispatch_table_memleak) ... ok otest_pickler_instance_attribute (test.test_pickle.CIdPersPicklerTests.test_pickler_instance_attribute) ... ok otest_pickler_reference_cycle (test.test_pickle.CIdPersPicklerTests.test_pickler_reference_cycle) ... ok otest_pickler_super (test.test_pickle.CIdPersPicklerTests.test_pickler_super) ... ok otest_pickler_super_instance_attribute (test.test_pickle.CIdPersPicklerTests.test_pickler_super_instance_attribute) ... ok otest_protocol0_is_ascii_only (test.test_pickle.CIdPersPicklerTests.test_protocol0_is_ascii_only) ... ok otest_return_correct_type (test.test_pickle.CIdPersPicklerTests.test_return_correct_type) ... ok otest_unpickler_instance_attribute (test.test_pickle.CIdPersPicklerTests.test_unpickler_instance_attribute) ... ok otest_unpickler_reference_cycle (test.test_pickle.CIdPersPicklerTests.test_unpickler_reference_cycle) ... ok otest_unpickler_super (test.test_pickle.CIdPersPicklerTests.test_unpickler_super) ... ok otest_unpickler_super_instance_attribute (test.test_pickle.CIdPersPicklerTests.test_unpickler_super_instance_attribute) ... ok otest_persistence (test.test_pickle.CPersPicklerTests.test_persistence) ... ok otest_bad_init (test.test_pickle.CPickleTests.test_bad_init) ... ok otest_callapi (test.test_pickle.CPickleTests.test_callapi) ... ok otest_dump_closed_file (test.test_pickle.CPickleTests.test_dump_closed_file) ... ok otest_dump_load_oob_buffers (test.test_pickle.CPickleTests.test_dump_load_oob_buffers) ... ok otest_dump_text_file (test.test_pickle.CPickleTests.test_dump_text_file) ... ok otest_dumps_loads_oob_buffers (test.test_pickle.CPickleTests.test_dumps_loads_oob_buffers) ... ok otest_highest_protocol (test.test_pickle.CPickleTests.test_highest_protocol) ... ok otest_incomplete_input (test.test_pickle.CPickleTests.test_incomplete_input) ... ok otest_load_closed_file (test.test_pickle.CPickleTests.test_load_closed_file) ... ok otest_load_from_and_dump_to_file (test.test_pickle.CPickleTests.test_load_from_and_dump_to_file) ... ok otest_pickler_bad_file (test.test_pickle.CPickleTests.test_pickler_bad_file) ... ok otest_unpickler_bad_file (test.test_pickle.CPickleTests.test_unpickler_bad_file) ... ok otest_pickler_hook (test.test_pickle.CPicklerHookTests.test_pickler_hook) ... ok otest_reducer_override_no_reference_cycle (test.test_pickle.CPicklerHookTests.test_reducer_override_no_reference_cycle) ... ok otest_appends_on_non_lists (test.test_pickle.CPicklerTests.test_appends_on_non_lists) ... ok otest_attribute_name_interning (test.test_pickle.CPicklerTests.test_attribute_name_interning) ... ok otest_buffers_error (test.test_pickle.CPicklerTests.test_buffers_error) ... ok otest_buffers_numpy (test.test_pickle.CPicklerTests.test_buffers_numpy) ... skipped 'Test needs Numpy' otest_builtin_exceptions (test.test_pickle.CPicklerTests.test_builtin_exceptions) ... ok otest_builtin_functions (test.test_pickle.CPicklerTests.test_builtin_functions) ... ok otest_builtin_types (test.test_pickle.CPicklerTests.test_builtin_types) ... ok otest_bytearray (test.test_pickle.CPicklerTests.test_bytearray) ... ok otest_bytearray_memoization (test.test_pickle.CPicklerTests.test_bytearray_memoization) ... ok otest_bytes (test.test_pickle.CPicklerTests.test_bytes) ... ok otest_bytes_memoization (test.test_pickle.CPicklerTests.test_bytes_memoization) ... ok otest_c_methods (test.test_pickle.CPicklerTests.test_c_methods) ... ok otest_compat_pickle (test.test_pickle.CPicklerTests.test_compat_pickle) ... ok otest_complex_newobj (test.test_pickle.CPicklerTests.test_complex_newobj) ... ok otest_complex_newobj_ex (test.test_pickle.CPicklerTests.test_complex_newobj_ex) ... ok otest_dict_chunking (test.test_pickle.CPicklerTests.test_dict_chunking) ... ok otest_dynamic_class (test.test_pickle.CPicklerTests.test_dynamic_class) ... ok otest_ellipsis (test.test_pickle.CPicklerTests.test_ellipsis) ... ok otest_evil_class_mutating_dict (test.test_pickle.CPicklerTests.test_evil_class_mutating_dict) ... ok otest_float (test.test_pickle.CPicklerTests.test_float) ... ok otest_float_format (test.test_pickle.CPicklerTests.test_float_format) ... o test_float_format (test.test_pickle.CPicklerTests.test_float_format) (locale='de_DE') ... skipped "no locale 'de_DE'" o test_float_format (test.test_pickle.CPicklerTests.test_float_format) (locale='fr_FR') ... skipped "no locale 'fr_FR'" otest_framed_write_sizes_with_delayed_writer (test.test_pickle.CPicklerTests.test_framed_write_sizes_with_delayed_writer) ... ok otest_framing_large_objects (test.test_pickle.CPicklerTests.test_framing_large_objects) ... ok otest_framing_many_objects (test.test_pickle.CPicklerTests.test_framing_many_objects) ... ok otest_getinitargs (test.test_pickle.CPicklerTests.test_getinitargs) ... ok otest_global_ext1 (test.test_pickle.CPicklerTests.test_global_ext1) ... ok otest_global_ext2 (test.test_pickle.CPicklerTests.test_global_ext2) ... ok otest_global_ext4 (test.test_pickle.CPicklerTests.test_global_ext4) ... ok otest_in_band_buffers (test.test_pickle.CPicklerTests.test_in_band_buffers) ... ok otest_inband_accept_default_buffers_argument (test.test_pickle.CPicklerTests.test_inband_accept_default_buffers_argument) ... ok otest_int_pickling_efficiency (test.test_pickle.CPicklerTests.test_int_pickling_efficiency) ... ok otest_ints (test.test_pickle.CPicklerTests.test_ints) ... ok otest_large_pickles (test.test_pickle.CPicklerTests.test_large_pickles) ... ok otest_list_chunking (test.test_pickle.CPicklerTests.test_list_chunking) ... ok otest_long (test.test_pickle.CPicklerTests.test_long) ... ok otest_long1 (test.test_pickle.CPicklerTests.test_long1) ... ok otest_long4 (test.test_pickle.CPicklerTests.test_long4) ... ok otest_many_puts_and_gets (test.test_pickle.CPicklerTests.test_many_puts_and_gets) ... ok otest_metaclass (test.test_pickle.CPicklerTests.test_metaclass) ... ok otest_misc (test.test_pickle.CPicklerTests.test_misc) ... ok otest_nested_names (test.test_pickle.CPicklerTests.test_nested_names) ... ok otest_newobj_generic (test.test_pickle.CPicklerTests.test_newobj_generic) ... ok otest_newobj_list (test.test_pickle.CPicklerTests.test_newobj_list) ... ok otest_newobj_list_slots (test.test_pickle.CPicklerTests.test_newobj_list_slots) ... ok otest_newobj_not_class (test.test_pickle.CPicklerTests.test_newobj_not_class) ... ok otest_newobj_overridden_new (test.test_pickle.CPicklerTests.test_newobj_overridden_new) ... ok otest_newobj_proxies (test.test_pickle.CPicklerTests.test_newobj_proxies) ... ok otest_newobj_tuple (test.test_pickle.CPicklerTests.test_newobj_tuple) ... ok otest_notimplemented (test.test_pickle.CPicklerTests.test_notimplemented) ... ok otest_oob_buffers (test.test_pickle.CPicklerTests.test_oob_buffers) ... ok otest_oob_buffers_writable_to_readonly (test.test_pickle.CPicklerTests.test_oob_buffers_writable_to_readonly) ... ok otest_optional_frames (test.test_pickle.CPicklerTests.test_optional_frames) ... ok otest_pickle_setstate_None (test.test_pickle.CPicklerTests.test_pickle_setstate_None) ... ok otest_pickle_to_2x (test.test_pickle.CPicklerTests.test_pickle_to_2x) ... ok otest_proto (test.test_pickle.CPicklerTests.test_proto) ... ok otest_py_methods (test.test_pickle.CPicklerTests.test_py_methods) ... ok otest_recursive_dict (test.test_pickle.CPicklerTests.test_recursive_dict) ... ok otest_recursive_dict_and_inst (test.test_pickle.CPicklerTests.test_recursive_dict_and_inst) ... ok otest_recursive_dict_key (test.test_pickle.CPicklerTests.test_recursive_dict_key) ... ok otest_recursive_dict_like (test.test_pickle.CPicklerTests.test_recursive_dict_like) ... ok otest_recursive_dict_like_key (test.test_pickle.CPicklerTests.test_recursive_dict_like_key) ... ok otest_recursive_dict_subclass (test.test_pickle.CPicklerTests.test_recursive_dict_subclass) ... ok otest_recursive_dict_subclass_and_inst (test.test_pickle.CPicklerTests.test_recursive_dict_subclass_and_inst) ... ok otest_recursive_dict_subclass_key (test.test_pickle.CPicklerTests.test_recursive_dict_subclass_key) ... ok otest_recursive_frozenset_and_inst (test.test_pickle.CPicklerTests.test_recursive_frozenset_and_inst) ... ok otest_recursive_frozenset_subclass_and_inst (test.test_pickle.CPicklerTests.test_recursive_frozenset_subclass_and_inst) ... ok otest_recursive_inst (test.test_pickle.CPicklerTests.test_recursive_inst) ... ok otest_recursive_inst_state (test.test_pickle.CPicklerTests.test_recursive_inst_state) ... ok otest_recursive_list (test.test_pickle.CPicklerTests.test_recursive_list) ... ok otest_recursive_list_and_inst (test.test_pickle.CPicklerTests.test_recursive_list_and_inst) ... ok otest_recursive_list_like (test.test_pickle.CPicklerTests.test_recursive_list_like) ... ok otest_recursive_list_subclass (test.test_pickle.CPicklerTests.test_recursive_list_subclass) ... ok otest_recursive_list_subclass_and_inst (test.test_pickle.CPicklerTests.test_recursive_list_subclass_and_inst) ... ok otest_recursive_multi (test.test_pickle.CPicklerTests.test_recursive_multi) ... ok otest_recursive_nested_names (test.test_pickle.CPicklerTests.test_recursive_nested_names) ... ok otest_recursive_nested_names2 (test.test_pickle.CPicklerTests.test_recursive_nested_names2) ... ok otest_recursive_set (test.test_pickle.CPicklerTests.test_recursive_set) ... ok otest_recursive_set_and_inst (test.test_pickle.CPicklerTests.test_recursive_set_and_inst) ... ok otest_recursive_set_subclass_and_inst (test.test_pickle.CPicklerTests.test_recursive_set_subclass_and_inst) ... ok otest_recursive_tuple_and_dict (test.test_pickle.CPicklerTests.test_recursive_tuple_and_dict) ... ok otest_recursive_tuple_and_dict_key (test.test_pickle.CPicklerTests.test_recursive_tuple_and_dict_key) ... ok otest_recursive_tuple_and_dict_like (test.test_pickle.CPicklerTests.test_recursive_tuple_and_dict_like) ... ok otest_recursive_tuple_and_dict_like_key (test.test_pickle.CPicklerTests.test_recursive_tuple_and_dict_like_key) ... ok otest_recursive_tuple_and_dict_subclass (test.test_pickle.CPicklerTests.test_recursive_tuple_and_dict_subclass) ... ok otest_recursive_tuple_and_dict_subclass_key (test.test_pickle.CPicklerTests.test_recursive_tuple_and_dict_subclass_key) ... ok otest_recursive_tuple_and_inst (test.test_pickle.CPicklerTests.test_recursive_tuple_and_inst) ... ok otest_recursive_tuple_and_inst_state (test.test_pickle.CPicklerTests.test_recursive_tuple_and_inst_state) ... ok otest_recursive_tuple_and_list (test.test_pickle.CPicklerTests.test_recursive_tuple_and_list) ... ok otest_recursive_tuple_and_list_like (test.test_pickle.CPicklerTests.test_recursive_tuple_and_list_like) ... ok otest_recursive_tuple_and_list_subclass (test.test_pickle.CPicklerTests.test_recursive_tuple_and_list_subclass) ... ok otest_recursive_tuple_subclass_and_inst (test.test_pickle.CPicklerTests.test_recursive_tuple_subclass_and_inst) ... ok otest_reduce (test.test_pickle.CPicklerTests.test_reduce) ... ok otest_reduce_calls_base (test.test_pickle.CPicklerTests.test_reduce_calls_base) ... ok otest_reduce_ex_called (test.test_pickle.CPicklerTests.test_reduce_ex_called) ... ok otest_reduce_ex_calls_base (test.test_pickle.CPicklerTests.test_reduce_ex_calls_base) ... ok otest_reduce_ex_overrides_reduce (test.test_pickle.CPicklerTests.test_reduce_ex_overrides_reduce) ... ok otest_reduce_overrides_default_reduce_ex (test.test_pickle.CPicklerTests.test_reduce_overrides_default_reduce_ex) ... ok otest_roundtrip_equality (test.test_pickle.CPicklerTests.test_roundtrip_equality) ... ok otest_set_chunking (test.test_pickle.CPicklerTests.test_set_chunking) ... ok otest_setitems_on_non_dicts (test.test_pickle.CPicklerTests.test_setitems_on_non_dicts) ... ok otest_short_tuples (test.test_pickle.CPicklerTests.test_short_tuples) ... ok otest_simple_newobj (test.test_pickle.CPicklerTests.test_simple_newobj) ... ok otest_singleton_types (test.test_pickle.CPicklerTests.test_singleton_types) ... ok otest_singletons (test.test_pickle.CPicklerTests.test_singletons) ... ok otest_structseq (test.test_pickle.CPicklerTests.test_structseq) ... ok otest_unicode (test.test_pickle.CPicklerTests.test_unicode) ... ok otest_unicode_high_plane (test.test_pickle.CPicklerTests.test_unicode_high_plane) ... ok otest_unicode_memoization (test.test_pickle.CPicklerTests.test_unicode_memoization) ... ok otest_clear_pickler_memo (test.test_pickle.CPicklerUnpicklerObjectTests.test_clear_pickler_memo) ... ok otest_issue18339 (test.test_pickle.CPicklerUnpicklerObjectTests.test_issue18339) ... ok otest_multiple_unpicklings_minimal (test.test_pickle.CPicklerUnpicklerObjectTests.test_multiple_unpicklings_minimal) ... ok otest_multiple_unpicklings_seekable (test.test_pickle.CPicklerUnpicklerObjectTests.test_multiple_unpicklings_seekable) ... ok otest_multiple_unpicklings_unseekable (test.test_pickle.CPicklerUnpicklerObjectTests.test_multiple_unpicklings_unseekable) ... ok otest_pickle_invalid_reducer_override (test.test_pickle.CPicklerUnpicklerObjectTests.test_pickle_invalid_reducer_override) ... ok otest_priming_pickler_memo (test.test_pickle.CPicklerUnpicklerObjectTests.test_priming_pickler_memo) ... ok otest_priming_unpickler_memo (test.test_pickle.CPicklerUnpicklerObjectTests.test_priming_unpickler_memo) ... ok otest_reusing_unpickler_objects (test.test_pickle.CPicklerUnpicklerObjectTests.test_reusing_unpickler_objects) ... ok otest_unpickling_buffering_readline (test.test_pickle.CPicklerUnpicklerObjectTests.test_unpickling_buffering_readline) ... ok otest_bad_ext_code (test.test_pickle.CPicklingErrorTests.test_bad_ext_code) ... ok otest_bad_getattr (test.test_pickle.CPicklingErrorTests.test_bad_getattr) ... ok otest_bad_newobj_args (test.test_pickle.CPicklingErrorTests.test_bad_newobj_args) ... ok otest_bad_newobj_class (test.test_pickle.CPicklingErrorTests.test_bad_newobj_class) ... ok otest_bad_newobj_ex__class (test.test_pickle.CPicklingErrorTests.test_bad_newobj_ex__class) ... ok otest_bad_newobj_ex_args (test.test_pickle.CPicklingErrorTests.test_bad_newobj_ex_args) ... ok otest_bad_object_dict_items (test.test_pickle.CPicklingErrorTests.test_bad_object_dict_items) ... ok otest_bad_object_list_items (test.test_pickle.CPicklingErrorTests.test_bad_object_list_items) ... ok otest_bad_reconstructor (test.test_pickle.CPicklingErrorTests.test_bad_reconstructor) ... ok otest_bad_reconstructor_args (test.test_pickle.CPicklingErrorTests.test_bad_reconstructor_args) ... ok otest_bad_reduce_result (test.test_pickle.CPicklingErrorTests.test_bad_reduce_result) ... ok otest_bad_state_setter (test.test_pickle.CPicklingErrorTests.test_bad_state_setter) ... ok otest_buffer_callback_error (test.test_pickle.CPicklingErrorTests.test_buffer_callback_error) ... ok otest_evil_pickler_mutating_collection (test.test_pickle.CPicklingErrorTests.test_evil_pickler_mutating_collection) ... ok otest_global_lookup_error (test.test_pickle.CPicklingErrorTests.test_global_lookup_error) ... ok otest_local_lookup_error (test.test_pickle.CPicklingErrorTests.test_local_lookup_error) ... ok otest_nested_lookup_error (test.test_pickle.CPicklingErrorTests.test_nested_lookup_error) ... ok otest_non_continuous_buffer (test.test_pickle.CPicklingErrorTests.test_non_continuous_buffer) ... ok otest_nonencodable_global_name_error (test.test_pickle.CPicklingErrorTests.test_nonencodable_global_name_error) ... ok otest_nonencodable_module_name_error (test.test_pickle.CPicklingErrorTests.test_nonencodable_module_name_error) ... ok otest_picklebuffer_error (test.test_pickle.CPicklingErrorTests.test_picklebuffer_error) ... ok otest_reduce_None (test.test_pickle.CPicklingErrorTests.test_reduce_None) ... ok otest_reduce_ex_None (test.test_pickle.CPicklingErrorTests.test_reduce_ex_None) ... ok otest_unpickleable_dict_items (test.test_pickle.CPicklingErrorTests.test_unpickleable_dict_items) ... ok otest_unpickleable_frozenset_items (test.test_pickle.CPicklingErrorTests.test_unpickleable_frozenset_items) ... ok otest_unpickleable_list_items (test.test_pickle.CPicklingErrorTests.test_unpickleable_list_items) ... ok otest_unpickleable_newobj_args (test.test_pickle.CPicklingErrorTests.test_unpickleable_newobj_args) ... ok otest_unpickleable_newobj_class (test.test_pickle.CPicklingErrorTests.test_unpickleable_newobj_class) ... ok otest_unpickleable_newobj_ex_args (test.test_pickle.CPicklingErrorTests.test_unpickleable_newobj_ex_args) ... ok otest_unpickleable_newobj_ex_class (test.test_pickle.CPicklingErrorTests.test_unpickleable_newobj_ex_class) ... ok otest_unpickleable_newobj_ex_kwargs (test.test_pickle.CPicklingErrorTests.test_unpickleable_newobj_ex_kwargs) ... ok otest_unpickleable_object_dict_items (test.test_pickle.CPicklingErrorTests.test_unpickleable_object_dict_items) ... ok otest_unpickleable_object_list_items (test.test_pickle.CPicklingErrorTests.test_unpickleable_object_list_items) ... ok otest_unpickleable_reconstructor (test.test_pickle.CPicklingErrorTests.test_unpickleable_reconstructor) ... ok otest_unpickleable_reconstructor_args (test.test_pickle.CPicklingErrorTests.test_unpickleable_reconstructor_args) ... ok otest_unpickleable_set_items (test.test_pickle.CPicklingErrorTests.test_unpickleable_set_items) ... ok otest_unpickleable_state (test.test_pickle.CPicklingErrorTests.test_unpickleable_state) ... ok otest_unpickleable_state_setter (test.test_pickle.CPicklingErrorTests.test_unpickleable_state_setter) ... ok otest_unpickleable_state_with_state_setter (test.test_pickle.CPicklingErrorTests.test_unpickleable_state_with_state_setter) ... ok otest_unpickleable_tuple_items (test.test_pickle.CPicklingErrorTests.test_unpickleable_tuple_items) ... ok otest_wrong_newobj_class (test.test_pickle.CPicklingErrorTests.test_wrong_newobj_class) ... ok otest_wrong_newobj_ex_class (test.test_pickle.CPicklingErrorTests.test_wrong_newobj_ex_class) ... skipped 'only verified in the Python implementation' otest_wrong_object_lookup_error (test.test_pickle.CPicklingErrorTests.test_wrong_object_lookup_error) ... ok otest_bad_ext_code (test.test_pickle.CUnpicklerTests.test_bad_ext_code) ... ok otest_bad_ext_inverted_registry (test.test_pickle.CUnpicklerTests.test_bad_ext_inverted_registry) ... ok otest_bad_mark (test.test_pickle.CUnpicklerTests.test_bad_mark) ... ok otest_bad_newobj (test.test_pickle.CUnpicklerTests.test_bad_newobj) ... ok otest_bad_newobj_ex (test.test_pickle.CUnpicklerTests.test_bad_newobj_ex) ... ok otest_bad_reduce (test.test_pickle.CUnpicklerTests.test_bad_reduce) ... ok otest_bad_stack (test.test_pickle.CUnpicklerTests.test_bad_stack) ... ok otest_bad_state (test.test_pickle.CUnpicklerTests.test_bad_state) ... ok otest_badly_escaped_string (test.test_pickle.CUnpicklerTests.test_badly_escaped_string) ... ok otest_badly_quoted_string (test.test_pickle.CUnpicklerTests.test_badly_quoted_string) ... ok otest_binbytes (test.test_pickle.CUnpicklerTests.test_binbytes) ... ok otest_binbytes8 (test.test_pickle.CUnpicklerTests.test_binbytes8) ... ok otest_binget (test.test_pickle.CUnpicklerTests.test_binget) ... ok otest_binunicode8 (test.test_pickle.CUnpicklerTests.test_binunicode8) ... ok otest_bytearray8 (test.test_pickle.CUnpicklerTests.test_bytearray8) ... ok otest_compat_unpickle (test.test_pickle.CUnpicklerTests.test_compat_unpickle) ... ok otest_constants (test.test_pickle.CUnpicklerTests.test_constants) ... ok otest_correctly_quoted_string (test.test_pickle.CUnpicklerTests.test_correctly_quoted_string) ... ok otest_custom_find_class (test.test_pickle.CUnpicklerTests.test_custom_find_class) ... ok otest_dup (test.test_pickle.CUnpicklerTests.test_dup) ... ok otest_empty_bytestring (test.test_pickle.CUnpicklerTests.test_empty_bytestring) ... ok otest_find_class (test.test_pickle.CUnpicklerTests.test_find_class) ... ok otest_frame_readline (test.test_pickle.CUnpicklerTests.test_frame_readline) ... ok otest_get (test.test_pickle.CUnpicklerTests.test_get) ... ok otest_large_32b_binbytes8 (test.test_pickle.CUnpicklerTests.test_large_32b_binbytes8) ... skipped 'test is only meaningful on 32-bit builds' otest_large_32b_binunicode8 (test.test_pickle.CUnpicklerTests.test_large_32b_binunicode8) ... skipped 'test is only meaningful on 32-bit builds' otest_large_32b_bytearray8 (test.test_pickle.CUnpicklerTests.test_large_32b_bytearray8) ... skipped 'test is only meaningful on 32-bit builds' otest_load_classic_instance (test.test_pickle.CUnpicklerTests.test_load_classic_instance) ... ok otest_load_from_data0 (test.test_pickle.CUnpicklerTests.test_load_from_data0) ... ok otest_load_from_data1 (test.test_pickle.CUnpicklerTests.test_load_from_data1) ... ok otest_load_from_data2 (test.test_pickle.CUnpicklerTests.test_load_from_data2) ... ok otest_load_from_data3 (test.test_pickle.CUnpicklerTests.test_load_from_data3) ... ok otest_load_from_data4 (test.test_pickle.CUnpicklerTests.test_load_from_data4) ... ok otest_load_global (test.test_pickle.CUnpicklerTests.test_load_global) ... ok otest_load_long_python2_str_as_bytes (test.test_pickle.CUnpicklerTests.test_load_long_python2_str_as_bytes) ... ok otest_load_python2_str_as_bytes (test.test_pickle.CUnpicklerTests.test_load_python2_str_as_bytes) ... ok otest_load_python2_unicode_as_str (test.test_pickle.CUnpicklerTests.test_load_python2_unicode_as_str) ... ok otest_load_stack_global (test.test_pickle.CUnpicklerTests.test_load_stack_global) ... ok otest_long_binget (test.test_pickle.CUnpicklerTests.test_long_binget) ... ok otest_maxint64 (test.test_pickle.CUnpicklerTests.test_maxint64) ... ok otest_misc_get (test.test_pickle.CUnpicklerTests.test_misc_get) ... ok otest_negative_32b_binbytes (test.test_pickle.CUnpicklerTests.test_negative_32b_binbytes) ... skipped 'test is only meaningful on 32-bit builds' otest_negative_32b_binput (test.test_pickle.CUnpicklerTests.test_negative_32b_binput) ... skipped 'test is only meaningful on 32-bit builds' otest_negative_32b_binunicode (test.test_pickle.CUnpicklerTests.test_negative_32b_binunicode) ... skipped 'test is only meaningful on 32-bit builds' otest_negative_put (test.test_pickle.CUnpicklerTests.test_negative_put) ... ok otest_nondecimal_integers (test.test_pickle.CUnpicklerTests.test_nondecimal_integers) ... ok otest_short_binbytes (test.test_pickle.CUnpicklerTests.test_short_binbytes) ... ok otest_short_binunicode (test.test_pickle.CUnpicklerTests.test_short_binunicode) ... ok otest_truncated_data (test.test_pickle.CUnpicklerTests.test_truncated_data) ... ok otest_unpickle_from_2x (test.test_pickle.CUnpicklerTests.test_unpickle_from_2x) ... ok otest_unpickle_module_race (test.test_pickle.CUnpicklerTests.test_unpickle_module_race) ... ok otest_zero_padded_integers (test.test_pickle.CUnpicklerTests.test_zero_padded_integers) ... ok otest_invocation (test.test_pickle.CommandLineTest.test_invocation) ... ok otest_unknown_flag (test.test_pickle.CommandLineTest.test_unknown_flag) ... ok otest_exceptions (test.test_pickle.CompatPickleTests.test_exceptions) ... ok otest_import (test.test_pickle.CompatPickleTests.test_import) ... ok otest_import_mapping (test.test_pickle.CompatPickleTests.test_import_mapping) ... ok otest_multiprocessing_exceptions (test.test_pickle.CompatPickleTests.test_multiprocessing_exceptions) ... ok otest_name_mapping (test.test_pickle.CompatPickleTests.test_name_mapping) ... ok otest_reverse_import_mapping (test.test_pickle.CompatPickleTests.test_reverse_import_mapping) ... ok otest_reverse_name_mapping (test.test_pickle.CompatPickleTests.test_reverse_name_mapping) ... ok otest_appends_on_non_lists (test.test_pickle.DumpPickle_CLoadPickle.test_appends_on_non_lists) ... ok otest_attribute_name_interning (test.test_pickle.DumpPickle_CLoadPickle.test_attribute_name_interning) ... ok otest_buffers_error (test.test_pickle.DumpPickle_CLoadPickle.test_buffers_error) ... ok otest_buffers_numpy (test.test_pickle.DumpPickle_CLoadPickle.test_buffers_numpy) ... skipped 'Test needs Numpy' otest_builtin_exceptions (test.test_pickle.DumpPickle_CLoadPickle.test_builtin_exceptions) ... ok otest_builtin_functions (test.test_pickle.DumpPickle_CLoadPickle.test_builtin_functions) ... ok otest_builtin_types (test.test_pickle.DumpPickle_CLoadPickle.test_builtin_types) ... ok otest_bytearray (test.test_pickle.DumpPickle_CLoadPickle.test_bytearray) ... ok otest_bytearray_memoization (test.test_pickle.DumpPickle_CLoadPickle.test_bytearray_memoization) ... ok otest_bytes (test.test_pickle.DumpPickle_CLoadPickle.test_bytes) ... ok otest_bytes_memoization (test.test_pickle.DumpPickle_CLoadPickle.test_bytes_memoization) ... ok otest_c_methods (test.test_pickle.DumpPickle_CLoadPickle.test_c_methods) ... ok otest_compat_pickle (test.test_pickle.DumpPickle_CLoadPickle.test_compat_pickle) ... ok otest_complex_newobj (test.test_pickle.DumpPickle_CLoadPickle.test_complex_newobj) ... ok otest_complex_newobj_ex (test.test_pickle.DumpPickle_CLoadPickle.test_complex_newobj_ex) ... ok otest_dict_chunking (test.test_pickle.DumpPickle_CLoadPickle.test_dict_chunking) ... ok otest_dynamic_class (test.test_pickle.DumpPickle_CLoadPickle.test_dynamic_class) ... ok otest_ellipsis (test.test_pickle.DumpPickle_CLoadPickle.test_ellipsis) ... ok otest_evil_class_mutating_dict (test.test_pickle.DumpPickle_CLoadPickle.test_evil_class_mutating_dict) ... ok otest_float (test.test_pickle.DumpPickle_CLoadPickle.test_float) ... ok otest_float_format (test.test_pickle.DumpPickle_CLoadPickle.test_float_format) ... o test_float_format (test.test_pickle.DumpPickle_CLoadPickle.test_float_format) (locale='de_DE') ... skipped "no locale 'de_DE'" o test_float_format (test.test_pickle.DumpPickle_CLoadPickle.test_float_format) (locale='fr_FR') ... skipped "no locale 'fr_FR'" otest_framed_write_sizes_with_delayed_writer (test.test_pickle.DumpPickle_CLoadPickle.test_framed_write_sizes_with_delayed_writer) ... ok otest_framing_large_objects (test.test_pickle.DumpPickle_CLoadPickle.test_framing_large_objects) ... ok otest_framing_many_objects (test.test_pickle.DumpPickle_CLoadPickle.test_framing_many_objects) ... ok otest_getinitargs (test.test_pickle.DumpPickle_CLoadPickle.test_getinitargs) ... ok otest_global_ext1 (test.test_pickle.DumpPickle_CLoadPickle.test_global_ext1) ... ok otest_global_ext2 (test.test_pickle.DumpPickle_CLoadPickle.test_global_ext2) ... ok otest_global_ext4 (test.test_pickle.DumpPickle_CLoadPickle.test_global_ext4) ... ok otest_in_band_buffers (test.test_pickle.DumpPickle_CLoadPickle.test_in_band_buffers) ... ok otest_inband_accept_default_buffers_argument (test.test_pickle.DumpPickle_CLoadPickle.test_inband_accept_default_buffers_argument) ... ok otest_int_pickling_efficiency (test.test_pickle.DumpPickle_CLoadPickle.test_int_pickling_efficiency) ... ok otest_ints (test.test_pickle.DumpPickle_CLoadPickle.test_ints) ... ok otest_large_pickles (test.test_pickle.DumpPickle_CLoadPickle.test_large_pickles) ... ok otest_list_chunking (test.test_pickle.DumpPickle_CLoadPickle.test_list_chunking) ... ok otest_long (test.test_pickle.DumpPickle_CLoadPickle.test_long) ... ok otest_long1 (test.test_pickle.DumpPickle_CLoadPickle.test_long1) ... ok otest_long4 (test.test_pickle.DumpPickle_CLoadPickle.test_long4) ... ok otest_many_puts_and_gets (test.test_pickle.DumpPickle_CLoadPickle.test_many_puts_and_gets) ... ok otest_metaclass (test.test_pickle.DumpPickle_CLoadPickle.test_metaclass) ... ok otest_misc (test.test_pickle.DumpPickle_CLoadPickle.test_misc) ... ok otest_nested_names (test.test_pickle.DumpPickle_CLoadPickle.test_nested_names) ... ok otest_newobj_generic (test.test_pickle.DumpPickle_CLoadPickle.test_newobj_generic) ... ok otest_newobj_list (test.test_pickle.DumpPickle_CLoadPickle.test_newobj_list) ... ok otest_newobj_list_slots (test.test_pickle.DumpPickle_CLoadPickle.test_newobj_list_slots) ... ok otest_newobj_not_class (test.test_pickle.DumpPickle_CLoadPickle.test_newobj_not_class) ... ok otest_newobj_overridden_new (test.test_pickle.DumpPickle_CLoadPickle.test_newobj_overridden_new) ... ok otest_newobj_proxies (test.test_pickle.DumpPickle_CLoadPickle.test_newobj_proxies) ... ok otest_newobj_tuple (test.test_pickle.DumpPickle_CLoadPickle.test_newobj_tuple) ... ok otest_notimplemented (test.test_pickle.DumpPickle_CLoadPickle.test_notimplemented) ... ok otest_oob_buffers (test.test_pickle.DumpPickle_CLoadPickle.test_oob_buffers) ... ok otest_oob_buffers_writable_to_readonly (test.test_pickle.DumpPickle_CLoadPickle.test_oob_buffers_writable_to_readonly) ... ok otest_optional_frames (test.test_pickle.DumpPickle_CLoadPickle.test_optional_frames) ... ok otest_pickle_setstate_None (test.test_pickle.DumpPickle_CLoadPickle.test_pickle_setstate_None) ... ok otest_pickle_to_2x (test.test_pickle.DumpPickle_CLoadPickle.test_pickle_to_2x) ... ok otest_proto (test.test_pickle.DumpPickle_CLoadPickle.test_proto) ... ok otest_py_methods (test.test_pickle.DumpPickle_CLoadPickle.test_py_methods) ... ok otest_recursive_dict (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_dict) ... ok otest_recursive_dict_and_inst (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_dict_and_inst) ... ok otest_recursive_dict_key (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_dict_key) ... ok otest_recursive_dict_like (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_dict_like) ... ok otest_recursive_dict_like_key (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_dict_like_key) ... ok otest_recursive_dict_subclass (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_dict_subclass) ... ok otest_recursive_dict_subclass_and_inst (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_dict_subclass_and_inst) ... ok otest_recursive_dict_subclass_key (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_dict_subclass_key) ... ok otest_recursive_frozenset_and_inst (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_frozenset_and_inst) ... ok otest_recursive_frozenset_subclass_and_inst (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_frozenset_subclass_and_inst) ... ok otest_recursive_inst (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_inst) ... ok otest_recursive_inst_state (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_inst_state) ... ok otest_recursive_list (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_list) ... ok otest_recursive_list_and_inst (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_list_and_inst) ... ok otest_recursive_list_like (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_list_like) ... ok otest_recursive_list_subclass (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_list_subclass) ... ok otest_recursive_list_subclass_and_inst (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_list_subclass_and_inst) ... ok otest_recursive_multi (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_multi) ... ok otest_recursive_nested_names (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_nested_names) ... ok otest_recursive_nested_names2 (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_nested_names2) ... ok otest_recursive_set (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_set) ... ok otest_recursive_set_and_inst (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_set_and_inst) ... ok otest_recursive_set_subclass_and_inst (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_set_subclass_and_inst) ... ok otest_recursive_tuple_and_dict (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_tuple_and_dict) ... ok otest_recursive_tuple_and_dict_key (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_tuple_and_dict_key) ... ok otest_recursive_tuple_and_dict_like (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_tuple_and_dict_like) ... ok otest_recursive_tuple_and_dict_like_key (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_tuple_and_dict_like_key) ... ok otest_recursive_tuple_and_dict_subclass (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_tuple_and_dict_subclass) ... ok otest_recursive_tuple_and_dict_subclass_key (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_tuple_and_dict_subclass_key) ... ok otest_recursive_tuple_and_inst (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_tuple_and_inst) ... ok otest_recursive_tuple_and_inst_state (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_tuple_and_inst_state) ... ok otest_recursive_tuple_and_list (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_tuple_and_list) ... ok otest_recursive_tuple_and_list_like (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_tuple_and_list_like) ... ok otest_recursive_tuple_and_list_subclass (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_tuple_and_list_subclass) ... ok otest_recursive_tuple_subclass_and_inst (test.test_pickle.DumpPickle_CLoadPickle.test_recursive_tuple_subclass_and_inst) ... ok otest_reduce (test.test_pickle.DumpPickle_CLoadPickle.test_reduce) ... ok otest_reduce_calls_base (test.test_pickle.DumpPickle_CLoadPickle.test_reduce_calls_base) ... ok otest_reduce_ex_called (test.test_pickle.DumpPickle_CLoadPickle.test_reduce_ex_called) ... ok otest_reduce_ex_calls_base (test.test_pickle.DumpPickle_CLoadPickle.test_reduce_ex_calls_base) ... ok otest_reduce_ex_overrides_reduce (test.test_pickle.DumpPickle_CLoadPickle.test_reduce_ex_overrides_reduce) ... ok otest_reduce_overrides_default_reduce_ex (test.test_pickle.DumpPickle_CLoadPickle.test_reduce_overrides_default_reduce_ex) ... ok otest_roundtrip_equality (test.test_pickle.DumpPickle_CLoadPickle.test_roundtrip_equality) ... ok otest_set_chunking (test.test_pickle.DumpPickle_CLoadPickle.test_set_chunking) ... ok otest_setitems_on_non_dicts (test.test_pickle.DumpPickle_CLoadPickle.test_setitems_on_non_dicts) ... ok otest_short_tuples (test.test_pickle.DumpPickle_CLoadPickle.test_short_tuples) ... ok otest_simple_newobj (test.test_pickle.DumpPickle_CLoadPickle.test_simple_newobj) ... ok otest_singleton_types (test.test_pickle.DumpPickle_CLoadPickle.test_singleton_types) ... ok otest_singletons (test.test_pickle.DumpPickle_CLoadPickle.test_singletons) ... ok otest_structseq (test.test_pickle.DumpPickle_CLoadPickle.test_structseq) ... ok otest_unicode (test.test_pickle.DumpPickle_CLoadPickle.test_unicode) ... ok otest_unicode_high_plane (test.test_pickle.DumpPickle_CLoadPickle.test_unicode_high_plane) ... ok otest_unicode_memoization (test.test_pickle.DumpPickle_CLoadPickle.test_unicode_memoization) ... ok otest_have_gc (test.test_pickle.HeapTypesTests.test_have_gc) ... ok otest_immutable (test.test_pickle.HeapTypesTests.test_immutable) ... ok otest_appends_on_non_lists (test.test_pickle.InMemoryPickleTests.test_appends_on_non_lists) ... ok otest_attribute_name_interning (test.test_pickle.InMemoryPickleTests.test_attribute_name_interning) ... ok otest_bad_ext_code (test.test_pickle.InMemoryPickleTests.test_bad_ext_code) ... ok otest_bad_ext_inverted_registry (test.test_pickle.InMemoryPickleTests.test_bad_ext_inverted_registry) ... ok otest_bad_mark (test.test_pickle.InMemoryPickleTests.test_bad_mark) ... ok otest_bad_newobj (test.test_pickle.InMemoryPickleTests.test_bad_newobj) ... ok otest_bad_newobj_ex (test.test_pickle.InMemoryPickleTests.test_bad_newobj_ex) ... ok otest_bad_reduce (test.test_pickle.InMemoryPickleTests.test_bad_reduce) ... ok otest_bad_stack (test.test_pickle.InMemoryPickleTests.test_bad_stack) ... ok otest_bad_state (test.test_pickle.InMemoryPickleTests.test_bad_state) ... ok otest_badly_escaped_string (test.test_pickle.InMemoryPickleTests.test_badly_escaped_string) ... ok otest_badly_quoted_string (test.test_pickle.InMemoryPickleTests.test_badly_quoted_string) ... ok otest_binbytes (test.test_pickle.InMemoryPickleTests.test_binbytes) ... ok otest_binbytes8 (test.test_pickle.InMemoryPickleTests.test_binbytes8) ... ok otest_binget (test.test_pickle.InMemoryPickleTests.test_binget) ... ok otest_binunicode8 (test.test_pickle.InMemoryPickleTests.test_binunicode8) ... ok otest_buffers_error (test.test_pickle.InMemoryPickleTests.test_buffers_error) ... ok otest_buffers_numpy (test.test_pickle.InMemoryPickleTests.test_buffers_numpy) ... skipped 'Test needs Numpy' otest_builtin_exceptions (test.test_pickle.InMemoryPickleTests.test_builtin_exceptions) ... ok otest_builtin_functions (test.test_pickle.InMemoryPickleTests.test_builtin_functions) ... ok otest_builtin_types (test.test_pickle.InMemoryPickleTests.test_builtin_types) ... ok otest_bytearray (test.test_pickle.InMemoryPickleTests.test_bytearray) ... ok otest_bytearray8 (test.test_pickle.InMemoryPickleTests.test_bytearray8) ... ok otest_bytearray_memoization (test.test_pickle.InMemoryPickleTests.test_bytearray_memoization) ... ok otest_bytes (test.test_pickle.InMemoryPickleTests.test_bytes) ... ok otest_bytes_memoization (test.test_pickle.InMemoryPickleTests.test_bytes_memoization) ... ok otest_c_methods (test.test_pickle.InMemoryPickleTests.test_c_methods) ... ok otest_compat_pickle (test.test_pickle.InMemoryPickleTests.test_compat_pickle) ... ok otest_compat_unpickle (test.test_pickle.InMemoryPickleTests.test_compat_unpickle) ... ok otest_complex_newobj (test.test_pickle.InMemoryPickleTests.test_complex_newobj) ... ok otest_complex_newobj_ex (test.test_pickle.InMemoryPickleTests.test_complex_newobj_ex) ... ok otest_constants (test.test_pickle.InMemoryPickleTests.test_constants) ... ok otest_correctly_quoted_string (test.test_pickle.InMemoryPickleTests.test_correctly_quoted_string) ... ok otest_dict_chunking (test.test_pickle.InMemoryPickleTests.test_dict_chunking) ... ok otest_dup (test.test_pickle.InMemoryPickleTests.test_dup) ... ok otest_dynamic_class (test.test_pickle.InMemoryPickleTests.test_dynamic_class) ... ok otest_ellipsis (test.test_pickle.InMemoryPickleTests.test_ellipsis) ... ok otest_empty_bytestring (test.test_pickle.InMemoryPickleTests.test_empty_bytestring) ... ok otest_evil_class_mutating_dict (test.test_pickle.InMemoryPickleTests.test_evil_class_mutating_dict) ... ok otest_float (test.test_pickle.InMemoryPickleTests.test_float) ... ok otest_float_format (test.test_pickle.InMemoryPickleTests.test_float_format) ... o test_float_format (test.test_pickle.InMemoryPickleTests.test_float_format) (locale='de_DE') ... skipped "no locale 'de_DE'" o test_float_format (test.test_pickle.InMemoryPickleTests.test_float_format) (locale='fr_FR') ... skipped "no locale 'fr_FR'" otest_frame_readline (test.test_pickle.InMemoryPickleTests.test_frame_readline) ... ok otest_framing_large_objects (test.test_pickle.InMemoryPickleTests.test_framing_large_objects) ... ok otest_framing_many_objects (test.test_pickle.InMemoryPickleTests.test_framing_many_objects) ... ok otest_get (test.test_pickle.InMemoryPickleTests.test_get) ... ok otest_getinitargs (test.test_pickle.InMemoryPickleTests.test_getinitargs) ... ok otest_global_ext1 (test.test_pickle.InMemoryPickleTests.test_global_ext1) ... ok otest_global_ext2 (test.test_pickle.InMemoryPickleTests.test_global_ext2) ... ok otest_global_ext4 (test.test_pickle.InMemoryPickleTests.test_global_ext4) ... ok otest_huge_bytes_32b (test.test_pickle.InMemoryPickleTests.test_huge_bytes_32b) ... skipped 'not enough memory: 5.0G minimum needed' otest_huge_bytes_64b (test.test_pickle.InMemoryPickleTests.test_huge_bytes_64b) ... skipped 'not enough memory: 10.0G minimum needed' otest_huge_long_32b (test.test_pickle.InMemoryPickleTests.test_huge_long_32b) ... skipped 'not enough memory: 7.2G minimum needed' otest_huge_str_32b (test.test_pickle.InMemoryPickleTests.test_huge_str_32b) ... skipped 'not enough memory: 16.0G minimum needed' otest_huge_str_64b (test.test_pickle.InMemoryPickleTests.test_huge_str_64b) ... skipped 'not enough memory: 32.0G minimum needed' otest_in_band_buffers (test.test_pickle.InMemoryPickleTests.test_in_band_buffers) ... ok otest_inband_accept_default_buffers_argument (test.test_pickle.InMemoryPickleTests.test_inband_accept_default_buffers_argument) ... ok otest_int_pickling_efficiency (test.test_pickle.InMemoryPickleTests.test_int_pickling_efficiency) ... ok otest_ints (test.test_pickle.InMemoryPickleTests.test_ints) ... ok otest_large_32b_binbytes8 (test.test_pickle.InMemoryPickleTests.test_large_32b_binbytes8) ... skipped 'test is only meaningful on 32-bit builds' otest_large_32b_binunicode8 (test.test_pickle.InMemoryPickleTests.test_large_32b_binunicode8) ... skipped 'test is only meaningful on 32-bit builds' otest_large_32b_bytearray8 (test.test_pickle.InMemoryPickleTests.test_large_32b_bytearray8) ... skipped 'test is only meaningful on 32-bit builds' otest_large_pickles (test.test_pickle.InMemoryPickleTests.test_large_pickles) ... ok otest_list_chunking (test.test_pickle.InMemoryPickleTests.test_list_chunking) ... ok otest_load_classic_instance (test.test_pickle.InMemoryPickleTests.test_load_classic_instance) ... ok otest_load_from_data0 (test.test_pickle.InMemoryPickleTests.test_load_from_data0) ... ok otest_load_from_data1 (test.test_pickle.InMemoryPickleTests.test_load_from_data1) ... ok otest_load_from_data2 (test.test_pickle.InMemoryPickleTests.test_load_from_data2) ... ok otest_load_from_data3 (test.test_pickle.InMemoryPickleTests.test_load_from_data3) ... ok otest_load_from_data4 (test.test_pickle.InMemoryPickleTests.test_load_from_data4) ... ok otest_load_global (test.test_pickle.InMemoryPickleTests.test_load_global) ... ok otest_load_long_python2_str_as_bytes (test.test_pickle.InMemoryPickleTests.test_load_long_python2_str_as_bytes) ... ok otest_load_python2_str_as_bytes (test.test_pickle.InMemoryPickleTests.test_load_python2_str_as_bytes) ... ok otest_load_python2_unicode_as_str (test.test_pickle.InMemoryPickleTests.test_load_python2_unicode_as_str) ... ok otest_load_stack_global (test.test_pickle.InMemoryPickleTests.test_load_stack_global) ... ok otest_long (test.test_pickle.InMemoryPickleTests.test_long) ... ok otest_long1 (test.test_pickle.InMemoryPickleTests.test_long1) ... ok otest_long4 (test.test_pickle.InMemoryPickleTests.test_long4) ... ok otest_long_binget (test.test_pickle.InMemoryPickleTests.test_long_binget) ... ok otest_many_puts_and_gets (test.test_pickle.InMemoryPickleTests.test_many_puts_and_gets) ... ok otest_maxint64 (test.test_pickle.InMemoryPickleTests.test_maxint64) ... ok otest_metaclass (test.test_pickle.InMemoryPickleTests.test_metaclass) ... ok otest_misc (test.test_pickle.InMemoryPickleTests.test_misc) ... ok otest_misc_get (test.test_pickle.InMemoryPickleTests.test_misc_get) ... ok otest_negative_32b_binbytes (test.test_pickle.InMemoryPickleTests.test_negative_32b_binbytes) ... skipped 'test is only meaningful on 32-bit builds' otest_negative_32b_binput (test.test_pickle.InMemoryPickleTests.test_negative_32b_binput) ... skipped 'test is only meaningful on 32-bit builds' otest_negative_32b_binunicode (test.test_pickle.InMemoryPickleTests.test_negative_32b_binunicode) ... skipped 'test is only meaningful on 32-bit builds' otest_negative_put (test.test_pickle.InMemoryPickleTests.test_negative_put) ... ok otest_nested_names (test.test_pickle.InMemoryPickleTests.test_nested_names) ... ok otest_newobj_generic (test.test_pickle.InMemoryPickleTests.test_newobj_generic) ... ok otest_newobj_list (test.test_pickle.InMemoryPickleTests.test_newobj_list) ... ok otest_newobj_list_slots (test.test_pickle.InMemoryPickleTests.test_newobj_list_slots) ... ok otest_newobj_not_class (test.test_pickle.InMemoryPickleTests.test_newobj_not_class) ... ok otest_newobj_overridden_new (test.test_pickle.InMemoryPickleTests.test_newobj_overridden_new) ... ok otest_newobj_proxies (test.test_pickle.InMemoryPickleTests.test_newobj_proxies) ... ok otest_newobj_tuple (test.test_pickle.InMemoryPickleTests.test_newobj_tuple) ... ok otest_nondecimal_integers (test.test_pickle.InMemoryPickleTests.test_nondecimal_integers) ... ok otest_notimplemented (test.test_pickle.InMemoryPickleTests.test_notimplemented) ... ok otest_oob_buffers (test.test_pickle.InMemoryPickleTests.test_oob_buffers) ... ok otest_oob_buffers_writable_to_readonly (test.test_pickle.InMemoryPickleTests.test_oob_buffers_writable_to_readonly) ... ok otest_optional_frames (test.test_pickle.InMemoryPickleTests.test_optional_frames) ... ok otest_pickle_setstate_None (test.test_pickle.InMemoryPickleTests.test_pickle_setstate_None) ... ok otest_pickle_to_2x (test.test_pickle.InMemoryPickleTests.test_pickle_to_2x) ... ok otest_proto (test.test_pickle.InMemoryPickleTests.test_proto) ... ok otest_py_methods (test.test_pickle.InMemoryPickleTests.test_py_methods) ... ok otest_recursive_dict (test.test_pickle.InMemoryPickleTests.test_recursive_dict) ... ok otest_recursive_dict_and_inst (test.test_pickle.InMemoryPickleTests.test_recursive_dict_and_inst) ... ok otest_recursive_dict_key (test.test_pickle.InMemoryPickleTests.test_recursive_dict_key) ... ok otest_recursive_dict_like (test.test_pickle.InMemoryPickleTests.test_recursive_dict_like) ... ok otest_recursive_dict_like_key (test.test_pickle.InMemoryPickleTests.test_recursive_dict_like_key) ... ok otest_recursive_dict_subclass (test.test_pickle.InMemoryPickleTests.test_recursive_dict_subclass) ... ok otest_recursive_dict_subclass_and_inst (test.test_pickle.InMemoryPickleTests.test_recursive_dict_subclass_and_inst) ... ok otest_recursive_dict_subclass_key (test.test_pickle.InMemoryPickleTests.test_recursive_dict_subclass_key) ... ok otest_recursive_frozenset_and_inst (test.test_pickle.InMemoryPickleTests.test_recursive_frozenset_and_inst) ... ok otest_recursive_frozenset_subclass_and_inst (test.test_pickle.InMemoryPickleTests.test_recursive_frozenset_subclass_and_inst) ... ok otest_recursive_inst (test.test_pickle.InMemoryPickleTests.test_recursive_inst) ... ok otest_recursive_inst_state (test.test_pickle.InMemoryPickleTests.test_recursive_inst_state) ... ok otest_recursive_list (test.test_pickle.InMemoryPickleTests.test_recursive_list) ... ok otest_recursive_list_and_inst (test.test_pickle.InMemoryPickleTests.test_recursive_list_and_inst) ... ok otest_recursive_list_like (test.test_pickle.InMemoryPickleTests.test_recursive_list_like) ... ok otest_recursive_list_subclass (test.test_pickle.InMemoryPickleTests.test_recursive_list_subclass) ... ok otest_recursive_list_subclass_and_inst (test.test_pickle.InMemoryPickleTests.test_recursive_list_subclass_and_inst) ... ok otest_recursive_multi (test.test_pickle.InMemoryPickleTests.test_recursive_multi) ... ok otest_recursive_nested_names (test.test_pickle.InMemoryPickleTests.test_recursive_nested_names) ... ok otest_recursive_nested_names2 (test.test_pickle.InMemoryPickleTests.test_recursive_nested_names2) ... ok otest_recursive_set (test.test_pickle.InMemoryPickleTests.test_recursive_set) ... ok otest_recursive_set_and_inst (test.test_pickle.InMemoryPickleTests.test_recursive_set_and_inst) ... ok otest_recursive_set_subclass_and_inst (test.test_pickle.InMemoryPickleTests.test_recursive_set_subclass_and_inst) ... ok otest_recursive_tuple_and_dict (test.test_pickle.InMemoryPickleTests.test_recursive_tuple_and_dict) ... ok otest_recursive_tuple_and_dict_key (test.test_pickle.InMemoryPickleTests.test_recursive_tuple_and_dict_key) ... ok otest_recursive_tuple_and_dict_like (test.test_pickle.InMemoryPickleTests.test_recursive_tuple_and_dict_like) ... ok otest_recursive_tuple_and_dict_like_key (test.test_pickle.InMemoryPickleTests.test_recursive_tuple_and_dict_like_key) ... ok otest_recursive_tuple_and_dict_subclass (test.test_pickle.InMemoryPickleTests.test_recursive_tuple_and_dict_subclass) ... ok otest_recursive_tuple_and_dict_subclass_key (test.test_pickle.InMemoryPickleTests.test_recursive_tuple_and_dict_subclass_key) ... ok otest_recursive_tuple_and_inst (test.test_pickle.InMemoryPickleTests.test_recursive_tuple_and_inst) ... ok otest_recursive_tuple_and_inst_state (test.test_pickle.InMemoryPickleTests.test_recursive_tuple_and_inst_state) ... ok otest_recursive_tuple_and_list (test.test_pickle.InMemoryPickleTests.test_recursive_tuple_and_list) ... ok otest_recursive_tuple_and_list_like (test.test_pickle.InMemoryPickleTests.test_recursive_tuple_and_list_like) ... ok otest_recursive_tuple_and_list_subclass (test.test_pickle.InMemoryPickleTests.test_recursive_tuple_and_list_subclass) ... ok otest_recursive_tuple_subclass_and_inst (test.test_pickle.InMemoryPickleTests.test_recursive_tuple_subclass_and_inst) ... ok otest_reduce (test.test_pickle.InMemoryPickleTests.test_reduce) ... ok otest_reduce_calls_base (test.test_pickle.InMemoryPickleTests.test_reduce_calls_base) ... ok otest_reduce_ex_called (test.test_pickle.InMemoryPickleTests.test_reduce_ex_called) ... ok otest_reduce_ex_calls_base (test.test_pickle.InMemoryPickleTests.test_reduce_ex_calls_base) ... ok otest_reduce_ex_overrides_reduce (test.test_pickle.InMemoryPickleTests.test_reduce_ex_overrides_reduce) ... ok otest_reduce_overrides_default_reduce_ex (test.test_pickle.InMemoryPickleTests.test_reduce_overrides_default_reduce_ex) ... ok otest_roundtrip_equality (test.test_pickle.InMemoryPickleTests.test_roundtrip_equality) ... ok otest_set_chunking (test.test_pickle.InMemoryPickleTests.test_set_chunking) ... ok otest_setitems_on_non_dicts (test.test_pickle.InMemoryPickleTests.test_setitems_on_non_dicts) ... ok otest_short_binbytes (test.test_pickle.InMemoryPickleTests.test_short_binbytes) ... ok otest_short_binunicode (test.test_pickle.InMemoryPickleTests.test_short_binunicode) ... ok otest_short_tuples (test.test_pickle.InMemoryPickleTests.test_short_tuples) ... ok otest_simple_newobj (test.test_pickle.InMemoryPickleTests.test_simple_newobj) ... ok otest_singleton_types (test.test_pickle.InMemoryPickleTests.test_singleton_types) ... ok otest_singletons (test.test_pickle.InMemoryPickleTests.test_singletons) ... ok otest_structseq (test.test_pickle.InMemoryPickleTests.test_structseq) ... ok otest_truncated_data (test.test_pickle.InMemoryPickleTests.test_truncated_data) ... ok otest_unicode (test.test_pickle.InMemoryPickleTests.test_unicode) ... ok otest_unicode_high_plane (test.test_pickle.InMemoryPickleTests.test_unicode_high_plane) ... ok otest_unicode_memoization (test.test_pickle.InMemoryPickleTests.test_unicode_memoization) ... ok otest_unpickle_from_2x (test.test_pickle.InMemoryPickleTests.test_unpickle_from_2x) ... ok otest_unpickle_module_race (test.test_pickle.InMemoryPickleTests.test_unpickle_module_race) ... ok otest_zero_padded_integers (test.test_pickle.InMemoryPickleTests.test_zero_padded_integers) ... ok otest_lazy_import (test.test_pickle.LazyImportTest.test_lazy_import) ... ok otest_class_dispatch_table (test.test_pickle.PyChainDispatchTableTests.test_class_dispatch_table) ... ok otest_default_dispatch_table (test.test_pickle.PyChainDispatchTableTests.test_default_dispatch_table) ... ok otest_dispatch_table_None_item (test.test_pickle.PyChainDispatchTableTests.test_dispatch_table_None_item) ... ok otest_instance_dispatch_table (test.test_pickle.PyChainDispatchTableTests.test_instance_dispatch_table) ... ok otest_class_dispatch_table (test.test_pickle.PyDispatchTableTests.test_class_dispatch_table) ... ok otest_default_dispatch_table (test.test_pickle.PyDispatchTableTests.test_default_dispatch_table) ... ok otest_dispatch_table_None_item (test.test_pickle.PyDispatchTableTests.test_dispatch_table_None_item) ... ok otest_instance_dispatch_table (test.test_pickle.PyDispatchTableTests.test_instance_dispatch_table) ... ok otest_custom_pickler_dispatch_table_memleak (test.test_pickle.PyIdPersPicklerTests.test_custom_pickler_dispatch_table_memleak) ... ok otest_pickler_instance_attribute (test.test_pickle.PyIdPersPicklerTests.test_pickler_instance_attribute) ... ok otest_pickler_reference_cycle (test.test_pickle.PyIdPersPicklerTests.test_pickler_reference_cycle) ... ok otest_pickler_super (test.test_pickle.PyIdPersPicklerTests.test_pickler_super) ... ok otest_pickler_super_instance_attribute (test.test_pickle.PyIdPersPicklerTests.test_pickler_super_instance_attribute) ... ok otest_protocol0_is_ascii_only (test.test_pickle.PyIdPersPicklerTests.test_protocol0_is_ascii_only) ... ok otest_return_correct_type (test.test_pickle.PyIdPersPicklerTests.test_return_correct_type) ... ok otest_unpickler_instance_attribute (test.test_pickle.PyIdPersPicklerTests.test_unpickler_instance_attribute) ... ok otest_unpickler_reference_cycle (test.test_pickle.PyIdPersPicklerTests.test_unpickler_reference_cycle) ... ok otest_unpickler_super (test.test_pickle.PyIdPersPicklerTests.test_unpickler_super) ... ok otest_unpickler_super_instance_attribute (test.test_pickle.PyIdPersPicklerTests.test_unpickler_super_instance_attribute) ... ok otest_persistence (test.test_pickle.PyPersPicklerTests.test_persistence) ... ok otest_bad_init (test.test_pickle.PyPickleTests.test_bad_init) ... ok otest_callapi (test.test_pickle.PyPickleTests.test_callapi) ... ok otest_dump_closed_file (test.test_pickle.PyPickleTests.test_dump_closed_file) ... ok otest_dump_load_oob_buffers (test.test_pickle.PyPickleTests.test_dump_load_oob_buffers) ... ok otest_dump_text_file (test.test_pickle.PyPickleTests.test_dump_text_file) ... ok otest_dumps_loads_oob_buffers (test.test_pickle.PyPickleTests.test_dumps_loads_oob_buffers) ... ok otest_highest_protocol (test.test_pickle.PyPickleTests.test_highest_protocol) ... ok otest_incomplete_input (test.test_pickle.PyPickleTests.test_incomplete_input) ... ok otest_load_closed_file (test.test_pickle.PyPickleTests.test_load_closed_file) ... ok otest_load_from_and_dump_to_file (test.test_pickle.PyPickleTests.test_load_from_and_dump_to_file) ... ok otest_pickler_bad_file (test.test_pickle.PyPickleTests.test_pickler_bad_file) ... ok otest_unpickler_bad_file (test.test_pickle.PyPickleTests.test_unpickler_bad_file) ... ok otest_pickler_hook (test.test_pickle.PyPicklerHookTests.test_pickler_hook) ... ok otest_reducer_override_no_reference_cycle (test.test_pickle.PyPicklerHookTests.test_reducer_override_no_reference_cycle) ... ok otest_appends_on_non_lists (test.test_pickle.PyPicklerTests.test_appends_on_non_lists) ... ok otest_attribute_name_interning (test.test_pickle.PyPicklerTests.test_attribute_name_interning) ... ok otest_buffers_error (test.test_pickle.PyPicklerTests.test_buffers_error) ... ok otest_buffers_numpy (test.test_pickle.PyPicklerTests.test_buffers_numpy) ... skipped 'Test needs Numpy' otest_builtin_exceptions (test.test_pickle.PyPicklerTests.test_builtin_exceptions) ... ok otest_builtin_functions (test.test_pickle.PyPicklerTests.test_builtin_functions) ... ok otest_builtin_types (test.test_pickle.PyPicklerTests.test_builtin_types) ... ok otest_bytearray (test.test_pickle.PyPicklerTests.test_bytearray) ... ok otest_bytearray_memoization (test.test_pickle.PyPicklerTests.test_bytearray_memoization) ... ok otest_bytes (test.test_pickle.PyPicklerTests.test_bytes) ... ok otest_bytes_memoization (test.test_pickle.PyPicklerTests.test_bytes_memoization) ... ok otest_c_methods (test.test_pickle.PyPicklerTests.test_c_methods) ... ok otest_compat_pickle (test.test_pickle.PyPicklerTests.test_compat_pickle) ... ok otest_complex_newobj (test.test_pickle.PyPicklerTests.test_complex_newobj) ... ok otest_complex_newobj_ex (test.test_pickle.PyPicklerTests.test_complex_newobj_ex) ... ok otest_dict_chunking (test.test_pickle.PyPicklerTests.test_dict_chunking) ... ok otest_dynamic_class (test.test_pickle.PyPicklerTests.test_dynamic_class) ... ok otest_ellipsis (test.test_pickle.PyPicklerTests.test_ellipsis) ... ok otest_evil_class_mutating_dict (test.test_pickle.PyPicklerTests.test_evil_class_mutating_dict) ... ok otest_float (test.test_pickle.PyPicklerTests.test_float) ... ok otest_float_format (test.test_pickle.PyPicklerTests.test_float_format) ... o test_float_format (test.test_pickle.PyPicklerTests.test_float_format) (locale='de_DE') ... skipped "no locale 'de_DE'" o test_float_format (test.test_pickle.PyPicklerTests.test_float_format) (locale='fr_FR') ... skipped "no locale 'fr_FR'" otest_framed_write_sizes_with_delayed_writer (test.test_pickle.PyPicklerTests.test_framed_write_sizes_with_delayed_writer) ... ok otest_framing_large_objects (test.test_pickle.PyPicklerTests.test_framing_large_objects) ... ok otest_framing_many_objects (test.test_pickle.PyPicklerTests.test_framing_many_objects) ... ok otest_getinitargs (test.test_pickle.PyPicklerTests.test_getinitargs) ... ok otest_global_ext1 (test.test_pickle.PyPicklerTests.test_global_ext1) ... ok otest_global_ext2 (test.test_pickle.PyPicklerTests.test_global_ext2) ... ok otest_global_ext4 (test.test_pickle.PyPicklerTests.test_global_ext4) ... ok otest_in_band_buffers (test.test_pickle.PyPicklerTests.test_in_band_buffers) ... ok otest_inband_accept_default_buffers_argument (test.test_pickle.PyPicklerTests.test_inband_accept_default_buffers_argument) ... ok otest_int_pickling_efficiency (test.test_pickle.PyPicklerTests.test_int_pickling_efficiency) ... ok otest_ints (test.test_pickle.PyPicklerTests.test_ints) ... ok otest_large_pickles (test.test_pickle.PyPicklerTests.test_large_pickles) ... ok otest_list_chunking (test.test_pickle.PyPicklerTests.test_list_chunking) ... ok otest_long (test.test_pickle.PyPicklerTests.test_long) ... ok otest_long1 (test.test_pickle.PyPicklerTests.test_long1) ... ok otest_long4 (test.test_pickle.PyPicklerTests.test_long4) ... ok otest_many_puts_and_gets (test.test_pickle.PyPicklerTests.test_many_puts_and_gets) ... ok otest_metaclass (test.test_pickle.PyPicklerTests.test_metaclass) ... ok otest_misc (test.test_pickle.PyPicklerTests.test_misc) ... ok otest_nested_names (test.test_pickle.PyPicklerTests.test_nested_names) ... ok otest_newobj_generic (test.test_pickle.PyPicklerTests.test_newobj_generic) ... ok otest_newobj_list (test.test_pickle.PyPicklerTests.test_newobj_list) ... ok otest_newobj_list_slots (test.test_pickle.PyPicklerTests.test_newobj_list_slots) ... ok otest_newobj_not_class (test.test_pickle.PyPicklerTests.test_newobj_not_class) ... ok otest_newobj_overridden_new (test.test_pickle.PyPicklerTests.test_newobj_overridden_new) ... ok otest_newobj_proxies (test.test_pickle.PyPicklerTests.test_newobj_proxies) ... ok otest_newobj_tuple (test.test_pickle.PyPicklerTests.test_newobj_tuple) ... ok otest_notimplemented (test.test_pickle.PyPicklerTests.test_notimplemented) ... ok otest_oob_buffers (test.test_pickle.PyPicklerTests.test_oob_buffers) ... ok otest_oob_buffers_writable_to_readonly (test.test_pickle.PyPicklerTests.test_oob_buffers_writable_to_readonly) ... ok otest_optional_frames (test.test_pickle.PyPicklerTests.test_optional_frames) ... ok otest_pickle_setstate_None (test.test_pickle.PyPicklerTests.test_pickle_setstate_None) ... ok otest_pickle_to_2x (test.test_pickle.PyPicklerTests.test_pickle_to_2x) ... ok otest_proto (test.test_pickle.PyPicklerTests.test_proto) ... ok otest_py_methods (test.test_pickle.PyPicklerTests.test_py_methods) ... ok otest_recursive_dict (test.test_pickle.PyPicklerTests.test_recursive_dict) ... ok otest_recursive_dict_and_inst (test.test_pickle.PyPicklerTests.test_recursive_dict_and_inst) ... ok otest_recursive_dict_key (test.test_pickle.PyPicklerTests.test_recursive_dict_key) ... ok otest_recursive_dict_like (test.test_pickle.PyPicklerTests.test_recursive_dict_like) ... ok otest_recursive_dict_like_key (test.test_pickle.PyPicklerTests.test_recursive_dict_like_key) ... ok otest_recursive_dict_subclass (test.test_pickle.PyPicklerTests.test_recursive_dict_subclass) ... ok otest_recursive_dict_subclass_and_inst (test.test_pickle.PyPicklerTests.test_recursive_dict_subclass_and_inst) ... ok otest_recursive_dict_subclass_key (test.test_pickle.PyPicklerTests.test_recursive_dict_subclass_key) ... ok otest_recursive_frozenset_and_inst (test.test_pickle.PyPicklerTests.test_recursive_frozenset_and_inst) ... ok otest_recursive_frozenset_subclass_and_inst (test.test_pickle.PyPicklerTests.test_recursive_frozenset_subclass_and_inst) ... ok otest_recursive_inst (test.test_pickle.PyPicklerTests.test_recursive_inst) ... ok otest_recursive_inst_state (test.test_pickle.PyPicklerTests.test_recursive_inst_state) ... ok otest_recursive_list (test.test_pickle.PyPicklerTests.test_recursive_list) ... ok otest_recursive_list_and_inst (test.test_pickle.PyPicklerTests.test_recursive_list_and_inst) ... ok otest_recursive_list_like (test.test_pickle.PyPicklerTests.test_recursive_list_like) ... ok otest_recursive_list_subclass (test.test_pickle.PyPicklerTests.test_recursive_list_subclass) ... ok otest_recursive_list_subclass_and_inst (test.test_pickle.PyPicklerTests.test_recursive_list_subclass_and_inst) ... ok otest_recursive_multi (test.test_pickle.PyPicklerTests.test_recursive_multi) ... ok otest_recursive_nested_names (test.test_pickle.PyPicklerTests.test_recursive_nested_names) ... ok otest_recursive_nested_names2 (test.test_pickle.PyPicklerTests.test_recursive_nested_names2) ... ok otest_recursive_set (test.test_pickle.PyPicklerTests.test_recursive_set) ... ok otest_recursive_set_and_inst (test.test_pickle.PyPicklerTests.test_recursive_set_and_inst) ... ok otest_recursive_set_subclass_and_inst (test.test_pickle.PyPicklerTests.test_recursive_set_subclass_and_inst) ... ok otest_recursive_tuple_and_dict (test.test_pickle.PyPicklerTests.test_recursive_tuple_and_dict) ... ok otest_recursive_tuple_and_dict_key (test.test_pickle.PyPicklerTests.test_recursive_tuple_and_dict_key) ... ok otest_recursive_tuple_and_dict_like (test.test_pickle.PyPicklerTests.test_recursive_tuple_and_dict_like) ... ok otest_recursive_tuple_and_dict_like_key (test.test_pickle.PyPicklerTests.test_recursive_tuple_and_dict_like_key) ... ok otest_recursive_tuple_and_dict_subclass (test.test_pickle.PyPicklerTests.test_recursive_tuple_and_dict_subclass) ... ok otest_recursive_tuple_and_dict_subclass_key (test.test_pickle.PyPicklerTests.test_recursive_tuple_and_dict_subclass_key) ... ok otest_recursive_tuple_and_inst (test.test_pickle.PyPicklerTests.test_recursive_tuple_and_inst) ... ok otest_recursive_tuple_and_inst_state (test.test_pickle.PyPicklerTests.test_recursive_tuple_and_inst_state) ... ok otest_recursive_tuple_and_list (test.test_pickle.PyPicklerTests.test_recursive_tuple_and_list) ... ok otest_recursive_tuple_and_list_like (test.test_pickle.PyPicklerTests.test_recursive_tuple_and_list_like) ... ok otest_recursive_tuple_and_list_subclass (test.test_pickle.PyPicklerTests.test_recursive_tuple_and_list_subclass) ... ok otest_recursive_tuple_subclass_and_inst (test.test_pickle.PyPicklerTests.test_recursive_tuple_subclass_and_inst) ... ok otest_reduce (test.test_pickle.PyPicklerTests.test_reduce) ... ok otest_reduce_calls_base (test.test_pickle.PyPicklerTests.test_reduce_calls_base) ... ok otest_reduce_ex_called (test.test_pickle.PyPicklerTests.test_reduce_ex_called) ... ok otest_reduce_ex_calls_base (test.test_pickle.PyPicklerTests.test_reduce_ex_calls_base) ... ok otest_reduce_ex_overrides_reduce (test.test_pickle.PyPicklerTests.test_reduce_ex_overrides_reduce) ... ok otest_reduce_overrides_default_reduce_ex (test.test_pickle.PyPicklerTests.test_reduce_overrides_default_reduce_ex) ... ok otest_roundtrip_equality (test.test_pickle.PyPicklerTests.test_roundtrip_equality) ... ok otest_set_chunking (test.test_pickle.PyPicklerTests.test_set_chunking) ... ok otest_setitems_on_non_dicts (test.test_pickle.PyPicklerTests.test_setitems_on_non_dicts) ... ok otest_short_tuples (test.test_pickle.PyPicklerTests.test_short_tuples) ... ok otest_simple_newobj (test.test_pickle.PyPicklerTests.test_simple_newobj) ... ok otest_singleton_types (test.test_pickle.PyPicklerTests.test_singleton_types) ... ok otest_singletons (test.test_pickle.PyPicklerTests.test_singletons) ... ok otest_structseq (test.test_pickle.PyPicklerTests.test_structseq) ... ok otest_unicode (test.test_pickle.PyPicklerTests.test_unicode) ... ok otest_unicode_high_plane (test.test_pickle.PyPicklerTests.test_unicode_high_plane) ... ok otest_unicode_memoization (test.test_pickle.PyPicklerTests.test_unicode_memoization) ... ok otest_clear_pickler_memo (test.test_pickle.PyPicklerUnpicklerObjectTests.test_clear_pickler_memo) ... ok otest_multiple_unpicklings_minimal (test.test_pickle.PyPicklerUnpicklerObjectTests.test_multiple_unpicklings_minimal) ... ok otest_multiple_unpicklings_seekable (test.test_pickle.PyPicklerUnpicklerObjectTests.test_multiple_unpicklings_seekable) ... ok otest_multiple_unpicklings_unseekable (test.test_pickle.PyPicklerUnpicklerObjectTests.test_multiple_unpicklings_unseekable) ... ok otest_pickle_invalid_reducer_override (test.test_pickle.PyPicklerUnpicklerObjectTests.test_pickle_invalid_reducer_override) ... ok otest_priming_pickler_memo (test.test_pickle.PyPicklerUnpicklerObjectTests.test_priming_pickler_memo) ... ok otest_priming_unpickler_memo (test.test_pickle.PyPicklerUnpicklerObjectTests.test_priming_unpickler_memo) ... ok otest_reusing_unpickler_objects (test.test_pickle.PyPicklerUnpicklerObjectTests.test_reusing_unpickler_objects) ... ok otest_unpickling_buffering_readline (test.test_pickle.PyPicklerUnpicklerObjectTests.test_unpickling_buffering_readline) ... ok otest_bad_ext_code (test.test_pickle.PyPicklingErrorTests.test_bad_ext_code) ... ok otest_bad_getattr (test.test_pickle.PyPicklingErrorTests.test_bad_getattr) ... ok otest_bad_newobj_args (test.test_pickle.PyPicklingErrorTests.test_bad_newobj_args) ... ok otest_bad_newobj_class (test.test_pickle.PyPicklingErrorTests.test_bad_newobj_class) ... ok otest_bad_newobj_ex__class (test.test_pickle.PyPicklingErrorTests.test_bad_newobj_ex__class) ... ok otest_bad_newobj_ex_args (test.test_pickle.PyPicklingErrorTests.test_bad_newobj_ex_args) ... ok otest_bad_object_dict_items (test.test_pickle.PyPicklingErrorTests.test_bad_object_dict_items) ... ok otest_bad_object_list_items (test.test_pickle.PyPicklingErrorTests.test_bad_object_list_items) ... ok otest_bad_reconstructor (test.test_pickle.PyPicklingErrorTests.test_bad_reconstructor) ... ok otest_bad_reconstructor_args (test.test_pickle.PyPicklingErrorTests.test_bad_reconstructor_args) ... ok otest_bad_reduce_result (test.test_pickle.PyPicklingErrorTests.test_bad_reduce_result) ... ok otest_bad_state_setter (test.test_pickle.PyPicklingErrorTests.test_bad_state_setter) ... skipped 'only verified in the C implementation' otest_buffer_callback_error (test.test_pickle.PyPicklingErrorTests.test_buffer_callback_error) ... ok otest_evil_pickler_mutating_collection (test.test_pickle.PyPicklingErrorTests.test_evil_pickler_mutating_collection) ... ok otest_global_lookup_error (test.test_pickle.PyPicklingErrorTests.test_global_lookup_error) ... ok otest_local_lookup_error (test.test_pickle.PyPicklingErrorTests.test_local_lookup_error) ... ok otest_nested_lookup_error (test.test_pickle.PyPicklingErrorTests.test_nested_lookup_error) ... ok otest_non_continuous_buffer (test.test_pickle.PyPicklingErrorTests.test_non_continuous_buffer) ... ok otest_nonencodable_global_name_error (test.test_pickle.PyPicklingErrorTests.test_nonencodable_global_name_error) ... ok otest_nonencodable_module_name_error (test.test_pickle.PyPicklingErrorTests.test_nonencodable_module_name_error) ... ok otest_picklebuffer_error (test.test_pickle.PyPicklingErrorTests.test_picklebuffer_error) ... ok otest_reduce_None (test.test_pickle.PyPicklingErrorTests.test_reduce_None) ... ok otest_reduce_ex_None (test.test_pickle.PyPicklingErrorTests.test_reduce_ex_None) ... ok otest_unpickleable_dict_items (test.test_pickle.PyPicklingErrorTests.test_unpickleable_dict_items) ... ok otest_unpickleable_frozenset_items (test.test_pickle.PyPicklingErrorTests.test_unpickleable_frozenset_items) ... ok otest_unpickleable_list_items (test.test_pickle.PyPicklingErrorTests.test_unpickleable_list_items) ... ok otest_unpickleable_newobj_args (test.test_pickle.PyPicklingErrorTests.test_unpickleable_newobj_args) ... ok otest_unpickleable_newobj_class (test.test_pickle.PyPicklingErrorTests.test_unpickleable_newobj_class) ... ok otest_unpickleable_newobj_ex_args (test.test_pickle.PyPicklingErrorTests.test_unpickleable_newobj_ex_args) ... ok otest_unpickleable_newobj_ex_class (test.test_pickle.PyPicklingErrorTests.test_unpickleable_newobj_ex_class) ... ok otest_unpickleable_newobj_ex_kwargs (test.test_pickle.PyPicklingErrorTests.test_unpickleable_newobj_ex_kwargs) ... ok otest_unpickleable_object_dict_items (test.test_pickle.PyPicklingErrorTests.test_unpickleable_object_dict_items) ... ok otest_unpickleable_object_list_items (test.test_pickle.PyPicklingErrorTests.test_unpickleable_object_list_items) ... ok otest_unpickleable_reconstructor (test.test_pickle.PyPicklingErrorTests.test_unpickleable_reconstructor) ... ok otest_unpickleable_reconstructor_args (test.test_pickle.PyPicklingErrorTests.test_unpickleable_reconstructor_args) ... ok otest_unpickleable_set_items (test.test_pickle.PyPicklingErrorTests.test_unpickleable_set_items) ... ok otest_unpickleable_state (test.test_pickle.PyPicklingErrorTests.test_unpickleable_state) ... ok otest_unpickleable_state_setter (test.test_pickle.PyPicklingErrorTests.test_unpickleable_state_setter) ... ok otest_unpickleable_state_with_state_setter (test.test_pickle.PyPicklingErrorTests.test_unpickleable_state_with_state_setter) ... ok otest_unpickleable_tuple_items (test.test_pickle.PyPicklingErrorTests.test_unpickleable_tuple_items) ... ok otest_wrong_newobj_class (test.test_pickle.PyPicklingErrorTests.test_wrong_newobj_class) ... ok otest_wrong_newobj_ex_class (test.test_pickle.PyPicklingErrorTests.test_wrong_newobj_ex_class) ... ok otest_wrong_object_lookup_error (test.test_pickle.PyPicklingErrorTests.test_wrong_object_lookup_error) ... ok otest_bad_ext_code (test.test_pickle.PyUnpicklerTests.test_bad_ext_code) ... ok otest_bad_ext_inverted_registry (test.test_pickle.PyUnpicklerTests.test_bad_ext_inverted_registry) ... ok otest_bad_mark (test.test_pickle.PyUnpicklerTests.test_bad_mark) ... ok otest_bad_newobj (test.test_pickle.PyUnpicklerTests.test_bad_newobj) ... ok otest_bad_newobj_ex (test.test_pickle.PyUnpicklerTests.test_bad_newobj_ex) ... ok otest_bad_reduce (test.test_pickle.PyUnpicklerTests.test_bad_reduce) ... ok otest_bad_stack (test.test_pickle.PyUnpicklerTests.test_bad_stack) ... ok otest_bad_state (test.test_pickle.PyUnpicklerTests.test_bad_state) ... ok otest_badly_escaped_string (test.test_pickle.PyUnpicklerTests.test_badly_escaped_string) ... ok otest_badly_quoted_string (test.test_pickle.PyUnpicklerTests.test_badly_quoted_string) ... ok otest_binbytes (test.test_pickle.PyUnpicklerTests.test_binbytes) ... ok otest_binbytes8 (test.test_pickle.PyUnpicklerTests.test_binbytes8) ... ok otest_binget (test.test_pickle.PyUnpicklerTests.test_binget) ... ok otest_binunicode8 (test.test_pickle.PyUnpicklerTests.test_binunicode8) ... ok otest_bytearray8 (test.test_pickle.PyUnpicklerTests.test_bytearray8) ... ok otest_compat_unpickle (test.test_pickle.PyUnpicklerTests.test_compat_unpickle) ... ok otest_constants (test.test_pickle.PyUnpicklerTests.test_constants) ... ok otest_correctly_quoted_string (test.test_pickle.PyUnpicklerTests.test_correctly_quoted_string) ... ok otest_custom_find_class (test.test_pickle.PyUnpicklerTests.test_custom_find_class) ... ok otest_dup (test.test_pickle.PyUnpicklerTests.test_dup) ... ok otest_empty_bytestring (test.test_pickle.PyUnpicklerTests.test_empty_bytestring) ... ok otest_find_class (test.test_pickle.PyUnpicklerTests.test_find_class) ... ok otest_frame_readline (test.test_pickle.PyUnpicklerTests.test_frame_readline) ... ok otest_get (test.test_pickle.PyUnpicklerTests.test_get) ... ok otest_large_32b_binbytes8 (test.test_pickle.PyUnpicklerTests.test_large_32b_binbytes8) ... skipped 'test is only meaningful on 32-bit builds' otest_large_32b_binunicode8 (test.test_pickle.PyUnpicklerTests.test_large_32b_binunicode8) ... skipped 'test is only meaningful on 32-bit builds' otest_large_32b_bytearray8 (test.test_pickle.PyUnpicklerTests.test_large_32b_bytearray8) ... skipped 'test is only meaningful on 32-bit builds' otest_load_classic_instance (test.test_pickle.PyUnpicklerTests.test_load_classic_instance) ... ok otest_load_from_data0 (test.test_pickle.PyUnpicklerTests.test_load_from_data0) ... ok otest_load_from_data1 (test.test_pickle.PyUnpicklerTests.test_load_from_data1) ... ok otest_load_from_data2 (test.test_pickle.PyUnpicklerTests.test_load_from_data2) ... ok otest_load_from_data3 (test.test_pickle.PyUnpicklerTests.test_load_from_data3) ... ok otest_load_from_data4 (test.test_pickle.PyUnpicklerTests.test_load_from_data4) ... ok otest_load_global (test.test_pickle.PyUnpicklerTests.test_load_global) ... ok otest_load_long_python2_str_as_bytes (test.test_pickle.PyUnpicklerTests.test_load_long_python2_str_as_bytes) ... ok otest_load_python2_str_as_bytes (test.test_pickle.PyUnpicklerTests.test_load_python2_str_as_bytes) ... ok otest_load_python2_unicode_as_str (test.test_pickle.PyUnpicklerTests.test_load_python2_unicode_as_str) ... ok otest_load_stack_global (test.test_pickle.PyUnpicklerTests.test_load_stack_global) ... ok otest_long_binget (test.test_pickle.PyUnpicklerTests.test_long_binget) ... ok otest_maxint64 (test.test_pickle.PyUnpicklerTests.test_maxint64) ... ok otest_misc_get (test.test_pickle.PyUnpicklerTests.test_misc_get) ... ok otest_negative_32b_binbytes (test.test_pickle.PyUnpicklerTests.test_negative_32b_binbytes) ... skipped 'test is only meaningful on 32-bit builds' otest_negative_32b_binput (test.test_pickle.PyUnpicklerTests.test_negative_32b_binput) ... skipped 'test is only meaningful on 32-bit builds' otest_negative_32b_binunicode (test.test_pickle.PyUnpicklerTests.test_negative_32b_binunicode) ... skipped 'test is only meaningful on 32-bit builds' otest_negative_put (test.test_pickle.PyUnpicklerTests.test_negative_put) ... ok otest_nondecimal_integers (test.test_pickle.PyUnpicklerTests.test_nondecimal_integers) ... ok otest_short_binbytes (test.test_pickle.PyUnpicklerTests.test_short_binbytes) ... ok otest_short_binunicode (test.test_pickle.PyUnpicklerTests.test_short_binunicode) ... ok otest_truncated_data (test.test_pickle.PyUnpicklerTests.test_truncated_data) ... ok otest_unpickle_from_2x (test.test_pickle.PyUnpicklerTests.test_unpickle_from_2x) ... ok otest_unpickle_module_race (test.test_pickle.PyUnpicklerTests.test_unpickle_module_race) ... ok otest_zero_padded_integers (test.test_pickle.PyUnpicklerTests.test_zero_padded_integers) ... ok otest_pickler (test.test_pickle.SizeofTests.test_pickler) ... ok otest_unpickler (test.test_pickle.SizeofTests.test_unpickler) ... ok odecode_long (pickle) oDoctest: pickle.decode_long ... ok oencode_long (pickle) oDoctest: pickle.encode_long ... ok o o---------------------------------------------------------------------- oRan 887 tests in 12.013s o oOK (skipped=40) o0:16:06 load avg: 2.65 [5/7] test_pprint passed oRe-running test_pprint in verbose mode (matching: test_str_wrap) otest_str_wrap (test.test_pprint.QueryTestCase.test_str_wrap) ... ok o o---------------------------------------------------------------------- oRan 1 test in 0.028s o oOK o0:16:13 load avg: 2.68 [6/7/1] test_queue worker non-zero exit code (Exit code -6 (SIGABRT)) oRe-running test_queue in verbose mode otest_failing_queue (test.test_queue.CFailingQueueTest.test_failing_queue) ... ok otest_basic (test.test_queue.CLifoQueueTest.test_basic) ... ok otest_negative_timeout_raises_exception (test.test_queue.CLifoQueueTest.test_negative_timeout_raises_exception) ... ok otest_nowait (test.test_queue.CLifoQueueTest.test_nowait) ... ok otest_queue_join (test.test_queue.CLifoQueueTest.test_queue_join) ... ok otest_queue_task_done (test.test_queue.CLifoQueueTest.test_queue_task_done) ... ok otest_shrinking_queue (test.test_queue.CLifoQueueTest.test_shrinking_queue) ... ok otest_shutdown_all_methods_in_many_threads (test.test_queue.CLifoQueueTest.test_shutdown_all_methods_in_many_threads) ... ok otest_shutdown_all_methods_in_one_thread (test.test_queue.CLifoQueueTest.test_shutdown_all_methods_in_one_thread) ... ok otest_shutdown_allowed_transitions (test.test_queue.CLifoQueueTest.test_shutdown_allowed_transitions) ... ok otest_shutdown_empty (test.test_queue.CLifoQueueTest.test_shutdown_empty) ... ok otest_shutdown_get (test.test_queue.CLifoQueueTest.test_shutdown_get) ... ok otest_shutdown_get_task_done_join (test.test_queue.CLifoQueueTest.test_shutdown_get_task_done_join) ... ok otest_shutdown_immediate (test.test_queue.CLifoQueueTest.test_shutdown_immediate) ... ok otest_shutdown_immediate_all_methods_in_many_threads (test.test_queue.CLifoQueueTest.test_shutdown_immediate_all_methods_in_many_threads) ... ok otest_shutdown_immediate_all_methods_in_one_thread (test.test_queue.CLifoQueueTest.test_shutdown_immediate_all_methods_in_one_thread) ... ok otest_shutdown_immediate_get (test.test_queue.CLifoQueueTest.test_shutdown_immediate_get) ... ok otest_shutdown_immediate_join (test.test_queue.CLifoQueueTest.test_shutdown_immediate_join) ... ok otest_shutdown_immediate_put (test.test_queue.CLifoQueueTest.test_shutdown_immediate_put) ... ok otest_shutdown_immediate_put_join (test.test_queue.CLifoQueueTest.test_shutdown_immediate_put_join) ... ok otest_shutdown_join (test.test_queue.CLifoQueueTest.test_shutdown_join) ... ok otest_shutdown_nonempty (test.test_queue.CLifoQueueTest.test_shutdown_nonempty) ... ok otest_shutdown_pending_get (test.test_queue.CLifoQueueTest.test_shutdown_pending_get) ... ok otest_shutdown_put (test.test_queue.CLifoQueueTest.test_shutdown_put) ... ok otest_shutdown_put_join (test.test_queue.CLifoQueueTest.test_shutdown_put_join) ... ok otest_basic (test.test_queue.CPriorityQueueTest.test_basic) ... ok otest_negative_timeout_raises_exception (test.test_queue.CPriorityQueueTest.test_negative_timeout_raises_exception) ... ok otest_nowait (test.test_queue.CPriorityQueueTest.test_nowait) ... ok otest_queue_join (test.test_queue.CPriorityQueueTest.test_queue_join) ... ok otest_queue_task_done (test.test_queue.CPriorityQueueTest.test_queue_task_done) ... ok otest_shrinking_queue (test.test_queue.CPriorityQueueTest.test_shrinking_queue) ... ok otest_shutdown_all_methods_in_many_threads (test.test_queue.CPriorityQueueTest.test_shutdown_all_methods_in_many_threads) ... ok otest_shutdown_all_methods_in_one_thread (test.test_queue.CPriorityQueueTest.test_shutdown_all_methods_in_one_thread) ... ok otest_shutdown_allowed_transitions (test.test_queue.CPriorityQueueTest.test_shutdown_allowed_transitions) ... ok otest_shutdown_empty (test.test_queue.CPriorityQueueTest.test_shutdown_empty) ... ok otest_shutdown_get (test.test_queue.CPriorityQueueTest.test_shutdown_get) ... ok otest_shutdown_get_task_done_join (test.test_queue.CPriorityQueueTest.test_shutdown_get_task_done_join) ... ok otest_shutdown_immediate (test.test_queue.CPriorityQueueTest.test_shutdown_immediate) ... ok otest_shutdown_immediate_all_methods_in_many_threads (test.test_queue.CPriorityQueueTest.test_shutdown_immediate_all_methods_in_many_threads) ... ok otest_shutdown_immediate_all_methods_in_one_thread (test.test_queue.CPriorityQueueTest.test_shutdown_immediate_all_methods_in_one_thread) ... ok otest_shutdown_immediate_get (test.test_queue.CPriorityQueueTest.test_shutdown_immediate_get) ... ok otest_shutdown_immediate_join (test.test_queue.CPriorityQueueTest.test_shutdown_immediate_join) ... ok otest_shutdown_immediate_put (test.test_queue.CPriorityQueueTest.test_shutdown_immediate_put) ... ok otest_shutdown_immediate_put_join (test.test_queue.CPriorityQueueTest.test_shutdown_immediate_put_join) ... ok otest_shutdown_join (test.test_queue.CPriorityQueueTest.test_shutdown_join) ... ok otest_shutdown_nonempty (test.test_queue.CPriorityQueueTest.test_shutdown_nonempty) ... ok otest_shutdown_pending_get (test.test_queue.CPriorityQueueTest.test_shutdown_pending_get) ... ok otest_shutdown_put (test.test_queue.CPriorityQueueTest.test_shutdown_put) ... ok otest_shutdown_put_join (test.test_queue.CPriorityQueueTest.test_shutdown_put_join) ... ok otest_basic (test.test_queue.CQueueTest.test_basic) ... ok otest_negative_timeout_raises_exception (test.test_queue.CQueueTest.test_negative_timeout_raises_exception) ... ok otest_nowait (test.test_queue.CQueueTest.test_nowait) ... ok otest_queue_join (test.test_queue.CQueueTest.test_queue_join) ... ok otest_queue_task_done (test.test_queue.CQueueTest.test_queue_task_done) ... ok otest_shrinking_queue (test.test_queue.CQueueTest.test_shrinking_queue) ... ok otest_shutdown_all_methods_in_many_threads (test.test_queue.CQueueTest.test_shutdown_all_methods_in_many_threads) ... ok otest_shutdown_all_methods_in_one_thread (test.test_queue.CQueueTest.test_shutdown_all_methods_in_one_thread) ... ok otest_shutdown_allowed_transitions (test.test_queue.CQueueTest.test_shutdown_allowed_transitions) ... ok otest_shutdown_empty (test.test_queue.CQueueTest.test_shutdown_empty) ... ok otest_shutdown_get (test.test_queue.CQueueTest.test_shutdown_get) ... ok otest_shutdown_get_task_done_join (test.test_queue.CQueueTest.test_shutdown_get_task_done_join) ... ok otest_shutdown_immediate (test.test_queue.CQueueTest.test_shutdown_immediate) ... ok otest_shutdown_immediate_all_methods_in_many_threads (test.test_queue.CQueueTest.test_shutdown_immediate_all_methods_in_many_threads) ... ok otest_shutdown_immediate_all_methods_in_one_thread (test.test_queue.CQueueTest.test_shutdown_immediate_all_methods_in_one_thread) ... ok otest_shutdown_immediate_get (test.test_queue.CQueueTest.test_shutdown_immediate_get) ... ok otest_shutdown_immediate_join (test.test_queue.CQueueTest.test_shutdown_immediate_join) ... ok otest_shutdown_immediate_put (test.test_queue.CQueueTest.test_shutdown_immediate_put) ... ok otest_shutdown_immediate_put_join (test.test_queue.CQueueTest.test_shutdown_immediate_put_join) ... ok otest_shutdown_join (test.test_queue.CQueueTest.test_shutdown_join) ... ok otest_shutdown_nonempty (test.test_queue.CQueueTest.test_shutdown_nonempty) ... ok otest_shutdown_pending_get (test.test_queue.CQueueTest.test_shutdown_pending_get) ... ok otest_shutdown_put (test.test_queue.CQueueTest.test_shutdown_put) ... ok otest_shutdown_put_join (test.test_queue.CQueueTest.test_shutdown_put_join) ... ok otest_basic (test.test_queue.CSimpleQueueTest.test_basic) ... ok otest_is_default (test.test_queue.CSimpleQueueTest.test_is_default) ... ok otest_many_threads (test.test_queue.CSimpleQueueTest.test_many_threads) ... skipped 'not enough memory: 4.9G minimum needed' otest_many_threads_nonblock (test.test_queue.CSimpleQueueTest.test_many_threads_nonblock) ... skipped 'not enough memory: 4.9G minimum needed' otest_many_threads_timeout (test.test_queue.CSimpleQueueTest.test_many_threads_timeout) ... skipped 'not enough memory: 4.9G minimum needed' otest_negative_timeout_raises_exception (test.test_queue.CSimpleQueueTest.test_negative_timeout_raises_exception) ... ok otest_order (test.test_queue.CSimpleQueueTest.test_order) ... ok otest_reentrancy (test.test_queue.CSimpleQueueTest.test_reentrancy) ... ok otest_references (test.test_queue.CSimpleQueueTest.test_references) ... ok otest_failing_queue (test.test_queue.PyFailingQueueTest.test_failing_queue) ... ok otest_basic (test.test_queue.PyLifoQueueTest.test_basic) ... ok otest_negative_timeout_raises_exception (test.test_queue.PyLifoQueueTest.test_negative_timeout_raises_exception) ... ok otest_nowait (test.test_queue.PyLifoQueueTest.test_nowait) ... ok otest_queue_join (test.test_queue.PyLifoQueueTest.test_queue_join) ... ok otest_queue_task_done (test.test_queue.PyLifoQueueTest.test_queue_task_done) ... ok otest_shrinking_queue (test.test_queue.PyLifoQueueTest.test_shrinking_queue) ... ok otest_shutdown_all_methods_in_many_threads (test.test_queue.PyLifoQueueTest.test_shutdown_all_methods_in_many_threads) ... ok otest_shutdown_all_methods_in_one_thread (test.test_queue.PyLifoQueueTest.test_shutdown_all_methods_in_one_thread) ... ok otest_shutdown_allowed_transitions (test.test_queue.PyLifoQueueTest.test_shutdown_allowed_transitions) ... ok otest_shutdown_empty (test.test_queue.PyLifoQueueTest.test_shutdown_empty) ... ok otest_shutdown_get (test.test_queue.PyLifoQueueTest.test_shutdown_get) ... ok otest_shutdown_get_task_done_join (test.test_queue.PyLifoQueueTest.test_shutdown_get_task_done_join) ... ok otest_shutdown_immediate (test.test_queue.PyLifoQueueTest.test_shutdown_immediate) ... ok otest_shutdown_immediate_all_methods_in_many_threads (test.test_queue.PyLifoQueueTest.test_shutdown_immediate_all_methods_in_many_threads) ... ok otest_shutdown_immediate_all_methods_in_one_thread (test.test_queue.PyLifoQueueTest.test_shutdown_immediate_all_methods_in_one_thread) ... ok otest_shutdown_immediate_get (test.test_queue.PyLifoQueueTest.test_shutdown_immediate_get) ... ok otest_shutdown_immediate_join (test.test_queue.PyLifoQueueTest.test_shutdown_immediate_join) ... ok otest_shutdown_immediate_put (test.test_queue.PyLifoQueueTest.test_shutdown_immediate_put) ... ok otest_shutdown_immediate_put_join (test.test_queue.PyLifoQueueTest.test_shutdown_immediate_put_join) ... ok otest_shutdown_join (test.test_queue.PyLifoQueueTest.test_shutdown_join) ... ok otest_shutdown_nonempty (test.test_queue.PyLifoQueueTest.test_shutdown_nonempty) ... ok otest_shutdown_pending_get (test.test_queue.PyLifoQueueTest.test_shutdown_pending_get) ... ok otest_shutdown_put (test.test_queue.PyLifoQueueTest.test_shutdown_put) ... ok otest_shutdown_put_join (test.test_queue.PyLifoQueueTest.test_shutdown_put_join) ... ok otest_basic (test.test_queue.PyPriorityQueueTest.test_basic) ... ok otest_negative_timeout_raises_exception (test.test_queue.PyPriorityQueueTest.test_negative_timeout_raises_exception) ... ok otest_nowait (test.test_queue.PyPriorityQueueTest.test_nowait) ... ok otest_queue_join (test.test_queue.PyPriorityQueueTest.test_queue_join) ... ok otest_queue_task_done (test.test_queue.PyPriorityQueueTest.test_queue_task_done) ... ok otest_shrinking_queue (test.test_queue.PyPriorityQueueTest.test_shrinking_queue) ... ok otest_shutdown_all_methods_in_many_threads (test.test_queue.PyPriorityQueueTest.test_shutdown_all_methods_in_many_threads) ... python: Python/generated_cases.c.h:1666: _PyEval_EvalFrameDefault: Assertion `WITHIN_STACK_BOUNDS()' failed. oFatal Python error: Aborted o oThread 0x00007f88b77fe6c0 [Thread-276 (_re] (most recent call first): o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py", line 307 in __enter__ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/queue.py", line 89 in task_done o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_queue.py", line 352 in _read_msg_thread o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py", line 1016 in run o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py", line 1074 in _bootstrap_inner o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py", line 1036 in _bootstrap o oThread 0x00007f88b7fff6c0 [Thread-275 (_re] (most recent call first): o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py", line 307 in __enter__ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/queue.py", line 194 in get o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_queue.py", line 351 in _read_msg_thread o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py", line 1016 in run o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py", line 1074 in _bootstrap_inner o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py", line 1036 in _bootstrap o oThread 0x00007f88ccee76c0 [Thread-274 (_re] (most recent call first): o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py", line 307 in __enter__ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/queue.py", line 194 in get o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_queue.py", line 351 in _read_msg_thread o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py", line 1016 in run o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py", line 1074 in _bootstrap_inner o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py", line 1036 in _bootstrap o oThread 0x00007f88cd7f06c0 [Thread-273 (_re] (most recent call first): o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py", line 307 in __enter__ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/queue.py", line 89 in task_done o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_queue.py", line 352 in _read_msg_thread o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py", line 1016 in run o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py", line 1074 in _bootstrap_inner o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py", line 1036 in _bootstrap o oThread 0x00007f88cdff16c0 [Thread-272 (_re] (most recent call first): o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_queue.py", line 352 in _read_msg_thread o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py", line 1016 in run o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py", line 1074 in _bootstrap_inner o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py", line 1036 in _bootstrap o oCurrent thread 0x00007f88cf1eb6c0 [Thread-271 (_re] (most recent call first): o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/queue.py", line 291 in _qsize o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/queue.py", line 198 in get o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_queue.py", line 351 in _read_msg_thread o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py", line 1016 in run o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py", line 1074 in _bootstrap_inner o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py", line 1036 in _bootstrap o oThread 0x00007f88d07df740 [python] (most recent call first): o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/threading.py", line 1125 in join o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_queue.py", line 409 in _shutdown_all_methods_in_many_threads o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_queue.py", line 418 in test_shutdown_all_methods_in_many_threads o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/unittest/case.py", line 613 in _callTestMethod o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/unittest/case.py", line 667 in run o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/unittest/case.py", line 723 in __call__ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/unittest/suite.py", line 122 in run o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/unittest/suite.py", line 84 in __call__ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/unittest/suite.py", line 122 in run o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/unittest/suite.py", line 84 in __call__ o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/unittest/runner.py", line 257 in run o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/libregrtest/single.py", line 84 in _run_suite o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/libregrtest/single.py", line 42 in run_unittest o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/libregrtest/single.py", line 162 in test_func o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/libregrtest/single.py", line 118 in regrtest_runner o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/libregrtest/single.py", line 165 in _load_run_test o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/libregrtest/single.py", line 210 in _runtest_env_changed_exc o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/libregrtest/single.py", line 319 in _runtest o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/libregrtest/single.py", line 348 in run_single_test o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/libregrtest/worker.py", line 92 in worker_process o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/libregrtest/worker.py", line 127 in main o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/libregrtest/worker.py", line 131 in o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/runpy.py", line 88 in _run_code o File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/runpy.py", line 198 in _run_module_as_main o oCurrent thread's C stack trace (most recent call first): o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at _Py_DumpStack+0x33 [0x55869404c2fb] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x308691 [0x55869405f691] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x30890a [0x55869405f90a] o Binary file "/lib/x86_64-linux-gnu/libc.so.6", at +0x3bfd0 [0x7f88d081dfd0] o Binary file "/lib/x86_64-linux-gnu/libc.so.6", at +0x8ad3c [0x7f88d086cd3c] o Binary file "/lib/x86_64-linux-gnu/libc.so.6", at gsignal+0x12 [0x7f88d081df32] o Binary file "/lib/x86_64-linux-gnu/libc.so.6", at abort+0xd3 [0x7f88d0808472] o Binary file "/lib/x86_64-linux-gnu/libc.so.6", at +0x26395 [0x7f88d0808395] o Binary file "/lib/x86_64-linux-gnu/libc.so.6", at +0x34e32 [0x7f88d0816e32] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at _PyEval_EvalFrameDefault+0x4cc4 [0x558693fa2f69] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x269fea [0x558693fc0fea] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x26a188 [0x558693fc1188] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x1187dc [0x558693e6f7dc] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x11b735 [0x558693e72735] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x11b89a [0x558693e7289a] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x11a0b8 [0x558693e710b8] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x11a3a8 [0x558693e713a8] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at PyObject_Call+0x20 [0x558693e713e0] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at _PyEval_EvalFrameDefault+0x741c [0x558693fa56c1] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x269fea [0x558693fc0fea] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x26a188 [0x558693fc1188] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x1187dc [0x558693e6f7dc] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x11b735 [0x558693e72735] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x11b974 [0x558693e72974] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x285be5 [0x558693fdcbe5] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x285cc0 [0x558693fdccc0] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at _PyEval_EvalFrameDefault+0xa96d [0x558693fa8c12] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x269fea [0x558693fc0fea] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x26a188 [0x558693fc1188] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x1187dc [0x558693e6f7dc] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x11b735 [0x558693e72735] o Binary file "/root/buildarea/3.x.angelico-debian-amd64/build/python", at +0x11b974 [0x558693e72974] o o0:16:20 load avg: 2.63 [7/7/1] test_unparse passed oRe-running test_unparse in verbose mode (matching: test_files, test_files) otest_files (test.test_unparse.DirectoryTestCase.test_files) ... ok o o---------------------------------------------------------------------- oRan 1 test in 23.276s o oOK o1 test failed again: o test_queue o o== Tests result: FAILURE then FAILURE == o o10 slowest tests: o- test_tools: 1 min 51 sec o- test_signal: 1 min 3 sec o- test_statistics: 51.7 sec o- test.test_multiprocessing_spawn.test_processes: 51.0 sec o- test_math: 49.5 sec o- test.test_multiprocessing_forkserver.test_processes: 46.3 sec o- test_int: 40.6 sec o- test.test_concurrent_futures.test_process_pool: 38.8 sec o- test_zipimport: 35.6 sec o- test_io: 34.4 sec o o28 tests skipped: o test.test_asyncio.test_windows_events o test.test_asyncio.test_windows_utils test.test_gdb.test_backtrace o test.test_gdb.test_cfunction test.test_gdb.test_cfunction_full o test.test_gdb.test_misc test.test_gdb.test_pretty_print o test_android test_apple test_dbm_ndbm test_devpoll o test_free_threading test_idle test_kqueue test_launcher o test_msvcrt test_startfile test_tcl test_tkinter test_ttk o test_ttk_textonly test_turtle test_winapi test_winconsoleio o test_winreg test_winsound test_wmi test_zstd o o1 test skipped (resource denied): o test_zipfile64 o o7 re-run tests: o test_importlib test_pickle test_pprint test_queue test_re test_sys o test_unparse o o1 test failed: o test_queue o o461 tests OK. o oTotal duration: 16 min 20 sec oTotal tests: run=46,319 failures=1 skipped=2,139 oTotal test files: run=497/491 failed=1 skipped=28 resource_denied=1 rerun=7 oResult: FAILURE then FAILURE emake: *** [Makefile:2454: buildbottest] Error 2 hprogram finished with exit code 2 helapsedTime=981.221608