Skip to content

Commit 5af8465

Browse files
committed
Adding a test with Python engine
1 parent d8decae commit 5af8465

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

pandas/io/tests/test_common.py

+10-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from pandas.io import common
1212
from pandas.compat import is_platform_windows, StringIO
1313

14-
from pandas import read_csv, concat
14+
from pandas import read_csv, read_table, concat
1515

1616
try:
1717
from pathlib import Path
@@ -90,6 +90,15 @@ def test_iterator(self):
9090
expected.index = [0 for i in range(len(expected))]
9191
tm.assert_frame_equal(concat(it), expected.iloc[1:])
9292

93+
def test_temporary_file(self):
94+
from tempfile import TemporaryFile
95+
new_file = TemporaryFile("w+")
96+
new_file.write("0 0")
97+
new_file.flush()
98+
new_file.seek(0)
99+
100+
dataframe = read_table(new_file, sep=r"\s+", header=None, engine="python")
101+
93102

94103
class TestMMapWrapper(tm.TestCase):
95104

0 commit comments

Comments
 (0)