diff --git a/Lib/test/eintrdata/eintr_tester.py b/Lib/test/eintrdata/eintr_tester.py index 25c169bde5005f5..5f956b548fc40aa 100644 --- a/Lib/test/eintrdata/eintr_tester.py +++ b/Lib/test/eintrdata/eintr_tester.py @@ -12,6 +12,7 @@ import faulthandler import fcntl import os +import platform import select import signal import socket @@ -518,6 +519,9 @@ def _lock(self, lock_func, lock_name): self.stop_alarm() proc.wait() + # Issue 35633: See https://bugs.python.org/issue35633#msg333662 + # skip test rather than accept PermissionError from all platforms + @unittest.skipIf(platform.system() == "AIX", "AIX returns PermissionError") def test_lockf(self): self._lock(fcntl.lockf, "lockf")