summaryrefslogtreecommitdiffstats
path: root/Lib/unittest
diff options
context:
space:
mode:
authorChristian Clauss <cclauss@me.com>2021-10-06 23:13:48 (GMT)
committerGitHub <noreply@github.com>2021-10-06 23:13:48 (GMT)
commit745c9d9dfc1ad6fdfdf1d07420c6273ff67fa5be (patch)
treecf25c5b8d353f69be8ba9b70963eabae044e4c76 /Lib/unittest
parentdb693df3e112c5a61f2cbef63eedce3a36520ded (diff)
downloadcpython-745c9d9dfc1ad6fdfdf1d07420c6273ff67fa5be.zip
cpython-745c9d9dfc1ad6fdfdf1d07420c6273ff67fa5be.tar.gz
cpython-745c9d9dfc1ad6fdfdf1d07420c6273ff67fa5be.tar.bz2
Fix typos in the Lib directory (GH-28775)
Fix typos in the Lib directory as identified by codespell. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Diffstat (limited to 'Lib/unittest')
-rw-r--r--Lib/unittest/async_case.py2
-rw-r--r--Lib/unittest/test/testmock/testsealable.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/Lib/unittest/async_case.py b/Lib/unittest/async_case.py
index 3e864d1..d8bfaf6 100644
--- a/Lib/unittest/async_case.py
+++ b/Lib/unittest/async_case.py
@@ -53,7 +53,7 @@ class IsolatedAsyncioTestCase(TestCase):
# We intentionally don't add inspect.iscoroutinefunction() check
# for func argument because there is no way
# to check for async function reliably:
- # 1. It can be "async def func()" iself
+ # 1. It can be "async def func()" itself
# 2. Class can implement "async def __call__()" method
# 3. Regular "def func()" that returns awaitable object
self.addCleanup(*(func, *args), **kwargs)
diff --git a/Lib/unittest/test/testmock/testsealable.py b/Lib/unittest/test/testmock/testsealable.py
index 11784c3..daba2b4 100644
--- a/Lib/unittest/test/testmock/testsealable.py
+++ b/Lib/unittest/test/testmock/testsealable.py
@@ -128,7 +128,7 @@ class TestSealable(unittest.TestCase):
m.attr_sample2
def test_integration_with_spec_method_definition(self):
- """You need to defin the methods, even if they are in the spec"""
+ """You need to define the methods, even if they are in the spec"""
m = mock.Mock(SampleObject)
m.method_sample1.return_value = 1