Skip to content

Commit 2a3e50a

Browse files
committed
Test os.sysconf with a key that's available on WASI
1 parent 1c2009c commit 2a3e50a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Lib/test/test_posix.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -594,10 +594,10 @@ def test_sysconf(self):
594594
):
595595
posix.sysconf(1.23)
596596

597-
open_max = posix.sysconf("SC_OPEN_MAX")
598-
self.assertGreater(open_max, 0)
597+
arg_max = posix.sysconf("SC_ARG_MAX")
598+
self.assertGreater(arg_max, 0)
599599
self.assertEqual(
600-
posix.sysconf(posix.sysconf_names["SC_OPEN_MAX"]), open_max)
600+
posix.sysconf(posix.sysconf_names["SC_ARG_MAX"]), arg_max)
601601

602602
@unittest.skipUnless(hasattr(posix, 'dup2'),
603603
'test needs posix.dup2()')

0 commit comments

Comments
 (0)