Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

*__tmp_to_csv_deprecated_options__ are left behind #9249

Closed
yarikoptic opened this issue Jan 14, 2015 · 6 comments
Closed

*__tmp_to_csv_deprecated_options__ are left behind #9249

yarikoptic opened this issue Jan 14, 2015 · 6 comments
Labels
Testing pandas testing functions or related to the test suite
Milestone

Comments

@yarikoptic
Copy link
Contributor

which fills up the /tmp on a test box:

/tmp# ls -l *tmp_to_csv* | nl | tail
    56  -rw------- 1 buildslave buildslave 1509 Jan 13 08:22 tmpuI3G3o__tmp_to_csv_deprecated_options__
    57  -rw------- 1 buildslave buildslave 1514 Jan 13 06:04 tmpVmc8Qa__tmp_to_csv_deprecated_options__
    58  -rw------- 1 buildslave buildslave 1513 Jan  6 00:19 tmpwHmsVO__tmp_to_csv_deprecated_options__
    59  -rw------- 1 buildslave buildslave 1511 Jan 10 19:19 tmpwmWIUl__tmp_to_csv_deprecated_options__
    60  -rw------- 1 buildslave buildslave 1513 Dec 28 19:57 tmpx480b9bk__tmp_to_csv_deprecated_options__
    61  -rw------- 1 buildslave buildslave 1523 Jan  4 23:21 tmpYpSmZM__tmp_to_csv_deprecated_options__
    62  -rw------- 1 buildslave buildslave 1520 Dec 28 21:47 tmpz55nmj_u__tmp_to_csv_deprecated_options__
    63  -rw------- 1 buildslave buildslave 1526 Jan 10 12:56 tmpzczy25oz__tmp_to_csv_deprecated_options__
    64  -rw------- 1 buildslave buildslave 1513 Dec 28 20:03 tmpZGClRm__tmp_to_csv_deprecated_options__
    65  -rw------- 1 buildslave buildslave 1511 Jan 12 19:56 tmpzktpvkfo__tmp_to_csv_deprecated_options__

which seems to come from one of the test_frame tests which is not among failing tests (http://nipy.bic.berkeley.edu/builders/pandas-py2.x-sid-sparc/builds/1141/steps/shell_5/logs/stdio) so should be cleaned up:

@jreback
Copy link
Contributor

jreback commented Jan 14, 2015

yeh, these should all be done with the ensure_clean as a context manager to clean up.

@jreback jreback added Good as first PR Testing pandas testing functions or related to the test suite labels Jan 14, 2015
@jreback
Copy link
Contributor

jreback commented Jan 14, 2015

jreback-~/pandas] grin tmp_to_csv
./pandas/tests/test_frame.py:
 5897 :         pname = '__tmp_to_csv_deprecated_options__'
 5914 :         pname = '__tmp_to_csv_from_csv__'
 6062 :         path = '__tmp_to_csv_moar__'
 6254 :         pname = '__tmp_to_csv_no_index__'
 6268 :         pname = '__tmp_to_csv_headers__'
 6283 :         pname = '__tmp_to_csv_multiindex__'
13551 :         pname = '__tmp_to_csv_date_format__'

 # these ok
 #6427 :         with ensure_clean('__tmp_to_csv_float32_nanrep__.csv') as path:
 #6439 :         with ensure_clean('__tmp_to_csv_withcommas__.csv') as path:

@jreback jreback added this to the 0.16.0 milestone Jan 14, 2015
@yarikoptic
Copy link
Contributor Author

I only saw the *tmp_to_csv_deprecated_options

On Wed, 14 Jan 2015, jreback wrote:

jreback-~/pandas] grin tmp_to_csv
./pandas/tests/test_frame.py:
5897 : pname = 'tmp_to_csv_deprecated_options'
5914 : pname = 'tmp_to_csv_from_csv'
6062 : path = 'tmp_to_csv_moar'
6254 : pname = 'tmp_to_csv_no_index'
6268 : pname = 'tmp_to_csv_headers'
6283 : pname = 'tmp_to_csv_multiindex'

these ok

#6427 : with ensure_clean('tmp_to_csv_float32_nanrep.csv') as path:
#6439 : with ensure_clean('tmp_to_csv_withcommas.csv') as path:

13551 : pname = 'tmp_to_csv_date_format'

Reply to this email directly or view it on GitHub.

Link: #9249 (comment)

Yaroslav O. Halchenko, Ph.D.
http://neuro.debian.net http://www.pymvpa.org http://www.fail2ban.org
Research Scientist, Psychological and Brain Sciences Dept.
Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755
Phone: +1 (603) 646-9834 Fax: +1 (603) 646-1419
WWW: http://www.linkedin.com/in/yarik

@jreback jreback modified the milestones: 0.16.0, 0.16.1 Mar 6, 2015
@jreback jreback modified the milestones: 0.16.1, 0.17.0 Apr 28, 2015
@jreback jreback modified the milestones: Next Major Release, 0.17.0 Aug 15, 2015
@gliptak
Copy link
Contributor

gliptak commented Apr 8, 2016

I reviewed the occurences of __tmp_ in HEAD and they all use ensure_clean. Consider closing this issue.

@jreback
Copy link
Contributor

jreback commented Apr 8, 2016

we don't need ANY paths explicity set when they are not directly in a with ensure_clean.
I think the _tmp_to_csv_moar might not be wrapped in a context manger.

pandas/tests/frame/test_to_csv.py:
   41 :         pname = '__tmp_to_csv_from_csv__'
  217 :         path = '__tmp_to_csv_moar__'
  431 :         pname = '__tmp_to_csv_no_index__'
  454 :         pname = '__tmp_to_csv_headers__'
  469 :         pname = '__tmp_to_csv_multiindex__'
  635 :         with ensure_clean('__tmp_to_csv_float32_nanrep__.csv') as path:
  647 :         with ensure_clean('__tmp_to_csv_withcommas__.csv') as path:
 1025 :         pname = '__tmp_to_csv_date_format__'

@gliptak
Copy link
Contributor

gliptak commented Apr 8, 2016

@jreback Yes, I did change the __tmp_to_csv_moar__ flow.

@jreback jreback modified the milestones: 0.18.1, Next Major Release Apr 9, 2016
@jreback jreback closed this as completed in 979e31d Apr 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants