Skip to content

Commit f33641a

Browse files
author
y-p
committed
TST: use unique filenames in tests for (test_multi)
1 parent 4729abc commit f33641a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pandas/tests/test_frame.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3683,7 +3683,9 @@ def test_to_csv_from_csv(self):
36833683
os.remove(path)
36843684

36853685
def test_to_csv_from_csv_w_some_infs(self):
3686-
path = '__tmp__'
3686+
import tempfile
3687+
path = tempfile.mktemp()
3688+
path += '__tmp__'
36873689

36883690
# test roundtrip with inf, -inf, nan, as full columns and mix
36893691
self.frame['G'] = np.nan
@@ -3698,7 +3700,9 @@ def test_to_csv_from_csv_w_some_infs(self):
36983700
os.remove(path)
36993701

37003702
def test_to_csv_from_csv_w_all_infs(self):
3701-
path = '__tmp__'
3703+
import tempfile
3704+
path = tempfile.mktemp()
3705+
path += '__tmp__'
37023706

37033707
# test roundtrip with inf, -inf, nan, as full columns and mix
37043708
self.frame['E'] = np.inf

0 commit comments

Comments
 (0)