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

Test errors with numpy 1.11.1rc1 #6489

Closed
cgohlke opened this issue May 27, 2016 · 3 comments
Closed

Test errors with numpy 1.11.1rc1 #6489

cgohlke opened this issue May 27, 2016 · 3 comments
Assignees
Milestone

Comments

@cgohlke
Copy link
Contributor

cgohlke commented May 27, 2016

On Windows, Python 3.5.1, 64-bit:

numpy 1.11.1rc1
matplotlib 1.5.2rc2
<snip>
======================================================================
ERROR: test suite for <class 'matplotlib.tests.test_axes.transplant_class.<locals>.C'>
----------------------------------------------------------------------
Traceback (most recent call last):
  File "X:\Python35\lib\site-packages\nose\suite.py", line 210, in run
    self.setUp()
  File "X:\Python35\lib\site-packages\nose\suite.py", line 293, in setUp
    self.setupContext(ancestor)
  File "X:\Python35\lib\site-packages\nose\suite.py", line 316, in setupContext
    try_run(context, names)
  File "X:\Python35\lib\site-packages\nose\util.py", line 471, in try_run
    return func()
  File "X:\Python35\lib\site-packages\matplotlib\testing\decorators.py", line 154, in setup_class
    cls._func()
  File "X:\Python35\lib\site-packages\matplotlib\tests\test_axes.py", line 87, in test_formatter_large_small
    if tuple(map(int, np.__version__.split('.'))) >= (1, 11, 0):
ValueError: invalid literal for int() with base 10: '1rc1'

======================================================================
ERROR: test suite for <class 'matplotlib.tests.test_bbox_tight.transplant_class.<locals>.C'>
----------------------------------------------------------------------
Traceback (most recent call last):
  File "X:\Python35\lib\site-packages\nose\suite.py", line 210, in run
    self.setUp()
  File "X:\Python35\lib\site-packages\nose\suite.py", line 293, in setUp
    self.setupContext(ancestor)
  File "X:\Python35\lib\site-packages\nose\suite.py", line 316, in setupContext
    try_run(context, names)
  File "X:\Python35\lib\site-packages\nose\util.py", line 471, in try_run
    return func()
  File "X:\Python35\lib\site-packages\matplotlib\testing\decorators.py", line 154, in setup_class
    cls._func()
  File "X:\Python35\lib\site-packages\matplotlib\tests\test_bbox_tight.py", line 94, in test_bbox_inches_tight_raster
    if tuple(map(int, np.__version__.split('.'))) >= (1, 11, 0):
ValueError: invalid literal for int() with base 10: '1rc1'

----------------------------------------------------------------------
@tacaswell tacaswell added this to the 1.5.2 (Critical bug fix release) milestone May 27, 2016
@tacaswell
Copy link
Member

This was added to skip tests that fail due to fixing of a numpy bug. We fix the tests for real on 2.x on, but did not backport those changes.

attn @jenshnielsen

We should use loose version here.

@jenshnielsen
Copy link
Member

Yes we should use LooseVersion. I was lazy and copied your solution from test_axes:test_formatter_large_small in 26cba4b yesterday. I have fixed both of them now on #6490

@tacaswell
Copy link
Member

closed by #6490

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants