Skip to content

Commit 0a28275

Browse files
committed
Skip PyCOMTest entirely on arm64
1 parent 8755d02 commit 0a28275

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

com/win32com/test/testall.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import getopt
22
import os
3+
import platform
34
import re
45
import sys
56
import traceback
@@ -22,7 +23,6 @@
2223
win32com.__path__[0] = win32com_src_dir
2324

2425
import pythoncom
25-
import win32com.client
2626
from pywin32_testutil import TestLoader, TestRunner
2727
from win32com.test.util import (
2828
CapturingFunctionTestCase,
@@ -86,6 +86,9 @@ def ExecuteSilentlyIfOK(cmd, testcase):
8686
class PyCOMTest(TestCase):
8787
no_leak_tests = True # done by the test itself
8888

89+
@unittest.skipIf(
90+
platform.machine() == "ARM64", "PyCOMTest cannot currently be run on ARM64"
91+
)
8992
def testit(self):
9093
# Check that the item is registered, so we get the correct
9194
# 'skipped' behaviour (and recorded as such) rather than either

0 commit comments

Comments
 (0)