[Python-checkins] gh-105751: Remove platform usage in test_ctypes (#105819)
vstinner
webhook-mailer at python.org
Thu Jun 15 05:44:57 EDT 2023
https://github.com/python/cpython/commit/c5111aec2bac464b6643e21fe0844c9b8c4c661a
commit: c5111aec2bac464b6643e21fe0844c9b8c4c661a
branch: main
author: Victor Stinner <vstinner at python.org>
committer: vstinner <vstinner at python.org>
date: 2023-06-15T09:44:54Z
summary:
gh-105751: Remove platform usage in test_ctypes (#105819)
The MACHINE variable is no longer used in test_structures.
files:
M Lib/test/test_ctypes/test_structures.py
diff --git a/Lib/test/test_ctypes/test_structures.py b/Lib/test/test_ctypes/test_structures.py
index 46bf90054be6..72bec13a77ca 100644
--- a/Lib/test/test_ctypes/test_structures.py
+++ b/Lib/test/test_ctypes/test_structures.py
@@ -1,5 +1,4 @@
import _ctypes_test
-import platform
import struct
import sys
import unittest
@@ -12,12 +11,6 @@
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):
More information about the Python-checkins
mailing list