Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[20.01] Rename galaxy.util.logging to galaxy.util.custom_logging #9705

Merged
merged 1 commit into from May 4, 2020

Conversation

mvdbeek
Copy link
Member

@mvdbeek mvdbeek commented May 3, 2020

Naming packages like standard library packages is not a good idea.
These errors just cropped up in #9699 (although I have no idea why this wasn't an error before).

==================================== ERRORS ====================================

________________________ ERROR collecting test session _________________________

.tox/py27-unit/lib/python2.7/site-packages/py/_path/common.py:383: in visit

    for x in Visitor(fil, rec, ignore, bf, sort).gen(self):

.tox/py27-unit/lib/python2.7/site-packages/py/_path/common.py:425: in gen

    if p.check(dir=1) and (rec is None or rec(p))])

.tox/py27-unit/lib/python2.7/site-packages/_pytest/main.py:667: in _recurse

    ihook = self.gethookproxy(dirpath)

.tox/py27-unit/lib/python2.7/site-packages/_pytest/main.py:482: in gethookproxy

    my_conftestmodules = pm._getconftestmodules(fspath)

.tox/py27-unit/lib/python2.7/site-packages/_pytest/config/__init__.py:424: in _getconftestmodules

    mod = self._importconftest(conftestpath.realpath())

.tox/py27-unit/lib/python2.7/site-packages/_pytest/config/__init__.py:463: in _importconftest

    raise ConftestImportFailure(conftestpath, sys.exc_info())

E   ConftestImportFailure: (local('/home/circleci/repo/test/unit/queue_worker/conftest.py'), (<type 'exceptions.AttributeError'>, AttributeError("'module' object has no attribute 'getLogger'",), <traceback object at 0x7fabd96b7eb0>))

----- generated html file: file:///home/circleci/repo/run_unit_tests.html ------

!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!

=========================== 1 error in 1.83 seconds ============================

@mvdbeek mvdbeek requested a review from nsoranzo May 3, 2020 19:28
Otherwise there may be import issues:
```
==================================== ERRORS ====================================

________________________ ERROR collecting test session _________________________

.tox/py27-unit/lib/python2.7/site-packages/py/_path/common.py:383: in visit

    for x in Visitor(fil, rec, ignore, bf, sort).gen(self):

.tox/py27-unit/lib/python2.7/site-packages/py/_path/common.py:425: in gen

    if p.check(dir=1) and (rec is None or rec(p))])

.tox/py27-unit/lib/python2.7/site-packages/_pytest/main.py:667: in _recurse

    ihook = self.gethookproxy(dirpath)

.tox/py27-unit/lib/python2.7/site-packages/_pytest/main.py:482: in gethookproxy

    my_conftestmodules = pm._getconftestmodules(fspath)

.tox/py27-unit/lib/python2.7/site-packages/_pytest/config/__init__.py:424: in _getconftestmodules

    mod = self._importconftest(conftestpath.realpath())

.tox/py27-unit/lib/python2.7/site-packages/_pytest/config/__init__.py:463: in _importconftest

    raise ConftestImportFailure(conftestpath, sys.exc_info())

E   ConftestImportFailure: (local('/home/circleci/repo/test/unit/queue_worker/conftest.py'), (<type 'exceptions.AttributeError'>, AttributeError("'module' object has no attribute 'getLogger'",), <traceback object at 0x7fabd96b7eb0>))

----- generated html file: file:///home/circleci/repo/run_unit_tests.html ------

!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!

=========================== 1 error in 1.83 seconds ============================

```
@nsoranzo nsoranzo merged commit 46bd18d into galaxyproject:release_20.01 May 4, 2020
@nsoranzo nsoranzo deleted the fix_unit_test_error branch May 4, 2020 17:55
@nsoranzo nsoranzo added this to the 20.05 milestone May 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants