diff options
Diffstat (limited to 'Lib/test')
| -rw-r--r-- | Lib/test/test_asyncio/test_selector_events.py | 2 | ||||
| -rw-r--r-- | Lib/test/test_asyncio/test_sslproto.py | 2 | ||||
| -rw-r--r-- | Lib/test/test_binop.py | 2 | ||||
| -rw-r--r-- | Lib/test/test_faulthandler.py | 2 | ||||
| -rw-r--r-- | Lib/test/test_pathlib.py | 2 | ||||
| -rw-r--r-- | Lib/test/test_sys.py | 2 | ||||
| -rw-r--r-- | Lib/test/test_threading.py | 2 | ||||
| -rw-r--r-- | Lib/test/test_tools/test_gprof2html.py | 2 | ||||
| -rw-r--r-- | Lib/test/test_zipapp.py | 2 |
9 files changed, 9 insertions, 9 deletions
diff --git a/Lib/test/test_asyncio/test_selector_events.py b/Lib/test/test_asyncio/test_selector_events.py index 135b5abf10..77e72e5705 100644 --- a/Lib/test/test_asyncio/test_selector_events.py +++ b/Lib/test/test_asyncio/test_selector_events.py @@ -1182,7 +1182,7 @@ class SelectorSslTransportTests(test_utils.TestCase): self.assertIs(exc, waiter.exception()) def test_cancel_handshake(self): - # Python issue #23197: cancelling an handshake must not raise an + # Python issue #23197: cancelling a handshake must not raise an # exception or log an error, even if the handshake failed waiter = asyncio.Future(loop=self.loop) transport = self.ssl_transport(waiter=waiter) diff --git a/Lib/test/test_asyncio/test_sslproto.py b/Lib/test/test_asyncio/test_sslproto.py index a72967ea07..e4121a0184 100644 --- a/Lib/test/test_asyncio/test_sslproto.py +++ b/Lib/test/test_asyncio/test_sslproto.py @@ -40,7 +40,7 @@ class SslProtoHandshakeTests(test_utils.TestCase): ssl_proto.connection_made(transport) def test_cancel_handshake(self): - # Python issue #23197: cancelling an handshake must not raise an + # Python issue #23197: cancelling a handshake must not raise an # exception or log an error, even if the handshake failed waiter = asyncio.Future(loop=self.loop) ssl_proto = self.ssl_protocol(waiter) diff --git a/Lib/test/test_binop.py b/Lib/test/test_binop.py index 823740c444..e9dbddcd93 100644 --- a/Lib/test/test_binop.py +++ b/Lib/test/test_binop.py @@ -58,7 +58,7 @@ class Rat(object): den = property(_get_den, None) def __repr__(self): - """Convert a Rat to an string resembling a Rat constructor call.""" + """Convert a Rat to a string resembling a Rat constructor call.""" return "Rat(%d, %d)" % (self.__num, self.__den) def __str__(self): diff --git a/Lib/test/test_faulthandler.py b/Lib/test/test_faulthandler.py index a3a211667f..fc2d6d7bae 100644 --- a/Lib/test/test_faulthandler.py +++ b/Lib/test/test_faulthandler.py @@ -715,7 +715,7 @@ class FaultHandlerTests(unittest.TestCase): sys.stderr = stderr def test_stderr_None(self): - # Issue #21497: provide an helpful error if sys.stderr is None, + # Issue #21497: provide a helpful error if sys.stderr is None, # instead of just an attribute error: "None has no attribute fileno". with self.check_stderr_none(): faulthandler.enable() diff --git a/Lib/test/test_pathlib.py b/Lib/test/test_pathlib.py index 7465c61f42..b32c9fbfa8 100644 --- a/Lib/test/test_pathlib.py +++ b/Lib/test/test_pathlib.py @@ -200,7 +200,7 @@ class _BasePurePathTest(object): def _check_str_subclass(self, *args): # Issue #21127: it should be possible to construct a PurePath object - # from an str subclass instance, and it then gets converted to + # from a str subclass instance, and it then gets converted to # a pure str object. class StrSubclass(str): pass diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py index 2aa16fc1e6..a531879552 100644 --- a/Lib/test/test_sys.py +++ b/Lib/test/test_sys.py @@ -644,7 +644,7 @@ class SysModuleTest(unittest.TestCase): self.assertEqual(os.path.abspath(sys.executable), sys.executable) # Issue #7774: Ensure that sys.executable is an empty string if argv[0] - # has been set to an non existent program name and Python is unable to + # has been set to a non existent program name and Python is unable to # retrieve the real program name # For a normal installation, it should work without 'cwd' diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py index f6b416df37..71df14c8fd 100644 --- a/Lib/test/test_threading.py +++ b/Lib/test/test_threading.py @@ -1083,7 +1083,7 @@ class EventTests(lock_tests.EventTests): eventtype = staticmethod(threading.Event) class ConditionAsRLockTests(lock_tests.RLockTests): - # An Condition uses an RLock by default and exports its API. + # Condition uses an RLock by default and exports its API. locktype = staticmethod(threading.Condition) class ConditionTests(lock_tests.ConditionTests): diff --git a/Lib/test/test_tools/test_gprof2html.py b/Lib/test/test_tools/test_gprof2html.py index 845a2a8cfa..0c294ec0c4 100644 --- a/Lib/test/test_tools/test_gprof2html.py +++ b/Lib/test/test_tools/test_gprof2html.py @@ -22,7 +22,7 @@ class Gprof2htmlTests(unittest.TestCase): sys.argv = [] def test_gprof(self): - # Issue #14508: this used to fail with an NameError. + # Issue #14508: this used to fail with a NameError. with mock.patch.object(self.gprof, 'webbrowser') as wmock, \ tempfile.TemporaryDirectory() as tmpdir: fn = os.path.join(tmpdir, 'abc') diff --git a/Lib/test/test_zipapp.py b/Lib/test/test_zipapp.py index 97343802a5..d8d44375bd 100644 --- a/Lib/test/test_zipapp.py +++ b/Lib/test/test_zipapp.py @@ -195,7 +195,7 @@ class ZipAppTest(unittest.TestCase): self.assertTrue(new_target.getvalue().startswith(b'#!python2.7\n')) def test_read_from_pathobj(self): - # Test that we can copy an archive using an pathlib.Path object + # Test that we can copy an archive using a pathlib.Path object # for the source. source = self.tmpdir / 'source' source.mkdir() |
