Skip to content

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

use explicit relative import on djangoitem tests

Daniel Grana7cb546ba28a5
diff --git a/scrapy/tests/test_djangoitem/__init__.py b/scrapy/tests/test_djangoitem/__init__.py
index 3b0be932a..2edac85fc 100644
--- a/scrapy/tests/test_djangoitem/__init__.py
+++ b/scrapy/tests/test_djangoitem/__init__.py
@@ -11,7 +11,7 @@ except ImportError:
django = None
if django:
- from models import Person
+ from .models import Person
else:
Person = None