]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-105751: Remove platform usage in test_ctypes (#105819)
authorVictor Stinner <vstinner@python.org>
Thu, 15 Jun 2023 09:44:54 +0000 (11:44 +0200)
committerGitHub <noreply@github.com>
Thu, 15 Jun 2023 09:44:54 +0000 (09:44 +0000)
The MACHINE variable is no longer used in test_structures.

Lib/test/test_ctypes/test_structures.py

index 46bf90054be66aaa1a9cbfc0d167b1ab05a657f8..72bec13a77ca525a07df2d5d0f4a0ffebcf9a56b 100644 (file)
@@ -1,5 +1,4 @@
 import _ctypes_test
-import platform
 import struct
 import sys
 import unittest
@@ -12,12 +11,6 @@ from struct import calcsize
 from test import support
 
 
-# The following definition is meant to be used from time to time to assist
-# temporarily disabling tests on specific architectures while investigations
-# are in progress, to keep buildbots happy.
-MACHINE = platform.machine()
-
-
 class SubclassesTest(unittest.TestCase):
     def test_subclass(self):
         class X(Structure):