============================= test session starts ==============================
platform linux -- Python 3.7.1, pytest-4.0.0, py-1.7.0, pluggy-0.8.0
Running tests with Astropy version 3.1rc1.
Running tests in astropy docs.
Date: 2018-11-19T12:52:32
Platform: Linux-3.10.0-862.14.4.el7.x86_64-x86_64-with-redhat-7.5-Maipo
Executable: .../envs/astrodev/bin/python
Full Python Version:
3.7.1 | packaged by conda-forge | (default, Nov 13 2018, 18:15:35)
[GCC 4.8.2 20140120 (Red Hat 4.8.2-15)]
encodings: sys: utf-8, locale: UTF-8, filesystem: utf-8
byteorder: little
float info: dig: 15, mant_dig: 15
Numpy: 1.15.4
Scipy: 1.1.0
Matplotlib: 3.0.2
h5py: 2.8.0
Pandas: 0.23.4
Cython: 0.29
astropy_helpers: 3.1rc1
Using Astropy options: remote_data: any.
Matplotlib: 3.0.2
Freetype: 2.9.1
rootdir: /tmp/astropy-test-kwzricim/lib/python3.7/site-packages, inifile: setup.cfg
plugins: xdist-1.24.1, remotedata-0.3.1, openfiles-0.3.0, mpl-0.10, forked-0.2, faulthandler-1.5.0, doctestplus-0.1.3, arraydiff-0.2
collected 12211 items / 19 skipped
...
=================================== FAILURES ===================================
_____________________ test_label_visibility_rules_default ______________________
ax = <astropy.visualization.wcsaxes.core.WCSAxes object at 0x7f0bb6f60f28>
@ignore_matplotlibrc
def test_label_visibility_rules_default(ax):
> assert_label_draw(ax, True, True)
astropy/visualization/wcsaxes/tests/test_coordinate_helpers.py:54:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
ax = <astropy.visualization.wcsaxes.core.WCSAxes object at 0x7f0bb6f60f28>
x_label = True, y_label = True
def assert_label_draw(ax, x_label, y_label):
ax.coords[0].set_axislabel("Label 1")
ax.coords[1].set_axislabel("Label 2")
with patch.object(ax.coords[0].axislabels, 'set_position') as pos1:
with patch.object(ax.coords[1].axislabels, 'set_position') as pos2:
ax.figure.canvas.draw()
> assert pos1.call_count == x_label
E AssertionError: assert 10 == True
E + where 10 = <MagicMock name='set_position' id='139688290691392'>.call_count
astropy/visualization/wcsaxes/tests/test_coordinate_helpers.py:48: AssertionError
______________________ test_label_visibility_rules_ticks _______________________
ax = <astropy.visualization.wcsaxes.core.WCSAxes object at 0x7f0bb6ecb940>
@ignore_matplotlibrc
def test_label_visibility_rules_ticks(ax):
ax.coords[0].set_axislabel_visibility_rule('ticks')
ax.coords[1].set_axislabel_visibility_rule('ticks')
ax.coords[0].set_ticklabel_visible(False)
ax.coords[1].set_ticks(values=[-9999]*u.one)
> assert_label_draw(ax, True, False)
astropy/visualization/wcsaxes/tests/test_coordinate_helpers.py:75:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
ax = <astropy.visualization.wcsaxes.core.WCSAxes object at 0x7f0bb6ecb940>
x_label = True, y_label = False
def assert_label_draw(ax, x_label, y_label):
ax.coords[0].set_axislabel("Label 1")
ax.coords[1].set_axislabel("Label 2")
with patch.object(ax.coords[0].axislabels, 'set_position') as pos1:
with patch.object(ax.coords[1].axislabels, 'set_position') as pos2:
ax.figure.canvas.draw()
> assert pos1.call_count == x_label
E AssertionError: assert 10 == True
E + where 10 = <MagicMock name='set_position' id='139688290071664'>.call_count
astropy/visualization/wcsaxes/tests/test_coordinate_helpers.py:48: AssertionError
______________________ test_label_visibility_rules_always ______________________
ax = <astropy.visualization.wcsaxes.core.WCSAxes object at 0x7f0bb6e9d2e8>
@ignore_matplotlibrc
def test_label_visibility_rules_always(ax):
ax.coords[0].set_axislabel_visibility_rule('always')
ax.coords[1].set_axislabel_visibility_rule('always')
ax.coords[0].set_ticklabel_visible(False)
ax.coords[1].set_ticks(values=[-9999]*u.one)
> assert_label_draw(ax, True, True)
astropy/visualization/wcsaxes/tests/test_coordinate_helpers.py:87:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
ax = <astropy.visualization.wcsaxes.core.WCSAxes object at 0x7f0bb6e9d2e8>
x_label = True, y_label = True
def assert_label_draw(ax, x_label, y_label):
ax.coords[0].set_axislabel("Label 1")
ax.coords[1].set_axislabel("Label 2")
with patch.object(ax.coords[0].axislabels, 'set_position') as pos1:
with patch.object(ax.coords[1].axislabels, 'set_position') as pos2:
ax.figure.canvas.draw()
> assert pos1.call_count == x_label
E AssertionError: assert 10 == True
E + where 10 = <MagicMock name='set_position' id='139688289879152'>.call_count
astropy/visualization/wcsaxes/tests/test_coordinate_helpers.py:48: AssertionError
_________________________ test_format_coord_regression _________________________
tmpdir = local('.../pytest-0/test_format_coord_regression0')
@ignore_matplotlibrc
def test_format_coord_regression(tmpdir):
# Regression test for a bug that meant that if format_coord was called by
# Matplotlib before the axes were drawn, an error occurred.
fig = plt.figure(figsize=(3, 3))
ax = WCSAxes(fig, [0.1, 0.1, 0.8, 0.8])
fig.add_axes(ax)
> assert ax.format_coord(10, 10) == ""
E AssertionError: assert '10.0 10.0 (world)' == ''
E - 10.0 10.0 (world)
astropy/visualization/wcsaxes/tests/test_misc.py:40: AssertionError
====== 4 failed, 12052 passed, 108 skipped, 66 xfailed in 421.34 seconds =======
sys:1: ResourceWarning: unclosed file <_io.BufferedWriter name=16>
With #8160 patch, instead of seg fault, I get 4 failures. Am I missing a dependency or is it just my machine is messed up somehow? This result is from
python setup.py test --remote-data:@astrofrog , any ideas?