home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 180756013

This data as json

id node_id number title user state locked assignee milestone comments created_at updated_at closed_at author_association active_lock_reason draft pull_request body reactions performed_via_github_app state_reason repo type
180756013 MDU6SXNzdWUxODA3NTYwMTM= 1034 test_conventions.TestEncodeCFVariable failing on master for Appveyor Python 2.7 build 1217238 closed 0     5 2016-10-03T21:48:55Z 2016-10-22T00:49:53Z 2016-10-22T00:49:53Z MEMBER      

I have on idea what's going on here but maybe somebody who knows Windows better has a guess:

``` ================================== FAILURES =================================== __ TestEncodeCFVariable.testmissing_fillvalue ___ self = <xarray.test.test_conventions.TestEncodeCFVariable testMethod=test_missing_fillvalue> def test_missing_fillvalue(self): v = Variable(['x'], np.array([np.nan, 1, 2, 3])) v.encoding = {'dtype': 'int16'} with self.assertWarns('floating point data as an integer'):

      conventions.encode_cf_variable(v)

xarray\test\test_conventions.py:523:


C:\Python27-conda32\lib\contextlib.py:24: in exit self.gen.next()


self = <xarray.test.test_conventions.TestEncodeCFVariable testMethod=test_missing_fillvalue> message = 'floating point data as an integer' @contextmanager def assertWarns(self, message): with warnings.catch_warnings(record=True) as w: warnings.filterwarnings('always', message) yield assert len(w) > 0

      assert all(message in str(wi.message) for wi in w)

E AssertionError: NameError: all(<generator object \<genexpr> at 0x0617D170>) << global name 'message' is not defined xarray\test__init__.py:140: AssertionError ============== 1 failed, 970 passed, 67 skipped in 70.58 seconds ============== ```

I could understand a warning failing to be raised, but the NameError is especially strange.

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/1034/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed 13221727 issue

Links from other tables

  • 0 rows from issues_id in issues_labels
  • 5 rows from issue in issue_comments
Powered by Datasette · Queries took 0.622ms · About: xarray-datasette