mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +00:00
Backport METH_FASTCALL from Python 3.7 (#328)
This commit is contained in:
parent
70c97f598b
commit
cf73bbd678
102 changed files with 2896 additions and 3301 deletions
8
third_party/python/Lib/test/test_atexit.py
vendored
8
third_party/python/Lib/test/test_atexit.py
vendored
|
@ -1,4 +1,5 @@
|
|||
import sys
|
||||
import cosmo
|
||||
import unittest
|
||||
import io
|
||||
import atexit
|
||||
|
@ -102,9 +103,10 @@ class GeneralTest(unittest.TestCase):
|
|||
self.assertRaises(ZeroDivisionError, atexit._run_exitfuncs)
|
||||
stderr = self.stream.getvalue()
|
||||
self.assertEqual(stderr.count("ZeroDivisionError"), 3)
|
||||
self.assertIn("# one", stderr)
|
||||
self.assertIn("# two", stderr)
|
||||
self.assertIn("# three", stderr)
|
||||
if "tiny" not in cosmo.MODE:
|
||||
self.assertIn("# one", stderr)
|
||||
self.assertIn("# two", stderr)
|
||||
self.assertIn("# three", stderr)
|
||||
|
||||
def test_stress(self):
|
||||
a = [0]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue