Skip to content

Commit 02149c1

Browse files
committed
Run ioctl test only on Linux
1 parent 60c7003 commit 02149c1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

graalpython/com.oracle.graal.python.test/src/tests/test_fcntl.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ def test_flock_s_and_s(self):
113113
os.close(file)
114114

115115

116+
@unittest.skipUnless(sys.platform == 'linux', "Linux only test")
117+
@unittest.skipUnless(__graalpython__.posix_module_backend() != 'java', "No ioctl in emulated backend")
116118
class IoctlTests(unittest.TestCase):
117119
# Taken from CPython test_ioctl.py which unfortunately skips the whole file when not in a terminal
118120
def test_ioctl_signed_unsigned_code_param(self):

0 commit comments

Comments
 (0)