Skip to content

Commit f2da8a8

Browse files
committed
test_owcsvimport: Fix path eq test
1 parent 49275f6 commit f2da8a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Orange/widgets/data/tests/test_owcsvimport.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from Orange.widgets.data.owcsvimport import (
2323
pandas_to_table, ColumnType, RowSpec
2424
)
25-
from Orange.widgets.utils.pathutils import PathItem
25+
from Orange.widgets.utils.pathutils import PathItem, samepath
2626
from Orange.widgets.utils.settings import QSettings_writeArray
2727
from Orange.widgets.utils.state_summary import format_summary_details
2828

@@ -84,7 +84,7 @@ def test_restore(self):
8484
}
8585
)
8686
item = w.current_item()
87-
self.assertEqual(item.path(), path)
87+
self.assertTrue(samepath(item.path(), path))
8888
self.assertEqual(item.options(), self.data_regions_options)
8989
out = self.get_output("Data", w)
9090
self._check_data_regions(out)
@@ -107,7 +107,7 @@ def test_restore_from_local(self):
107107
self.assertIsNone(item)
108108
simulate.combobox_activate_index(w.recent_combo, 0)
109109
item = w.current_item()
110-
self.assertEqual(item.path(), path)
110+
self.assertTrue(samepath(item.path(), path))
111111
self.assertEqual(item.options(), self.data_regions_options)
112112
data = w.settingsHandler.pack_data(w)
113113
self.assertEqual(

0 commit comments

Comments
 (0)