Commit 37ac590f authored by Zachary Ware's avatar Zachary Ware

Clean up test_coroutines a bit.

No more test_main(), s/assertEquals/assertEqual/, and remove unused import.
parent baaadbf7
import contextlib
import gc
import sys
import types
import unittest
......@@ -185,8 +184,8 @@ class CoroutineTest(unittest.TestCase):
await bar()
f = foo()
self.assertEquals(f.send(None), 1)
self.assertEquals(f.send(None), 2)
self.assertEqual(f.send(None), 1)
self.assertEqual(f.send(None), 2)
with self.assertRaises(StopIteration):
f.send(None)
......@@ -968,13 +967,5 @@ class CAPITest(unittest.TestCase):
self.assertEqual(foo().send(None), 1)
def test_main():
support.run_unittest(AsyncBadSyntaxTest,
CoroutineTest,
CoroAsyncIOCompatTest,
SysSetCoroWrapperTest,
CAPITest)
if __name__=="__main__":
test_main()
unittest.main()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment