diff --git a/tests/test_crawl.py b/tests/test_crawl.py index 4f7c24e27..44ced42f5 100644 --- a/tests/test_crawl.py +++ b/tests/test_crawl.py @@ -150,7 +150,7 @@ class CrawlTestCase(TestCase): raise unittest.SkipTest("Non-existing hosts are resolvable") crawler = get_crawler(SimpleSpider) with LogCapture() as log: - # try to fetch the homepage of a non-existent domain + # try to fetch the homepage of a nonexistent domain yield crawler.crawl("http://dns.resolution.invalid./", mockserver=self.mockserver) self._assert_retried(log) diff --git a/tests/test_downloader_handlers.py b/tests/test_downloader_handlers.py index 3dc2745a0..433b6d0c8 100644 --- a/tests/test_downloader_handlers.py +++ b/tests/test_downloader_handlers.py @@ -1050,8 +1050,8 @@ class BaseFTPTestCase(unittest.TestCase): return self._add_test_callbacks(d, _test) - def test_ftp_download_notexist(self): - request = Request(url=f"ftp://127.0.0.1:{self.portNum}/notexist.txt", + def test_ftp_download_nonexistent(self): + request = Request(url=f"ftp://127.0.0.1:{self.portNum}/nonexistent.txt", meta=self.req_meta) d = self.download_handler.download_request(request, None) diff --git a/tests/test_http_request.py b/tests/test_http_request.py index 9f7f1854f..c3b729b76 100644 --- a/tests/test_http_request.py +++ b/tests/test_http_request.py @@ -873,7 +873,7 @@ class FormRequestTest(RequestTest): fs = _qs(r1) self.assertEqual(fs, {b'four': [b'4'], b'three': [b'3']}) - def test_from_response_formname_notexist(self): + def test_from_response_formname_nonexistent(self): response = _buildresponse( """