A number of tests were marked as "skip", and its unclear to me why,
so let's run them and see what happens. It wasn't clear what the
actual test should be in one case, so I have tweaked it slightly
(test_ds9_openlist).
Several tests that were marked as "xfail" have been converted to
tests which check that a particular error is raised (with pytest.raises).
[X] address deprecation warnings shown in tests
pyds9/tests/test_pyds9.py::test_get_arr2np[test.fits]
/tmp/pyds9-test-dttpo3f7/lib/python3.7/site-packages/pyds9/pyds9.py:763: DeprecationWarning: The binary mode of fromstring is deprecated, as it behaves surprisingly on unicode inputs. Use frombuffer instead
arr = numpy.fromstring(s, dtype=_bp2np(bp)).reshape((h, w))
pyds9/tests/test_pyds9.py::test_get_arr2np[test_3D.fits]
/tmp/pyds9-test-dttpo3f7/lib/python3.7/site-packages/pyds9/pyds9.py:761: DeprecationWarning: The binary mode of fromstring is deprecated, as it behaves surprisingly on unicode inputs. Use frombuffer instead
arr = numpy.fromstring(s, dtype=_bp2np(bp)).reshape((d, h, w))
[X] add tests that show current problems with error strings (also see #64)
A number of tests were marked as "skip", and its unclear to me why, so let's run them and see what happens. It wasn't clear what the actual test should be in one case, so I have tweaked it slightly (test_ds9_openlist).
Several tests that were marked as "xfail" have been converted to tests which check that a particular error is raised (with pytest.raises).
[X] add tests that show current problems with error strings (also see #64)
[X] fix these tests