mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
[3.13] gh-141612: improve test_trampoline_works_with_forks coverage (GH-141613) (#141826)
Some checks are pending
Tests / Change detection (push) Waiting to run
Tests / Docs (push) Blocked by required conditions
Tests / (push) Blocked by required conditions
Tests / Windows MSI (push) Blocked by required conditions
Tests / Check if the ABI has changed (push) Blocked by required conditions
Tests / Check if Autoconf files are up to date (push) Blocked by required conditions
Tests / Check if generated files are up to date (push) Blocked by required conditions
Tests / Ubuntu SSL tests with OpenSSL (push) Blocked by required conditions
Tests / Android (aarch64) (push) Blocked by required conditions
Tests / Android (x86_64) (push) Blocked by required conditions
Tests / WASI (push) Blocked by required conditions
Tests / Hypothesis tests on Ubuntu (push) Blocked by required conditions
Tests / Address sanitizer (push) Blocked by required conditions
Tests / Sanitizers (push) Blocked by required conditions
Tests / CIFuzz (push) Blocked by required conditions
Tests / All required checks pass (push) Blocked by required conditions
Lint / lint (push) Waiting to run
Some checks are pending
Tests / Change detection (push) Waiting to run
Tests / Docs (push) Blocked by required conditions
Tests / (push) Blocked by required conditions
Tests / Windows MSI (push) Blocked by required conditions
Tests / Check if the ABI has changed (push) Blocked by required conditions
Tests / Check if Autoconf files are up to date (push) Blocked by required conditions
Tests / Check if generated files are up to date (push) Blocked by required conditions
Tests / Ubuntu SSL tests with OpenSSL (push) Blocked by required conditions
Tests / Android (aarch64) (push) Blocked by required conditions
Tests / Android (x86_64) (push) Blocked by required conditions
Tests / WASI (push) Blocked by required conditions
Tests / Hypothesis tests on Ubuntu (push) Blocked by required conditions
Tests / Address sanitizer (push) Blocked by required conditions
Tests / Sanitizers (push) Blocked by required conditions
Tests / CIFuzz (push) Blocked by required conditions
Tests / All required checks pass (push) Blocked by required conditions
Lint / lint (push) Waiting to run
* gh-141612: improve `test_trampoline_works_with_forks` coverage (#141613)
(cherry picked from commit f15f6d0ba3)
This commit is contained in:
parent
af94f62bf6
commit
de44d71605
1 changed files with 10 additions and 0 deletions
|
|
@ -157,6 +157,16 @@ class TestPerfTrampoline(unittest.TestCase):
|
|||
self.assertIn(f"py::bar_fork:{script}", child_perf_file_contents)
|
||||
self.assertIn(f"py::baz_fork:{script}", child_perf_file_contents)
|
||||
|
||||
# The parent's map should not contain the child's symbols.
|
||||
self.assertNotIn(f"py::foo_fork:{script}", perf_file_contents)
|
||||
self.assertNotIn(f"py::bar_fork:{script}", perf_file_contents)
|
||||
self.assertNotIn(f"py::baz_fork:{script}", perf_file_contents)
|
||||
|
||||
# The child's map should not contain the parent's symbols.
|
||||
self.assertNotIn(f"py::foo:{script}", child_perf_file_contents)
|
||||
self.assertNotIn(f"py::bar:{script}", child_perf_file_contents)
|
||||
self.assertNotIn(f"py::baz:{script}", child_perf_file_contents)
|
||||
|
||||
def test_sys_api(self):
|
||||
code = """if 1:
|
||||
import sys
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue