Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Here's a repro not involving Setuptools showing howtest_bdb is sensitive tosys.meta_path manipulation:
FROM jaraco/multipy-toxRUN apt install -y libarchive-toolsRUN apt install -y build-essential gdb lcov pkg-config libbz2-dev libffi-dev libgdbm-dev libgdbm-compat-dev liblzma-dev libncurses5-dev libreadline6-dev libsqlite3-dev libssl-dev lzma lzma-dev tk-dev uuid-dev zlib1g-devRUN wget -O - https://github.com/python/cpython/archive/refs/heads/3.9.zip | bsdtar -xf -WORKDIR cpython-3.9RUN sh ./configure --prefix /opt/pythonRUN make installWORKDIR /RUN /opt/python/bin/python3 -m pip install --upgrade pipRUN /opt/python/bin/python3 -m pip uninstall -y setuptoolsRUN echo "import sys; sys.meta_path.insert(0, type('NullFinder', (), dict(find_spec=lambda *args: None))())" > /opt/python/lib/python3.9/site-packages/null-finder.pthCMD /opt/python/bin/python3 -m test_bdbIt fails with a similar error:
AssertionError: Wrong event type at expect_set item 2, got 'call' Expected: ('line', 3, 'tfunc_import') Got: ('call', 1, '<lambda>'), ('quit',),Originally posted by@jaraco in#91169 (comment)
Metadata
Metadata
Assignees
Labels
No labels