Skip to content

Commit

Permalink
test_owcsvimport: Fix path eq test
Browse files Browse the repository at this point in the history
  • Loading branch information
ales-erjavec committed Jul 1, 2020
1 parent 49275f6 commit f2da8a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Orange/widgets/data/tests/test_owcsvimport.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from Orange.widgets.data.owcsvimport import (
pandas_to_table, ColumnType, RowSpec
)
from Orange.widgets.utils.pathutils import PathItem
from Orange.widgets.utils.pathutils import PathItem, samepath
from Orange.widgets.utils.settings import QSettings_writeArray
from Orange.widgets.utils.state_summary import format_summary_details

Expand Down Expand Up @@ -84,7 +84,7 @@ def test_restore(self):
}
)
item = w.current_item()
self.assertEqual(item.path(), path)
self.assertTrue(samepath(item.path(), path))
self.assertEqual(item.options(), self.data_regions_options)
out = self.get_output("Data", w)
self._check_data_regions(out)
Expand All @@ -107,7 +107,7 @@ def test_restore_from_local(self):
self.assertIsNone(item)
simulate.combobox_activate_index(w.recent_combo, 0)
item = w.current_item()
self.assertEqual(item.path(), path)
self.assertTrue(samepath(item.path(), path))
self.assertEqual(item.options(), self.data_regions_options)
data = w.settingsHandler.pack_data(w)
self.assertEqual(
Expand Down

0 comments on commit f2da8a8

Please sign in to comment.