{"action":"closed","issue":{"url":"https://api.github.com/repos/numpy/numpy/issues/7872","repository_url":"https://api.github.com/repos/numpy/numpy","labels_url":"https://api.github.com/repos/numpy/numpy/issues/7872/labels{/name}","comments_url":"https://api.github.com/repos/numpy/numpy/issues/7872/comments","events_url":"https://api.github.com/repos/numpy/numpy/issues/7872/events","html_url":"https://github.com/numpy/numpy/issues/7872","id":167702749,"number":7872,"title":"Test errors and failures after calling pandas.show_version()","user":{"login":"cgohlke","id":483428,"avatar_url":"https://avatars.githubusercontent.com/u/483428?v=3","gravatar_id":"","url":"https://api.github.com/users/cgohlke","html_url":"https://github.com/cgohlke","followers_url":"https://api.github.com/users/cgohlke/followers","following_url":"https://api.github.com/users/cgohlke/following{/other_user}","gists_url":"https://api.github.com/users/cgohlke/gists{/gist_id}","starred_url":"https://api.github.com/users/cgohlke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgohlke/subscriptions","organizations_url":"https://api.github.com/users/cgohlke/orgs","repos_url":"https://api.github.com/users/cgohlke/repos","events_url":"https://api.github.com/users/cgohlke/events{/privacy}","received_events_url":"https://api.github.com/users/cgohlke/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-26T20:24:16Z","updated_at":"2016-07-26T20:53:11Z","closed_at":"2016-07-26T20:53:11Z","body":"While testing https://github.com/numpy/numpy/pull/7870, I ran into the following numpy test errors and failures after calling `pandas.show_version()` (using maintenance 1.11.x msvc14+MKL build):\r\n```\r\n> python -c\"import pandas;pandas.show_versions();import numpy;numpy.test()\"\r\n\r\nINSTALLED VERSIONS\r\n------------------\r\ncommit: None\r\npython: 3.5.2.final.0\r\npython-bits: 64\r\nOS: Windows\r\nOS-release: 10\r\nmachine: AMD64\r\nprocessor: Intel64 Family 6 Model 42 Stepping 7, GenuineIntel\r\nbyteorder: little\r\nLC_ALL: None\r\nLANG: None\r\n\r\npandas: 0.18.1\r\nnose: 1.3.7\r\npip: 8.1.2\r\nsetuptools: 24.3.1\r\nCython: 0.24.1\r\nnumpy: None\r\nscipy: 0.18.0\r\nstatsmodels: 0.6.1\r\nxarray: 0.7.2\r\nIPython: 5.0.0\r\nsphinx: 1.4.5\r\npatsy: 0.4.1\r\ndateutil: 2.5.3\r\npytz: 2016.6.1\r\nblosc: 1.4.0\r\nbottleneck: 1.1.0\r\ntables: 3.2.3\r\nnumexpr: 2.6.1\r\nmatplotlib: 1.5.2\r\nopenpyxl: 2.3.5\r\nxlrd: 1.0.0\r\nxlwt: 1.1.2\r\nxlsxwriter: 0.9.3\r\nlxml: 3.6.1\r\nbs4: 4.5.0\r\nhtml5lib: 0.999999999\r\nhttplib2: 0.9.2\r\napiclient: 1.5.1\r\nsqlalchemy: 1.0.14\r\npymysql: None\r\npsycopg2: 2.6.2 (dt dec pq3 ext lo64)\r\njinja2: 2.8\r\nboto: 2.42.0\r\npandas_datareader: 0.2.1\r\nRunning unit tests for numpy\r\nNumPy version 1.11.1\r\nNumPy relaxed strides checking option: False\r\nNumPy is installed in X:\\Python35\\lib\\site-packages\\numpy\r\nPython version 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:18:55) [MSC v.1900 64 bit (AMD64)]\r\nnose version 1.3.7\r\n\r\n<snip>\r\n\r\n======================================================================\r\nERROR: test_datetime_as_string_timezone (test_datetime.TestDateTime)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"X:\\Python35\\lib\\site-packages\\numpy\\testing\\decorators.py\", line 147, in skipper_func\r\n    return f(*args, **kwargs)\r\n  File \"X:\\Python35\\lib\\site-packages\\numpy\\core\\tests\\test_datetime.py\", line 1460, in test_datetime_as_string_timezone\r\n    assert_equal(np.datetime_as_string(a, timezone=tz('US/Central')),\r\n  File \"X:\\Python35\\lib\\site-packages\\pytz\\__init__.py\", line 172, in timezone\r\n    zone = _unmunge_zone(zone)\r\n  File \"X:\\Python35\\lib\\site-packages\\pytz\\__init__.py\", line 188, in _unmunge_zone\r\n    return zone.replace('_plus_', '+').replace('_minus_', '-')\r\nTypeError: a bytes-like object is required, not 'str'\r\n\r\n======================================================================\r\nERROR: test_deprecations.TestDatetime64Timezone.test_datetime\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"X:\\Python35\\lib\\site-packages\\nose\\case.py\", line 198, in runTest\r\n    self.test(*self.arg)\r\n  File \"X:\\Python35\\lib\\site-packages\\numpy\\testing\\decorators.py\", line 147, in skipper_func\r\n    return f(*args, **kwargs)\r\n  File \"X:\\Python35\\lib\\site-packages\\numpy\\testing\\decorators.py\", line 217, in knownfailer\r\n    return f(*args, **kwargs)\r\n  File \"X:\\Python35\\lib\\site-packages\\numpy\\core\\tests\\test_deprecations.py\", line 746, in test_datetime\r\n    tz = pytz.timezone('US/Eastern')\r\n  File \"X:\\Python35\\lib\\site-packages\\pytz\\__init__.py\", line 172, in timezone\r\n    zone = _unmunge_zone(zone)\r\n  File \"X:\\Python35\\lib\\site-packages\\pytz\\__init__.py\", line 188, in _unmunge_zone\r\n    return zone.replace('_plus_', '+').replace('_minus_', '-')\r\nTypeError: a bytes-like object is required, not 'str'\r\n\r\n======================================================================\r\nERROR: test_log2_special (test_umath.TestLog2)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"X:\\Python35\\lib\\site-packages\\numpy\\core\\tests\\test_umath.py\", line 456, in test_log2_special\r\n    assert_(w[1].category is RuntimeWarning)\r\nIndexError: list index out of range\r\n\r\n======================================================================\r\nFAIL: test_default (test_numeric.TestSeterr)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"X:\\Python35\\lib\\site-packages\\numpy\\core\\tests\\test_numeric.py\", line 393, in test_default\r\n    under='ignore',\r\nAssertionError: {'invalid': 'ignore', 'divide': 'ignore', 'over': 'ignore', 'under': 'ignore'} != {'invalid': 'warn', 'divide': 'warn', 'under': 'ignore', 'over': 'warn'}\r\n- {'divide': 'ignore', 'invalid': 'ignore', 'over': 'ignore', 'under': 'ignore'}\r\n?             ^^ ---               ^^ ---            ^^ ---\r\n\r\n+ {'divide': 'warn', 'invalid': 'warn', 'over': 'warn', 'under': 'ignore'}\r\n?             ^^^                ^^^             ^^^\r\n\r\n\r\n----------------------------------------------------------------------\r\nRan 5766 tests in 107.937s\r\n\r\nFAILED (KNOWNFAIL=8, SKIP=11, errors=3, failures=1)\r\n```\r\n`import numpy;numpy.test()` without `import pandas;pandas.show_version()` passes all tests. Any idea?"}}
{"actor":{"display_login":"cgohlke"}}