diff options
author | Victor Stinner <vstinner@python.org> | 2023-10-06 00:37:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-06 00:37:28 (GMT) |
commit | e0c44377935de3491b2cbe1e5f87f8b336fdc922 (patch) | |
tree | 63a5ef10c9528b0591833f443e7fe51f7c2675dd /Lib/test/test_embed.py | |
parent | 3c0f65ebce10d5327e07245f7cf2beb96b18c970 (diff) | |
download | cpython-e0c44377935de3491b2cbe1e5f87f8b336fdc922.zip cpython-e0c44377935de3491b2cbe1e5f87f8b336fdc922.tar.gz cpython-e0c44377935de3491b2cbe1e5f87f8b336fdc922.tar.bz2 |
Add support.MS_WINDOWS constant (#110446)
Diffstat (limited to 'Lib/test/test_embed.py')
-rw-r--r-- | Lib/test/test_embed.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Lib/test/test_embed.py b/Lib/test/test_embed.py index 46c9b03..06f2d8b 100644 --- a/Lib/test/test_embed.py +++ b/Lib/test/test_embed.py @@ -1,8 +1,6 @@ # Run the tests in Programs/_testembed.c (tests for the CPython embedding APIs) from test import support -from test.support import import_helper -from test.support import os_helper -from test.support import requires_specialization +from test.support import import_helper, os_helper, MS_WINDOWS import unittest from collections import namedtuple @@ -21,7 +19,6 @@ import textwrap if not support.has_subprocess_support: raise unittest.SkipTest("test module requires subprocess") -MS_WINDOWS = (os.name == 'nt') MACOS = (sys.platform == 'darwin') PYMEM_ALLOCATOR_NOT_SET = 0 PYMEM_ALLOCATOR_DEBUG = 2 @@ -348,7 +345,7 @@ class EmbeddingTests(EmbeddingTestsMixin, unittest.TestCase): out, err = self.run_embedded_interpreter("test_repeated_simple_init") self.assertEqual(out, 'Finalized\n' * INIT_LOOPS) - @requires_specialization + @support.requires_specialization def test_specialized_static_code_gets_unspecialized_at_Py_FINALIZE(self): # https://github.com/python/cpython/issues/92031 |