Comments (3)
Anything that's on the sys.meta_path
can/should have a find_spec
ever since Python 3.4 (2013). It not being there is deprecated since Python 3.10 (2021), and indeed six added this back in 2021.
boto is using a vendored six
version from 2018, so you most likely want to switch to boto3 instead which is actively maintained (as also recommended by boto, which hasn't been touched in the past 2 years).
Not sure if pytest should try to paint over this. If I'm not mistaken, this code was around since pytest 6 in 2020 (ab6dacf), and I don't think the recent move (4dea183) changed anything?
from pytest.
I don't disagree, but I have very limited control over when a dependency upgrades from boto to boto3. I am using this to encourage them to prioritize it. I haven't looked into what change in 8.1 caused this; possibly you removed a suppression of this error, but it does seem like a good idea to guard against a bad importer that some other library stuck into sys.meta_path
.
from pytest.
Happy to say that we're not going to "fix" this, and your other dependency should.
from pytest.
Related Issues (20)
- Let `OutcomeException` inherit from `Exception` instead of `BaseException` HOT 3
- Official Pytest Docker Image HOT 3
- I am getting error "pytest: error: unrecognized arguments: --env" while executing tests using pytest HOT 8
- Handle warnings raised at import time early in pytest process
- `monkeypatch.setattr` started failing in Pytest 8.1.2 (setuptools CI) HOT 1
- Show nicer tracebacks for BaseExceptionGroup from fixture setup/teardown
- Issue with pytest 8.2.0 and tornado async tests HOT 3
- Pytest 8.2.0 breaks Jenkins unittesting [Python 3.10] HOT 6
- Getting `AttributeError: 'FixtureDef' object has no attribute 'unittest'` in pytest 8.2.0 HOT 9
- 'FixtureDef' object has no attribute 'unittest' (an Async @ 8.2.0 issue?) HOT 1
- PyTest 8.2.0 in compatible with certain versions of pytorch, especially DDP tests HOT 1
- v8.2.0 raises `Can't instantiate abstract class` when a test class implements an abstract class HOT 4
- With 8.2.0, attempt to import docs from niece module fails HOT 1
- Since 8.2.0, automatic multiprocessing causes race conditions in my project HOT 3
- Support marker keyword arguments in marker expression (test selection via `-m`) HOT 3
- The teardown does not execute properly for session level fixture when we use --reruns HOT 5
- `--doctest-modules` option causes namespace packages' subpackages to be added to `sys.path` HOT 4
- pytest 8.2.0 runs `unittest.case.TestCase.__init__` during collecting phase in the same process HOT 6
- Support Dark Mode for Pytest Docs Website HOT 5
- Incorrect confcutdir inferred when rootdir is under a symlink directory
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytest.