Skip to content

Commit 2446870

Browse files
Try to fix tests on 32-bit Linux.
1 parent 4774421 commit 2446870

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_resource.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def expected(cur):
138138
self.assertEqual(resource.getrlimit(resource.RLIMIT_FSIZE), (2**32-5, max))
139139

140140
resource.setrlimit(resource.RLIMIT_FSIZE, (2**63-5, max))
141-
self.assertEqual(resource.getrlimit(resource.RLIMIT_FSIZE), (2**63-5, max))
141+
self.assertIn(resource.getrlimit(resource.RLIMIT_FSIZE), expected(2**63-5))
142142
try:
143143
resource.setrlimit(resource.RLIMIT_FSIZE, (2**63, max))
144144
except ValueError:

0 commit comments

Comments
 (0)