mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
bpo-40280: Address more test failures on Emscripten (GH-31050)
Co-authored-by: Brett Cannon <brett@python.org>
This commit is contained in:
parent
9d4161a60c
commit
96b344c2f1
27 changed files with 227 additions and 49 deletions
|
@ -98,6 +98,7 @@ class ResourceTest(unittest.TestCase):
|
|||
except (OverflowError, ValueError):
|
||||
pass
|
||||
|
||||
@unittest.skipUnless(hasattr(resource, "getrusage"), "needs getrusage")
|
||||
def test_getrusage(self):
|
||||
self.assertRaises(TypeError, resource.getrusage)
|
||||
self.assertRaises(TypeError, resource.getrusage, 42, 42)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue