Skip to content

Commit 6c8bb9a

Browse files
committed
Move assert into subprocess
1 parent 56ee6eb commit 6c8bb9a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/test_editable.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -331,16 +331,14 @@ def test_importlib_resources(
331331
_setup_package_for_editable_layout_tests( # type: ignore[no-untyped-call]
332332
monkeypatch, tmp_path, editable, editable_mode, isolated
333333
)
334-
value = isolated.execute(
334+
isolated.execute(
335335
textwrap.dedent(
336336
f"""
337337
from importlib.resources import files
338338
from importlib.readers import MultiplexedPath
339339
import pkg
340340
import pathlib
341-
print({check})
341+
assert {check}
342342
"""
343343
)
344344
)
345-
346-
assert value == "True"

0 commit comments

Comments
 (0)