Skip to content

Commit

Permalink
non-late-night regex fixing.
Browse files Browse the repository at this point in the history
  • Loading branch information
gpshead committed Dec 5, 2023
1 parent 68cc668 commit a737bd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/test/test_subprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -3398,7 +3398,7 @@ def test_vfork_used_when_expected(self):
_run_using_command=strace_command,
)
# Match both vfork() and clone(..., flags=...|CLONE_VFORK|...)
self.assertRegex(vfork_result.err, br"(?mi)^vfork")
self.assertRegex(vfork_result.err, br"(?mi)vfork")
# Do NOT check that fork() or other clones did not happen.
# If the OS denys the vfork it'll fallback to plain fork().

Expand Down Expand Up @@ -3426,7 +3426,7 @@ def test_vfork_used_when_expected(self):
_run_using_command=strace_command,
)
# Ensure neither vfork() or clone(..., flags=...|CLONE_VFORK|...).
self.assertNotRegex(non_vfork_result.err, br"(?mi)^vfork")
self.assertNotRegex(non_vfork_result.err, br"(?mi)vfork")


@unittest.skipUnless(mswindows, "Windows specific tests")
Expand Down

0 comments on commit a737bd3

Please sign in to comment.