We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
macos-14
1 parent 0cf462f commit 40bccf5Copy full SHA for 40bccf5
1 file changed
test/signal/test-signalhandler.py
@@ -4,6 +4,8 @@
4
import pytest
5
import platform
6
7
+from packaging.version import Version
8
+
9
def __lookup_cppcheck_exe(exe_name):
10
# path the script is located in
11
script_path = os.path.dirname(os.path.realpath(__file__))
@@ -62,8 +64,7 @@ def test_segv():
62
64
assert stderr == ''
63
65
lines = stdout.splitlines()
66
if sys.platform == "darwin":
- print(platform.mac_ver())
- if int(platform.mac_ver()[1][0]) >= 14:
67
+ if Version(platform.mac_ver()[0]) >= Version('14'):
68
assert lines[0] == 'Internal error: cppcheck received signal SIGSEGV - SEGV_ACCERR (at 0x0).'
69
else:
70
assert lines[0] == 'Internal error: cppcheck received signal SIGSEGV - SEGV_MAPERR (at 0x0).'
0 commit comments