1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-06 10:24:24 +00:00

Remove obsolete top-level run code in tests.

This commit is contained in:
Andrey Rakhmatullin 2023-01-25 22:14:24 +04:00
parent 73f697f1db
commit c0ea7fd4fd
3 changed files with 0 additions and 12 deletions

View File

@ -37,7 +37,3 @@ class ScrapyUtilsTest(unittest.TestCase):
pinned_twisted_version_string = match[1]
self.assertEqual(twisted_version.short(), pinned_twisted_version_string)
if __name__ == "__main__":
unittest.main()

View File

@ -528,7 +528,3 @@ class TestHelper(unittest.TestCase):
type(a) is type(b), f"Got {type(a)}, expected {type(b)} for { obj!r}"
)
self.assertEqual(a, b)
if __name__ == "__main__":
unittest.main()

View File

@ -258,7 +258,3 @@ class UtilsPythonTestCase(unittest.TestCase):
without_none_values({"one": 1, "none": None, "three": 3, "four": 4}),
{"one": 1, "three": 3, "four": 4},
)
if __name__ == "__main__":
unittest.main()