def test_fixes2():
 header = get_pkg_data_contents(u'data/nonstandard_units.hdr', encoding=u'binary')
 with pytest.raises(wcs.InvalidTransformError):
  w = wcs.WCS(header, fix=False)

def test_fixes2 ( ) : header = get_pkg_data_contents ( u'data/nonstandard_units.hdr' , encoding = u'binary' ) with pytest . raises ( wcs . InvalidTransformError ) : w = wcs . WCS ( header , fix = False )
from github issue #1854 .