summaryrefslogtreecommitdiffstats
path: root/Lib/unittest
diff options
context:
space:
mode:
authorAdam Johnson <me@adamj.eu>2019-11-19 19:45:20 (GMT)
committerBrett Cannon <54418+brettcannon@users.noreply.github.com>2019-11-19 19:45:20 (GMT)
commit892221bfa04a41cf581f988ba19dc263f557e157 (patch)
tree3961cf2084befe960fd1171381564886cb4a913c /Lib/unittest
parent54b32c987146123f2237f0e21b1d02b1c1ebdf6f (diff)
downloadcpython-892221bfa04a41cf581f988ba19dc263f557e157.zip
cpython-892221bfa04a41cf581f988ba19dc263f557e157.tar.gz
cpython-892221bfa04a41cf581f988ba19dc263f557e157.tar.bz2
bpo-38839: Fix some unused functions in tests (GH-17189)
Diffstat (limited to 'Lib/unittest')
-rw-r--r--Lib/unittest/test/testmock/testasync.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/unittest/test/testmock/testasync.py b/Lib/unittest/test/testmock/testasync.py
index 6b2d49d..0d2cdb0 100644
--- a/Lib/unittest/test/testmock/testasync.py
+++ b/Lib/unittest/test/testmock/testasync.py
@@ -335,6 +335,7 @@ class AsyncSpecSetTest(unittest.TestCase):
@patch.object(AsyncClass, 'async_method', spec_set=True)
def test_async(async_method):
self.assertIsInstance(async_method, AsyncMock)
+ test_async()
def test_is_async_AsyncMock(self):
mock = AsyncMock(spec_set=AsyncClass.async_method)