Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip the rlimit_ctrl_c and rlimit_forground tests if you're not using tox #603

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion tests/tests_e3/os/process/main_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,10 @@ def run_test():
e.restore()


@pytest.mark.skipif(sys.platform == "win32", reason="A linux test")
@pytest.mark.skipif(
sys.platform == "win32" or "TOX_ENV_NAME" not in os.environ,
reason="This test only works on limit and needs tox to manage these dependencies.",
)
def test_rlimit_ctrl_c():
"""Test rlimit CTRL-C.

Expand Down Expand Up @@ -199,6 +202,9 @@ def test_rlimit_foreground_option():

Test if we can read/write from an interactive terminal using rlimit --foreground.
"""
if "TOX_ENV_NAME" not in os.environ:
return

try:
from ptyprocess import PtyProcess
except ImportError:
Expand Down
Loading