Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
markotoplak committed Jan 5, 2022
1 parent 4ac870c commit 9f35359
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Orange/widgets/data/tests/test_owfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,12 +458,13 @@ def test_domain_edit_no_changes(self):
def test_domain_edit_on_sparse_data(self):
iris = Table("iris").to_sparse()

f = tempfile.NamedTemporaryFile(suffix='.pickle', delete=False)
pickle.dump(iris, f)
f.close()
with named_file("", suffix='.pickle') as fn:
f = open(fn, "wb")
pickle.dump(iris, f)
f.close()

self.widget.add_path(f.name)
self.widget.load_data()
self.widget.add_path(fn)
self.widget.load_data()

output = self.get_output(self.widget.Outputs.data)
self.assertIsInstance(output, Table)
Expand Down

0 comments on commit 9f35359

Please sign in to comment.