2.4.0: pytest is failing
See original GitHub issueDescribe the bug A clear and concise description of what the bug is.
Checklist
- I have reproduced in environment where
pip check
passes without errors - I have provided
pip freeze
results - I have provided sample code or detailed way to reproduce
- I have tried the same code in botocore to ensure this is an aiobotocore specific issue
- I have tried similar code in aiohttp to ensure this is is an aiobotocore specific issue
- I have checked the latest and older versions of aiobotocore/aiohttp/python to see if this is a regression / injection
pip freeze results
Package Version
----------------------------- -----------------
aiohttp 3.8.1
aioitertools 0.10.0
aiosignal 1.2.0
alabaster 0.7.12
async-timeout 4.0.2
attrs 22.1.0
Babel 2.10.2
boto3 1.24.57
botocore 1.27.57
Brlapi 0.8.3
build 0.8.0
cffi 1.15.1
charset-normalizer 2.1.0
click 8.1.2
codespell 2.1.0
cryptography 36.0.2
cycler 0.11.0
dill 0.3.5.1
distro 1.7.0
docutils 0.18.1
extended-project 1.2.3
extras 1.0.0
fixtures 4.0.0
Flask 2.2.1
Flask-Cors 3.0.10
fonttools 4.36.0
frozenlist 1.3.1
gpg 1.17.1-unknown
idna 3.3
imagesize 1.4.1
importlib-metadata 4.12.0
iniconfig 1.1.1
itsdangerous 2.1.2
Jinja2 3.1.1
jmespath 1.0.0
joblib 1.1.0
kiwisolver 1.4.4
libcomps 0.1.18
louis 3.22.0
MarkupSafe 2.1.1
matplotlib 3.5.3
moto 3.1.10.dev0
multidict 6.0.2
numpy 1.23.1
olefile 0.46
packaging 21.3
pbr 5.9.0
pep517 0.12.0
Pillow 9.2.0
pip 22.2.1
pluggy 1.0.0
ply 3.11
Pollster 0.1.6
py 1.11.0
pycparser 2.21
Pygments 2.13.0
PyGObject 3.42.2
pyparsing 3.0.9
pytest 7.1.2
pytest-asyncio 0.19.0
python-dateutil 2.8.2
pytz 2022.1
requests 2.28.1
responses 0.21.0
rpm 4.17.0
s3transfer 0.6.0
scikit-learn 1.1.2
scipy 1.9.0
setuptools 65.3.0
simple-project 1.2.3
six 1.16.0
sklearn 0.0
snowballstemmer 2.2.0
Sphinx 5.1.1
sphinxcontrib-applehelp 1.0.2.dev20220730
sphinxcontrib-devhelp 1.0.2.dev20220730
sphinxcontrib-htmlhelp 2.0.0
sphinxcontrib-jsmath 1.0.1.dev20220730
sphinxcontrib-qthelp 1.0.3.dev20220730
sphinxcontrib-serializinghtml 1.1.5
testtools 2.5.0
threadpoolctl 3.1.0
tomli 2.0.1
typing_extensions 4.2.0
urllib3 1.26.11
Werkzeug 2.2.2
wheel 0.37.1
wrapt 1.14.0
xmltodict 0.12.0
yarl 1.8.1
zipp 3.8.1
Environment:
- Python Version: 3.8.13
- OS name and version: Linux x86/64
Additional context I’m packaging your module as an rpm package so I’m using the typical PEP517 based build, install and test cycle used on building packages from non-root account.
python3 -sBm build -w --no-isolation
- because I’m calling
build
with--no-isolation
I’m using during all processes only locally installed modules - install .whl file in </install/prefix>
- run pytest with PYTHONPATH pointing to sitearch and sitelib inside </install/prefix>
Becaus eone unit is failing on missing fixture I’m assuming that at least one module is missing in my build env. May I ask fo rdome hints what may be missing?
Issue Analytics
- State:
- Created a year ago
- Comments:12 (3 by maintainers)
Top Results From Across the Web
Pytest failing silently before or during collection #5836 - GitHub
pytest is failing for some projects during or before collection. Notice that is never makes it to collection. Works normally when running ...
Read more >pytest-2.4.0: new fixture features/hooks and bug fixes
all xunit-style teardown methods (nose-style, pytest-style, unittest-style) will not be called if the corresponding setup method failed, see issue322 below.
Read more >Changelog — pytest-benchmark 4.0.0 documentation
Failing to import statistics doesn't create hard failures anymore. Benchmarks are automatically skipped if import failure occurs. This would happen on Python ......
Read more >What is this pytest value error traceback telling me to fix?
I'm attempting to run pytest in VS Code on a Django webapp that I did not ... 2.8.0 pyflakes 2.4.0 pyparsing 3.0.8 pytest...
Read more >pytest-cov - Read the Docs
11.18 2.4.0(2016-10-10) . ... --cov-fail-under=MIN Fail if the total coverage is less than MIN. --cov-append.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I also got many failures from
tests/test_basic_s3.py
with botocore 1.29.16, so I keep botocore 1.27.96 for now and only one test fails (test_load_sso_credentials_with_cache_expired
). As a side note, support for botocore >= 1.28 is tracked in https://github.com/aio-libs/aiobotocore/issues/976.Tested ant it does not change anything and more even units fails.
Looks like test suite needs access to AWS services