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

Fix return-code when specified to be 0 #16

Open
Lnk2past opened this issue Oct 23, 2022 · 0 comments
Open

Fix return-code when specified to be 0 #16

Lnk2past opened this issue Oct 23, 2022 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@Lnk2past
Copy link
Collaborator

When the return code is explicitly specified to be 0, the return-code check is skipped

The problem is at contest/TestCase.py#L142:

            if self.return_code and int(self.return_code) != proc.returncode:

should be:

            if self.return_code is not None and int(self.return_code) != proc.returncode:
@Lnk2past Lnk2past added the bug Something isn't working label Oct 23, 2022
@Lnk2past Lnk2past self-assigned this Oct 23, 2022
@Lnk2past Lnk2past added this to the 2022.mm.dd milestone Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant