We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e6084f commit 4c9bcf1Copy full SHA for 4c9bcf1
pandas/io/tests/test_stata.py
@@ -330,7 +330,8 @@ def test_write_preserves_original(self):
330
df = pd.DataFrame(np.random.randn(5,4), columns=list('abcd'))
331
df.ix[2, 'a':'c'] = np.nan
332
df_copy = df.copy()
333
- df.to_stata('test.dta', write_index=False)
+ with tm.ensure_clean() as path:
334
+ df.to_stata(path, write_index=False)
335
tm.assert_frame_equal(df, df_copy)
336
337
def test_encoding(self):
0 commit comments