Skip to content

Commit 49292fb

Browse files
dmurphy18dwoz
authored andcommitted
Removed debug statements
1 parent e1c1f9c commit 49292fb

File tree

2 files changed

+2
-15
lines changed

2 files changed

+2
-15
lines changed

src/pytestskipmarkers/utils/platform.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,9 @@ def is_aarch64() -> bool:
111111
"""
112112
if is_darwin():
113113
# Allow for MacOS Arm64 platform returning differently from Linux
114-
# return platform.machine().startswith("arm64")
115-
dgm_plmstrg = platform.machine()
116-
print(f"DGM is_aarch64 with Darwin True, dgm_plmstrg '{dgm_plmstrg}'", flush=True)
117-
return dgm_plmstrg.startswith("arm64")
114+
return platform.machine().startswith("arm64")
118115
else:
119-
# return platform.machine().startswith("aarch64")
120-
dgm_plmstrg = platform.machine()
121-
print(f"DSGM is_aarch64 with Darwin False, dgm_plmstrg '{dgm_plmstrg}'", flush=True)
122-
return dgm_plmstrg.startswith("aarch64")
116+
return platform.machine().startswith("aarch64")
123117

124118

125119
def is_photonos() -> bool:

tests/unit/utils/test_platform.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ def test_is_not_aix():
144144

145145
def test_is_aarch64_arm64():
146146
return_value = True
147-
print(f"DGM test_is_aarch64_arm64, expected return value '{return_value}'", flush=True)
148147
# Allow for MacOS Arm64 platform returns 'arm64' not 'aarch64', different than Linux
149148
with mock.patch("platform.machine", return_value="arm64"):
150149
with mock.patch("sys.platform", new_callable=mock.PropertyMock(return_value="darwin")):
@@ -153,7 +152,6 @@ def test_is_aarch64_arm64():
153152

154153
def test_is_aarch64_aarch64():
155154
return_value = True
156-
print(f"DGM test_is_aarch64_aarch64, expected return value '{return_value}'", flush=True)
157155
# Allow for MacOS Arm64 platform returns 'arm64' not 'aarch64', different than Linux
158156
with mock.patch("platform.machine", return_value="aarch64"):
159157
with mock.patch("sys.platform", new_callable=mock.PropertyMock(return_value="not_darwin")):
@@ -162,18 +160,13 @@ def test_is_aarch64_aarch64():
162160

163161
def test_is_not_aarch64():
164162
return_value = False
165-
print(f"DGM test_is_not_aarch64, expected return value '{return_value}'", flush=True)
166163
with mock.patch("platform.machine", return_value="not_arm64"):
167164
with mock.patch("sys.platform", new_callable=mock.PropertyMock(return_value="darwin")):
168165
assert pytestskipmarkers.utils.platform.is_aarch64() is return_value
169166

170167

171168
def test_is_not_aarch64_string_aarch64():
172169
return_value = False
173-
print(
174-
f"DGM test_is_not_aarch64_string_aarch64, expected return value '{return_value}'",
175-
flush=True,
176-
)
177170
with mock.patch("platform.machine", return_value="not_aarch64"):
178171
assert pytestskipmarkers.utils.platform.is_aarch64() is return_value
179172

0 commit comments

Comments
 (0)