Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 21e083d

Browse files
committed
Simplify the test
1 parent cbe4e17 commit 21e083d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Lib/test/test_posix.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1349,8 +1349,6 @@ def test_sched_setaffinity(self):
13491349
# sched_setaffinity() manual page documents EINVAL error
13501350
# when the mask is empty.
13511351
pass
1352-
except Exception as exc:
1353-
self.fail("unexpected exception: {exc!r}")
13541352

13551353
self.assertRaises(ValueError, posix.sched_setaffinity, 0, [-10])
13561354
self.assertRaises(ValueError, posix.sched_setaffinity, 0, map(int, "0X"))

0 commit comments

Comments
 (0)