cpython/Lib/test/test_peg_generator/__init__.py
Victor Stinner 7a6cc3eb66
test_peg_generator and test_freeze require cpu (#108386)
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.
2023-08-24 00:52:48 +02:00

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)