pytest-dev / py

Python development support library (note: maintenance only)
MIT License
67 stars 106 forks source link

`pyimport` fails for intentionally mismatching source/bytecode suffixes #195

Closed brandonwillard closed 1 year ago

brandonwillard commented 6 years ago

A check occuring here assumes that a module loaded from bytecode with a __file__ attribute ending in pyc must have a source file with suffix .py. This is not the case for the code I'm working on (https://github.com/hylang/hy), which has source files with intentionally different suffixes that compile to .pyc, and ultimately causes pyimport to fail.

RonnyPfannschmidt commented 1 year ago

Pytest no longer uses this code path