FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-108388: test_concurrent_futures requires cpu by vstinner · Pull Request #108389 · python/cpython · GitHub

/ cpython Public
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (2) .rst  (1) All 2 file types selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
6 changes: 2 additions & 4 deletions Lib/test/test_concurrent_futures.py
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
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,8 @@
import multiprocessing as mp


if support.check_sanitizer(address=True, memory=True):
# gh-90791: Skip the test because it is too slow when Python is built
# with ASAN/MSAN: between 5 and 20 minutes on GitHub Actions.
raise unittest.SkipTest("test too slow on ASAN/MSAN build")
# This test spawns many threads and processes and is slow
support.requires('cpu')


def create_future(state=PENDING, exception=None, result=None):
Expand Down
3 changes: 3 additions & 0 deletions Lib/test/test_multiprocessing_spawn.py
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
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

from test import support

# This test spawns many processes and is slow
support.requires('cpu')

if support.PGO:
raise unittest.SkipTest("test is not helpful for PGO")

Expand Down
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
The slowest tests are now skipped by default, unless the "cpu" resource is
enabled: test_concurrent_futures, test_multiprocessing_spawn,
test_peg_generator and test_tools.test_freeze. Run the test suite with ``-u
cpu`` or ``-u all`` to run these tests. Moreover, these tests are no longer
skipped on Python built with ASAN or MSAN sanitizer. Patch by Victor
Stinner.

Back | FazBrowse Home | New Git URL