This repository has been archived by the owner on Dec 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Using pchroot in pytest script fails #28
Comments
The following script run with
from pychroot import Chroot
import os
chroot_path = '/tmp/foo/bar'
os.makedirs( chroot_path, exist_ok=True)
def test_chroot () :
with Chroot( chroot_path ) :
answer = 42
print( answer ) Output:
|
pychroot often doesn't handle running within pytest's modified testing environment at this point without mocking out various aspects. In this case you'd need to run the tests with pytest's stdin/stdout capturing disabled (use the -s argument for pytest). Patches accepted if you can figure out how to improve the situation, but I don't want to insert hacks into the codebase to work around specific test platform quirks. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
No description provided.
The text was updated successfully, but these errors were encountered: