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

bigquery.datalab-migration.samples_test: test_datalab_query_magic_results_variable failed #3658

Closed
flaky-bot bot opened this issue May 1, 2020 · 1 comment · Fixed by #3667
Closed
Assignees
Labels
api: bigquery Issues related to the BigQuery 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

@flaky-bot
Copy link

flaky-bot bot commented May 1, 2020

This test failed!

To configure my behavior, see the Build Cop Bot documentation.

If I'm commenting on this issue too often, add the buildcop: quiet label and
I will stop commenting.


commit: ca6200a
buildURL: Build Status, Sponge
status: failed

@flaky-bot flaky-bot bot added buildcop: issue 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. labels May 1, 2020
@tmatsuo tmatsuo assigned tmatsuo and unassigned leahecole May 1, 2020
@tmatsuo tmatsuo added the api: bigquery Issues related to the BigQuery API. label May 1, 2020
@tmatsuo
Copy link
Contributor

tmatsuo commented May 1, 2020

Failing only with Python 3.8.

From the log:

__________________ test_datalab_query_magic_results_variable ___________________
Traceback (most recent call last):
  File "/tmpfs/src/github/python-docs-samples/bigquery/datalab-migration/samples_test.py", line 132, in test_datalab_query_magic_results_variable
    assert variable_name in ip.user_ns  # verify that variable exists
AssertionError: assert 'my_variable' in {'In': [''], 'Out': {1:               word  count\n0   correspondence      1\n1        esteeming      1\n2         wanton...XLIV      1\n97          CXLIII      1\n98        overturn      1\n99            LVII      1\n\n[100 rows x 2 columns], ...}
 +  where {'In': [''], 'Out': {1:               word  count\n0   correspondence      1\n1        esteeming      1\n2         wanton...XLIV      1\n97          CXLIII      1\n98        overturn      1\n99            LVII      1\n\n[100 rows x 2 columns], ...} = <IPython.terminal.interactiveshell.TerminalInteractiveShell object at 0x7fcdc06a4dc0>.user_ns
----------------------------- Captured stdout call -----------------------------
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
/usr/local/lib/python3.8/codeop.py in __call__(self, source, filename, symbol)
    131 
    132     def __call__(self, source, filename, symbol):
--> 133         codeob = compile(source, filename, symbol, self.flags, 1)
    134         for feature in _features:
    135             if codeob.co_flags & feature.compiler_flag:

TypeError: required field "type_ignores" missing from Module

@tmatsuo tmatsuo assigned shollyman and unassigned tmatsuo May 1, 2020
tmatsuo pushed a commit that referenced this issue May 1, 2020
…3667)

Fixes: #3658
Fixes: #3659
Fixes: #3660

Co-authored-by: Takashi Matsuo <tmatsuo@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the BigQuery 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

Successfully merging a pull request may close this issue.

3 participants