running pytest running egg_info writing src/aspectlib.egg-info/PKG-INFO writing dependency_links to src/aspectlib.egg-info/dependency_links.txt writing entry points to src/aspectlib.egg-info/entry_points.txt writing requirements to src/aspectlib.egg-info/requires.txt writing top-level names to src/aspectlib.egg-info/top_level.txt reading manifest file 'src/aspectlib.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '*.py[cod]' found anywhere in distribution warning: no previously-included files matching '__pycache__/*' found anywhere in distribution warning: no previously-included files matching '*.so' found anywhere in distribution warning: no previously-included files matching '*.dylib' found anywhere in distribution adding license file 'LICENSE' adding license file 'AUTHORS.rst' writing manifest file 'src/aspectlib.egg-info/SOURCES.txt' running build_ext ============================= test session starts ============================== platform linux -- Python 3.10.0, pytest-6.2.5, py-1.10.0, pluggy-0.13.1 rootdir: /build/python-aspectlib/src/python-aspectlib-1.5.2, configfile: setup.cfg, testpaths: tests plugins: aspectlib-1.5.2 collected 146 items / 1 deselected / 145 selected tests/test_aspectlib.py ......................s......................... [ 33%] ..s...................... [ 50%] tests/test_aspectlib_debug.py ......... [ 56%] tests/test_aspectlib_py3.py .... [ 59%] tests/test_aspectlib_py37.py ....... [ 64%] tests/test_aspectlib_test.py .......................FF...... [ 85%] tests/test_contrib.py ........ [ 91%] tests/test_integrations.py ........... [ 98%] tests/test_integrations_py3.py s [ 99%] tests/test_integrations_py37.py . [100%] =================================== FAILURES =================================== ______________________ test_story_empty_play_proxy_class _______________________ tests/test_aspectlib_test.py:411: in test_story_empty_play_proxy_class assert format_calls(replay._actual) == format_calls(OrderedDict([ E assert "stuff_1 = te...) # raises\n" == "stuff_1 = te...) # raises\n" E Skipping 171 identical leading characters in diff, use -v to show E - ypeError('meth() takes 1 positional argument but 2 were given') # raises E + ypeError('Stuff.meth() takes 1 positional argument but 2 were given') # raises E ? ++++++ E stuff_2 = test_pkg1.test_pkg2.test_mod.Stuff(0, 1) E stuff_2.mix('a', 'b') == (0, 1, 'a', 'b') # returns E stuff_2.mix(3, 4) == (0, 1, 3, 4) # returns... E E ...Full output truncated (4 lines hidden), use '-vv' to show ----------------------------- Captured stdout call ----------------------------- STORY/REPLAY DIFF: --- expected +++ actual @@ -0,0 +1,8 @@ +stuff_1 = test_pkg1.test_pkg2.test_mod.Stuff(1, 2) +stuff_1.mix(3, 4) == (1, 2, 3, 4) # returns +stuff_1.mix('a', 'b') == (1, 2, 'a', 'b') # returns +stuff_1.meth(123) ** TypeError('Stuff.meth() takes 1 positional argument but 2 were given') # raises +stuff_2 = test_pkg1.test_pkg2.test_mod.Stuff(0, 1) +stuff_2.mix('a', 'b') == (0, 1, 'a', 'b') # returns +stuff_2.mix(3, 4) == (0, 1, 3, 4) # returns +stuff_2.meth(123) ** TypeError('Stuff.meth() takes 1 positional argument but 2 were given') # raises ACTUAL: stuff_1 = test_pkg1.test_pkg2.test_mod.Stuff(1, 2) stuff_1.mix(3, 4) == (1, 2, 3, 4) # returns stuff_1.mix('a', 'b') == (1, 2, 'a', 'b') # returns stuff_1.meth(123) ** TypeError('Stuff.meth() takes 1 positional argument but 2 were given') # raises stuff_2 = test_pkg1.test_pkg2.test_mod.Stuff(0, 1) stuff_2.mix('a', 'b') == (0, 1, 'a', 'b') # returns stuff_2.mix(3, 4) == (0, 1, 3, 4) # returns stuff_2.meth(123) ** TypeError('Stuff.meth() takes 1 positional argument but 2 were given') # raises _______________________ test_story_half_play_proxy_class _______________________ tests/test_aspectlib_test.py:448: in test_story_half_play_proxy_class assert replay.unexpected == format_calls(OrderedDict([ E assert "stuff_1.meth...) # raises\n" == "stuff_1.meth...) # raises\n" E Skipping 56 identical leading characters in diff, use -v to show E - ypeError('meth() takes 1 positional argument but 2 were given') # raises E + ypeError('Stuff.meth() takes 1 positional argument but 2 were given') # raises E ? ++++++ E stuff_2 = test_pkg1.test_pkg2.test_mod.Stuff(0, 1) E stuff_2.mix('a', 'b') == (0, 1, 'a', 'b') # returns E stuff_2.mix(3, 4) == (0, 1, 3, 4) # returns... E E ...Full output truncated (4 lines hidden), use '-vv' to show ----------------------------- Captured stdout call ----------------------------- STORY/REPLAY DIFF: --- expected +++ actual @@ -1,2 +1,8 @@ stuff_1 = test_pkg1.test_pkg2.test_mod.Stuff(1, 2) stuff_1.mix(3, 4) == (1, 2, 3, 4) # returns +stuff_1.meth() == None # returns +stuff_1.meth(123) ** TypeError('Stuff.meth() takes 1 positional argument but 2 were given') # raises +stuff_2 = test_pkg1.test_pkg2.test_mod.Stuff(0, 1) +stuff_2.mix('a', 'b') == (0, 1, 'a', 'b') # returns +stuff_2.mix(3, 4) == (0, 1, 3, 4) # returns +stuff_2.meth(123) ** TypeError('Stuff.meth() takes 1 positional argument but 2 were given') # raises ACTUAL: stuff_1 = test_pkg1.test_pkg2.test_mod.Stuff(1, 2) stuff_1.mix(3, 4) == (1, 2, 3, 4) # returns stuff_1.meth() == None # returns stuff_1.meth(123) ** TypeError('Stuff.meth() takes 1 positional argument but 2 were given') # raises stuff_2 = test_pkg1.test_pkg2.test_mod.Stuff(0, 1) stuff_2.mix('a', 'b') == (0, 1, 'a', 'b') # returns stuff_2.mix(3, 4) == (0, 1, 3, 4) # returns stuff_2.meth(123) ** TypeError('Stuff.meth() takes 1 positional argument but 2 were given') # raises =============================== warnings summary =============================== ../../../../usr/lib/python3.10/site-packages/_pytest/config/__init__.py:1183 /usr/lib/python3.10/site-packages/_pytest/config/__init__.py:1183: PytestDeprecationWarning: The --strict option is deprecated, use --strict-markers instead. self.issue_config_time_warning( tests/test_aspectlib.py::test_weave_wrong_module /build/python-aspectlib/src/python-aspectlib-1.5.2/src/aspectlib/test.py:221: UserWarning: Setting test_aspectlib.MissingGlobal to . There was no previous definition, probably patching the wrong module. return self.__wrapped(*args, **kwargs) tests/test_integrations_py37.py::test_decorate_asyncio_coroutine /build/python-aspectlib/src/python-aspectlib-1.5.2/tests/test_integrations_py37.py:19: DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop() -- Docs: https://docs.pytest.org/en/stable/warnings.html =========================== short test summary info ============================ SKIPPED [1] tests/test_aspectlib.py:460: condition: aspectlib.PY3 SKIPPED [1] tests/test_aspectlib.py:1193: condition: aspectlib.PY3 SKIPPED [1] tests/test_integrations_py3.py:17: Test is incompatible with PEP-479 FAILED tests/test_aspectlib_test.py::test_story_empty_play_proxy_class - asse... FAILED tests/test_aspectlib_test.py::test_story_half_play_proxy_class - asser... ====== 2 failed, 140 passed, 3 skipped, 1 deselected, 3 warnings in 0.49s ====== ==> ERROR: A failure occurred in check().  Aborting...