Skip to content

TST: Simplify genelate_legacy_pickles.py usage #10509

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

Merged
merged 1 commit into from
Jul 6, 2015

Conversation

sinhrks
Copy link
Member

@sinhrks sinhrks commented Jul 4, 2015

Should not input pandas version manually to avoid any mistake.

@sinhrks sinhrks added the Testing pandas testing functions or related to the test suite label Jul 4, 2015
@sinhrks sinhrks added this to the 0.17.0 milestone Jul 4, 2015
@@ -143,16 +143,14 @@ def write_legacy_pickles():
except:
import pickle

sys_version = version = pandas.__version__
version = pandas.__version__
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one 1 arg needed then

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The condition looks incorrect in current master and the message is not displayed properly. After this PR, it only need 1 arg (sys.argv must be 2).

# current master
$ generate_legacy_pickles.py 0.16.0
Traceback (most recent call last):
  File ".../generate_legacy_pickles.py", line 151, in write_legacy_pickles
    output_dir = str(sys.argv[2])
IndexError: list index out of range

@jreback
Copy link
Contributor

jreback commented Jul 6, 2015

lgtm

jreback added a commit that referenced this pull request Jul 6, 2015
TST: Simplify genelate_legacy_pickles.py usage
@jreback jreback merged commit 4a03e93 into pandas-dev:master Jul 6, 2015
@sinhrks sinhrks deleted the gen_pickle branch July 6, 2015 12:59
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 this pull request may close these issues.

2 participants