Skip to content

Commit 4b315b0

Browse files
Skip the test if running with "-u -cpu".
1 parent 9b6aee8 commit 4b315b0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Lib/test/test_tools/test_freeze.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
import textwrap
55
import unittest
66

7+
from test import support
8+
79
from . import imports_under_tool, skip_if_missing
810
skip_if_missing('freeze')
911
with imports_under_tool('freeze', 'test'):
@@ -14,6 +16,8 @@
1416
class TestFreeze(unittest.TestCase):
1517

1618
def test_freeze_simple_script(self):
19+
if support.use_resources:
20+
support.requires('cpu', 'test re-builds Python out-of-tree')
1721
script = textwrap.dedent("""
1822
import sys
1923
print('running...')

0 commit comments

Comments
 (0)