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

Conversation

leocardao
Copy link
Contributor

@leocardao leocardao commented Jun 30, 2023

Some tests require ptyprocess to run, but ptyprocess is not included by default with e3, so they always fail in a production environment (without internet).

@leocardao leocardao self-assigned this Jun 30, 2023
Copy link
Member

@enzbang enzbang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should use pytest.mark.skipif as done to skip the test on windows

@leocardao
Copy link
Contributor Author

@enzbang This is already done.

@leocardao leocardao requested a review from enzbang July 26, 2023 11:42
@enzbang
Copy link
Member

enzbang commented Nov 15, 2023

@leocardao you have not done what I suggested: using pytest.mark.skipif instead of having an early return in the function code. Currently your patch makes the function pass even if there is a bug. Returning SKIP is much clearer.

… tox.

Some tests require ptyprocess to run, but ptyprocess is not included by
default with e3, so they always fail in a production environment (without
internet).
@leocardao leocardao force-pushed the mr/cardao/fix-rlimit-test branch from 53cb3bd to f89f520 Compare November 15, 2023 10:43
@leocardao
Copy link
Contributor Author

This pull request is obsolete, as ptyprocess is now referenced in setup.py.

@leocardao leocardao closed this Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants