Skip to content

Commit

Permalink
TST: expand editable install test for compiled extension
Browse files Browse the repository at this point in the history
  • Loading branch information
ogrisel committed Jan 16, 2024
1 parent 8f70454 commit bdf056d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_editable.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ def test_mesonpy_meta_finder(package_complex, tmp_path):
assert complex.__path__ == complex.__spec__.submodule_search_locations
import complex.test
assert complex.test.__spec__.origin == os.fspath(tmp_path / f'test{EXT_SUFFIX}')
assert complex.test.__file__ == complex.test.__spec__.origin
assert complex.test.__spec__.submodule_search_locations is None
assert not hasattr(complex.test, "__path__")
assert complex.test.answer() == 42
import complex.more
assert complex.more.__spec__.origin == os.fspath(package_complex / 'complex/more/__init__.py')
Expand Down

0 comments on commit bdf056d

Please sign in to comment.