Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

GitHub actions use Python 3.9 from setup-python #158

Merged
merged 5 commits into from
Jul 22, 2020

Conversation

adamchainz
Copy link
Owner

No description provided.

@adamchainz
Copy link
Owner Author

Seeing errors as Pytest collects tests from within the Python source code directory which setup-python seems to be downloading:

2020-07-17T11:01:44.4725976Z py39 run-test: commands[0] | pytest
2020-07-17T11:01:44.8087544Z ============================= test session starts ==============================
2020-07-17T11:01:44.8088834Z platform linux -- Python 3.9.0b4, pytest-5.4.3, py-1.9.0, pluggy-0.13.1
2020-07-17T11:01:44.8335323Z cachedir: .tox/py39/.pytest_cache
2020-07-17T11:01:44.8336098Z Using --randomly-seed=1594983704
2020-07-17T11:01:44.8336532Z rootdir: /home/runner/work/apig-wsgi/apig-wsgi, inifile: pytest.ini
2020-07-17T11:01:44.8336920Z plugins: randomly-3.4.0, cov-2.10.0
2020-07-17T11:06:44.1870869Z collected 34640 items / 3 errors / 56 skipped / 34581 selected
2020-07-17T11:06:44.2807837Z 
2020-07-17T11:06:44.2808745Z ==================================== ERRORS ====================================
2020-07-17T11:06:44.2809998Z _ ERROR collecting 9a5dbe51-7fe1-4ab4-89ee-1c8ead1d420a/lib/python3.9/test/test_capi.py _
2020-07-17T11:06:44.2810557Z .tox/py39/lib/python3.9/site-packages/_pytest/runner.py:244: in from_call
2020-07-17T11:06:44.2810865Z     result = func()
2020-07-17T11:06:44.2811345Z .tox/py39/lib/python3.9/site-packages/_pytest/runner.py:264: in <lambda>
2020-07-17T11:06:44.2811659Z     call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
2020-07-17T11:06:44.2812160Z .tox/py39/lib/python3.9/site-packages/_pytest/unittest.py:57: in collect
2020-07-17T11:06:44.2812472Z     yield TestCaseFunction.from_parent(self, name=name, callobj=funcobj)
2020-07-17T11:06:44.2812931Z .tox/py39/lib/python3.9/site-packages/_pytest/python.py:1446: in from_parent
2020-07-17T11:06:44.2813261Z     return super().from_parent(parent=parent, **kw)
2020-07-17T11:06:44.2813718Z .tox/py39/lib/python3.9/site-packages/_pytest/nodes.py:171: in from_parent
2020-07-17T11:06:44.2814023Z     return cls._create(parent=parent, **kw)
2020-07-17T11:06:44.2814475Z .tox/py39/lib/python3.9/site-packages/_pytest/nodes.py:88: in _create
2020-07-17T11:06:44.2814777Z     return super().__call__(*k, **kw)
2020-07-17T11:06:44.2815250Z .tox/py39/lib/python3.9/site-packages/_pytest/python.py:1401: in __init__
2020-07-17T11:06:44.2815554Z     self.keywords.update(self.obj.__dict__)
2020-07-17T11:06:44.2816009Z E   AttributeError: 'builtin_function_or_method' object has no attribute '__dict__'
2020-07-17T11:06:44.2816726Z _ ERROR collecting 9a5dbe51-7fe1-4ab4-89ee-1c8ead1d420a/lib/python3.9/test/test_capi.py _
2020-07-17T11:06:44.2817206Z .tox/py39/lib/python3.9/site-packages/_pytest/runner.py:244: in from_call
2020-07-17T11:06:44.2817539Z     result = func()
2020-07-17T11:06:44.2817989Z .tox/py39/lib/python3.9/site-packages/_pytest/runner.py:264: in <lambda>
2020-07-17T11:06:44.2818314Z     call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
2020-07-17T11:06:44.2818772Z .tox/py39/lib/python3.9/site-packages/_pytest/unittest.py:57: in collect
2020-07-17T11:06:44.2819201Z     yield TestCaseFunction.from_parent(self, name=name, callobj=funcobj)
2020-07-17T11:06:44.2819693Z .tox/py39/lib/python3.9/site-packages/_pytest/python.py:1446: in from_parent
2020-07-17T11:06:44.2820007Z     return super().from_parent(parent=parent, **kw)
2020-07-17T11:06:44.2820460Z .tox/py39/lib/python3.9/site-packages/_pytest/nodes.py:171: in from_parent
2020-07-17T11:06:44.2820771Z     return cls._create(parent=parent, **kw)
2020-07-17T11:06:44.2821242Z .tox/py39/lib/python3.9/site-packages/_pytest/nodes.py:88: in _create
2020-07-17T11:06:44.2821542Z     return super().__call__(*k, **kw)
2020-07-17T11:06:44.2821987Z .tox/py39/lib/python3.9/site-packages/_pytest/python.py:1401: in __init__
2020-07-17T11:06:44.2822288Z     self.keywords.update(self.obj.__dict__)
2020-07-17T11:06:44.2822743Z E   AttributeError: 'builtin_function_or_method' object has no attribute '__dict__'
2020-07-17T11:06:44.2823249Z _ ERROR collecting 9a5dbe51-7fe1-4ab4-89ee-1c8ead1d420a/lib/python3.9/test/test_getargs2.py _
2020-07-17T11:06:44.2823730Z .tox/py39/lib/python3.9/site-packages/_pytest/runner.py:244: in from_call
2020-07-17T11:06:44.2824028Z     result = func()
2020-07-17T11:06:44.2824480Z .tox/py39/lib/python3.9/site-packages/_pytest/runner.py:264: in <lambda>
2020-07-17T11:06:44.2824787Z     call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
2020-07-17T11:06:44.2825239Z .tox/py39/lib/python3.9/site-packages/_pytest/unittest.py:57: in collect
2020-07-17T11:06:44.2825575Z     yield TestCaseFunction.from_parent(self, name=name, callobj=funcobj)
2020-07-17T11:06:44.2826032Z .tox/py39/lib/python3.9/site-packages/_pytest/python.py:1446: in from_parent
2020-07-17T11:06:44.2826337Z     return super().from_parent(parent=parent, **kw)
2020-07-17T11:06:44.2826783Z .tox/py39/lib/python3.9/site-packages/_pytest/nodes.py:171: in from_parent
2020-07-17T11:06:44.2827090Z     return cls._create(parent=parent, **kw)
2020-07-17T11:06:44.2827533Z .tox/py39/lib/python3.9/site-packages/_pytest/nodes.py:88: in _create
2020-07-17T11:06:44.2827829Z     return super().__call__(*k, **kw)
2020-07-17T11:06:44.2828278Z .tox/py39/lib/python3.9/site-packages/_pytest/python.py:1401: in __init__
2020-07-17T11:06:44.2828577Z     self.keywords.update(self.obj.__dict__)
2020-07-17T11:06:44.2829029Z E   AttributeError: 'builtin_function_or_method' object has no attribute '__dict__'
2020-07-17T11:06:44.2829336Z =============================== warnings summary ===============================
2020-07-17T11:06:44.2829817Z 9a5dbe51-7fe1-4ab4-89ee-1c8ead1d420a/lib/python3.9/distutils/tests/test_dist.py:32
2020-07-17T11:06:44.2830584Z   /home/runner/work/apig-wsgi/apig-wsgi/9a5dbe51-7fe1-4ab4-89ee-1c8ead1d420a/lib/python3.9/distutils/tests/test_dist.py:32: PytestCollectionWarning: cannot collect test class 'TestDistribution' because it has a __init__ constructor (from: 9a5dbe51-7fe1-4ab4-89ee-1c8ead1d420a/lib/python3.9/distutils/tests/test_dist.py)
2020-07-17T11:06:44.2830934Z     class TestDistribution(Distribution):
2020-07-17T11:06:44.2831168Z 
2020-07-17T11:06:44.2831601Z .tox/py39/lib/python3.9/site-packages/py/_path/local.py:704
2020-07-17T11:06:44.2832225Z   /home/runner/work/apig-wsgi/apig-wsgi/.tox/py39/lib/python3.9/site-packages/py/_path/local.py:704: PendingDeprecationWarning: lib2to3 package is deprecated and may not be able to parse Python 3.10+
2020-07-17T11:06:44.2832542Z     __import__(modname)

@adamchainz adamchainz force-pushed the python_3.9_setup_python branch from f2d6f93 to c5ec9c4 Compare July 21, 2020 17:31
@adamchainz adamchainz merged commit e8d60e2 into master Jul 22, 2020
@adamchainz adamchainz deleted the python_3.9_setup_python branch July 22, 2020 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant