Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

Make flake8 happy

Michel Ace295f0e2bf5c3
diff --git a/tests/test_utils_misc/__init__.py b/tests/test_utils_misc/__init__.py
index b0d7acd12..69f593ccd 100644
--- a/tests/test_utils_misc/__init__.py
+++ b/tests/test_utils_misc/__init__.py
@@ -163,9 +163,9 @@ class UtilsMiscTestCase(unittest.TestCase):
assert os.environ.get('some_test_environ') == 'test'
def test_rel_has_nofollow(self):
- assert rel_has_nofollow('ugc nofollow') == True
- assert rel_has_nofollow('ugc,nofollow') == True
- assert rel_has_nofollow('ugc') == False
+ assert rel_has_nofollow('ugc nofollow') is True
+ assert rel_has_nofollow('ugc,nofollow') is True
+ assert rel_has_nofollow('ugc') is False
if __name__ == "__main__":