mirror of https://github.com/scrapy/scrapy.git
Another fix to tests, broken by recent Python changes
This commit is contained in:
parent
5d4e0655d0
commit
3db8d367c4
|
|
@ -285,7 +285,7 @@ class UrlUtilsTest(unittest.TestCase):
|
|||
fn = "test.txt"
|
||||
x = path_to_file_uri(fn)
|
||||
self.assert_(x.startswith('file:///'))
|
||||
self.assertEqual(file_uri_to_path(x), os.path.abspath(fn))
|
||||
self.assertEqual(file_uri_to_path(x).lower(), os.path.abspath(fn).lower())
|
||||
|
||||
def test_file_uri_to_path(self):
|
||||
if os.name == 'nt':
|
||||
|
|
|
|||
Loading…
Reference in New Issue