Repository navigation
tests: POSIX-only calls reached on Windows (fcntl, backslash classpath, killpg) + guard check (#4934) - #4937
Merged
Merged
Conversation
…classpath, killpg; add an unguarded-import check (#4934) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
Owner
Author
|
No description provided. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #4934 (Full suite red on Windows).
Class: POSIX-only calls reached on Windows.
test_timeouts_4904::test_db2_pool_deadline_raises_by_name:fcntl = pytest.importorskip("fcntl")(Db2 pool locks are flock, Linux-only).test_runs_after_the_first_maven_run...: notmvnvsmvn.cmd.equivalence_java._launchermatched the surefire classpath with a/-only regex, so on Windows backslash entries never matched, the direct-JVM path returned None and the second run went back through Maven. The entries are now normalised first. Regression test uses a backslash classpath (runs on Linux).mutation.prove:os.killpgfalls back toproc.kill()where there are no process groups.mainframe_corpus.scan:import fcntlmoved to a guarded module-level import, as inequivalence_cache.tests/tools/test_posix_only_imports_4934.py: AST scan oftests/andgitgalaxy/failing on anyfcntl/termios/pwd/grp/resource/posiximport that is not in atry/except ImportError, not in a file thatimportorskips it, and not in an allowlist with a reason.Class table disposition
equivalence_db2.py(3 imports)box/ci_shepherd.py,test_ci_shepherd.pyimportorskipsequivalence_cache.py,test_equivalence_speed.py,cics_census.pymainframe_corpus.pyos.killpginmutation.pySIGALRMhasattr/is_posix)os.getuid:test_equivalence_faults.py:159EQUIVALENCE_E2E=1+ docker; left as isVerification:
pr_gates.py --fast5/5; the three touched test files pass on Linux. Windows legs: Full Suite Gate dispatched on this branch (result in a comment).Cross-repo: none.
🤖 Generated with Claude Code