File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Orange/widgets/data/tests Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 2222from 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
2626from Orange .widgets .utils .settings import QSettings_writeArray
2727from 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 (
You can’t perform that action at this time.
0 commit comments