From ae0833ad9f2c2d71dfe0f11767901fddfcbbd8a9 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Sat, 28 Mar 2020 19:40:10 +0100 Subject: [PATCH] Update hacking for Python3 The repo is Python 3 now, so update hacking to version 3.0 which supports Python 3. Fix problems found by updated hacking version. Change-Id: I621cc7f472e2666d3422113675b18d838688a434 --- test-requirements.txt | 2 +- test/test_pipelines.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/test-requirements.txt b/test-requirements.txt index e31827f1..8b716de8 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -3,7 +3,7 @@ # process, which may cause wedges in the gate later. # Hacking already pins down pep8, pyflakes and flake8 -hacking>=1.1.0,<1.2.0 # Apache-2.0 +hacking>=3.0,<3.1.0 # Apache-2.0 bashate>=0.5.1 # Apache-2.0 doc8>=0.6.0 # Apache-2.0 diff --git a/test/test_pipelines.py b/test/test_pipelines.py index 62fde0ec..a1ce3f1b 100644 --- a/test/test_pipelines.py +++ b/test/test_pipelines.py @@ -193,5 +193,6 @@ class TestExportSitemap(unittest.TestCase): pipelines.ExportSitemap.from_crawler(crawler) # still thinking how to go about here. + if __name__ == '__main__': unittest.main()