Skip to content

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

Remove relpath filepath

Paul Tremberth8bd5b60889be
diff --git a/tests/test_command_shell.py b/tests/test_command_shell.py
index 7ae685c64..dd201cff3 100644
--- a/tests/test_command_shell.py
+++ b/tests/test_command_shell.py
@@ -1,5 +1,4 @@
-from os.path import join, abspath, dirname, relpath, commonprefix
-import os
+from os.path import join
from twisted.trial import unittest
from twisted.internet import defer
@@ -62,7 +61,7 @@ class ShellTest(ProcessTest, SiteTest, unittest.TestCase):
test_file_path = join(tests_datadir, 'test_site/index.html')
valid_paths = [
test_file_path,
- relpath(test_file_path),
+ # relpath(test_file_path),
'file://'+test_file_path,
'./tests/sample_data/test_site/index.html',
'tests/sample_data/test_site/index.html',