aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_coroutines.py
diff options
context:
space:
mode:
authorZachary Ware <zachary.ware@gmail.com>2015-05-13 01:03:06 -0500
committerZachary Ware <zachary.ware@gmail.com>2015-05-13 01:03:06 -0500
commit37ac590f7c39e152dd0f1630ee5653ba1109531d (patch)
tree94f09ce4c4d388061c839807a53f21a8e54929ef /Lib/test/test_coroutines.py
parentbaaadbf70d024142ec6a519006e960ec74309f92 (diff)
downloadcpython-37ac590f7c39e152dd0f1630ee5653ba1109531d.tar.gz
cpython-37ac590f7c39e152dd0f1630ee5653ba1109531d.zip
Clean up test_coroutines a bit.
No more test_main(), s/assertEquals/assertEqual/, and remove unused import.
Diffstat (limited to 'Lib/test/test_coroutines.py')
-rw-r--r--Lib/test/test_coroutines.py15
1 files changed, 3 insertions, 12 deletions
diff --git a/Lib/test/test_coroutines.py b/Lib/test/test_coroutines.py
index 6a6f868c129..b1105cb771a 100644
--- a/Lib/test/test_coroutines.py
+++ b/Lib/test/test_coroutines.py
@@ -1,5 +1,4 @@
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()