mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-25 17:52:02 +02:00
Fix failing test
This commit is contained in:
@@ -446,11 +446,12 @@ class TestDnDKitten(BaseTest):
|
||||
if line and not line.startswith('#'):
|
||||
purl = urlparse(line)
|
||||
if purl.scheme == 'file':
|
||||
paths.add(purl.path)
|
||||
fpath = purl.path.rstrip('/') or '/'
|
||||
paths.add(fpath)
|
||||
if remote_client:
|
||||
self.assertNotEqual(self.src_data_dir, os.path.dirname(purl.path))
|
||||
self.assertNotEqual(self.src_data_dir, os.path.dirname(fpath))
|
||||
else:
|
||||
self.assertEqual(self.src_data_dir, os.path.dirname(purl.path))
|
||||
self.assertEqual(self.src_data_dir, os.path.dirname(fpath))
|
||||
src_items = set(os.listdir(self.src_data_dir))
|
||||
self.assertEqual(src_items, {os.path.basename(x) for x in paths})
|
||||
if remote_client:
|
||||
|
||||
Reference in New Issue
Block a user