mirror of
https://github.com/python/cpython.git
synced 2025-10-30 05:01:30 +00:00
The test_peg_generator and test_tools.test_freeze tests now require the 'cpu' resource. Skip these tests unless the 'cpu' resource is enabled (it is disabled by default). These tests are no longer skipped if Python is built with ASAN or MSAN sanitizer.
13 lines
310 B
Python
13 lines
310 B
Python
import os.path
|
|
import unittest
|
|
from test import support
|
|
from test.support import load_package_tests
|
|
|
|
|
|
# Creating a virtual environment and building C extensions is slow
|
|
support.requires('cpu')
|
|
|
|
|
|
# Load all tests in package
|
|
def load_tests(*args):
|
|
return load_package_tests(os.path.dirname(__file__), *args)
|