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

TST: Fixed f2py test for Anaconda non-win32 #7171

Merged
merged 1 commit into from
Feb 2, 2016
Merged

TST: Fixed f2py test for Anaconda non-win32 #7171

merged 1 commit into from
Feb 2, 2016

Conversation

gfyoung
Copy link
Contributor

@gfyoung gfyoung commented Feb 2, 2016

When you run python -V under Anaconda (or Miniconda), it returns for example, Python 3.4.3 :: Continuum Analytics, Inc. However, the original parsing of version in test_f2py assumed there was nothing following the version number, causing a ValueError because you can't assign three variables to four components that you get from splitting on the .


# for Python 3.x compatibility, we need to decode
# the bytestream (not str as in Python 2.x) as UTF-8
version = version.decode('utf-8')
Copy link
Member

Choose a reason for hiding this comment

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

Can we use sys.version_info instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, yes. Good point. That will make things a lot simpler. Done.

When you run 'python -V' under Anaconda, it
returns for example, 'Python 3.4.3 :: Continuum
Analytics, Inc.' However, the original parsing
of the version in 'test_f2py' assumed there was
nothing following the version number, causing a
ValueError because you can't assign three
variables to four components that you get from
splitting on the '.'
@charris charris added this to the 1.11.0 release milestone Feb 2, 2016
charris added a commit that referenced this pull request Feb 2, 2016
TST: Fixed f2py test for Anaconda non-win32
@charris charris merged commit 093608d into numpy:master Feb 2, 2016
@charris
Copy link
Member

charris commented Feb 2, 2016

Thanks @gfyoung .

@gfyoung gfyoung deleted the conda_f2py_patch branch February 2, 2016 21:15
charris added a commit that referenced this pull request Feb 2, 2016
@charris charris removed this from the 1.11.0 release milestone Feb 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants