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

Pubsub: broken by #6211 #6241

Closed
tseaver opened this issue Oct 17, 2018 · 0 comments
Closed

Pubsub: broken by #6211 #6241

tseaver opened this issue Oct 17, 2018 · 0 comments
Assignees
Labels
api: pubsub Issues related to the Pub/Sub API. priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@tseaver
Copy link
Contributor

tseaver commented Oct 17, 2018

See https://source.cloud.google.com/results/invocations/99e4cfc1-98bf-4301-9191-27e6cac9412a/targets/cloud-devrel%2Fclient-libraries%2Fgoogle-cloud-python%2Fpresubmit%2Fpubsub/log.

__________________________________ test_open ___________________________________

thing = <module 'google.cloud.pubsub_v1.subscriber._protocol' from '/tmpfs/src/github/google-cloud-python/pubsub/google/cloud/pubsub_v1/subscriber/_protocol/__init__.py'>
comp = 'bidi', import_path = 'google.cloud.pubsub_v1.subscriber._protocol.bidi'

    def _dot_lookup(thing, comp, import_path):
        try:
>           return getattr(thing, comp)
E           AttributeError: module 'google.cloud.pubsub_v1.subscriber._protocol' has no attribute 'bidi'
.nox/default/lib/python3.6/site-packages/mock/mock.py:1197: AttributeError

During handling of the above exception, another exception occurred:

args = (), keywargs = {}
extra_args = [<MagicMock name='Heartbeater' spec='Heartbeater' id='140683705172264'>, <MagicMock name='Dispatcher' spec='Dispatcher' id='140683694890848'>, <MagicMock name='Leaser' spec='Leaser' id='140683694889448'>]
entered_patchers = [<mock.mock._patch object at 0x7ff37bea4198>, <mock.mock._patch object at 0x7ff37bea4be0>, <mock.mock._patch object at 0x7ff37bea4cc0>]
exc_info = (<class 'ModuleNotFoundError'>, ModuleNotFoundError("No module named 'google.cloud.pubsub_v1.subscriber._protocol.bidi'",), <traceback object at 0x7ff379ab3808>)
patching = <mock.mock._patch object at 0x7ff37bea4198>
arg = <MagicMock name='Leaser' spec='Leaser' id='140683694889448'>

    @wraps(func)
    def patched(*args, **keywargs):
        extra_args = []
        entered_patchers = []

        exc_info = tuple()
        try:
            for patching in patched.patchings:
>               arg = patching.__enter__()

.nox/default/lib/python3.6/site-packages/mock/mock.py:1297:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.nox/default/lib/python3.6/site-packages/mock/mock.py:1353: in __enter__
    self.target = self.getter()
.nox/default/lib/python3.6/site-packages/mock/mock.py:1523: in <lambda>
    getter = lambda: _importer(target)
.nox/default/lib/python3.6/site-packages/mock/mock.py:1210: in _importer
    thing = _dot_lookup(thing, comp, import_path)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

thing = <module 'google.cloud.pubsub_v1.subscriber._protocol' from '/tmpfs/src/github/google-cloud-python/pubsub/google/cloud/pubsub_v1/subscriber/_protocol/__init__.py'>
comp = 'bidi', import_path = 'google.cloud.pubsub_v1.subscriber._protocol.bidi'

    def _dot_lookup(thing, comp, import_path):
        try:
            return getattr(thing, comp)
        except AttributeError:
>           __import__(import_path)
E           ModuleNotFoundError: No module named 'google.cloud.pubsub_v1.subscriber._protocol.bidi'

.nox/default/lib/python3.6/site-packages/mock/mock.py:1199: ModuleNotFoundError
@tseaver tseaver added type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. api: pubsub Issues related to the Pub/Sub API. priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. labels Oct 17, 2018
tseaver added a commit that referenced this issue Oct 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: pubsub Issues related to the Pub/Sub API. priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

2 participants