GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Import error in trace unit tests · Issue #3743 · googleapis/google-cloud-python

Import error in trace unit tests #3743

New issue
Copy link
New issue
Copy link
Closed
Closed
Import error in trace unit tests#3743
Copy link
Assignees
liyanhui1228
Labels
api: cloudtraceIssues related to the Cloud Trace API.priority: p2Moderately-important priority. Fix may not be included in next release.status: investigatingThe issue is under investigation, which is determined to be non-trivial.

Description

@duggelz
duggelz
opened on Aug 7, 2017
Issue body actions

It looks like trace/ needs to be updated to match changes elsewhere. Also, trace/nox.py seems to be missing some recent changes made to the other nox.py files.

To reproduce:

$ docker run -it --entrypoint=/bin/bash gcr.io/google-appengine/python:latest
$ git clone --depth 1 https://github.com/GoogleCloudPlatform/google-cloud-python.git
$ pip install --upgrade nox-automation
$ cd /app/google-cloud-python
$ nox -f trace/nox.py -e "unit_tests(python_version='3.4')"

Output:

nox > Running session unit_tests(python_version='3.4')
nox > virtualenv /home/vmagent/app/google-cloud-python/.nox/unit_tests-python_version-3-4 -p python3.4
nox > chdir /home/vmagent/app/google-cloud-python/trace
nox > pip install --upgrade mock pytest pytest-cov ../core/
nox > pip install --upgrade -e .
nox > py.test --quiet --cov=google.cloud.trace --cov-append --cov-config=.coveragerc --cov-report= --cov-fail-under=97 tests/
Coverage.py warning: Module google.cloud.trace was never imported. (module-not-imported)



Required test coverage of 97% reached. Total coverage: 100.00%
========================================================================= ERRORS ==========================================================================
_____________________________________________________ ERROR collecting trace/tests/unit/test__gax.py ______________________________________________________
ImportError while importing test module '/home/vmagent/app/google-cloud-python/trace/tests/unit/test__gax.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/unit/test__gax.py:19: in <module>
    from google.cloud._testing import _GAXBaseAPI
E   ImportError: No module named 'google.cloud._testing'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1 error in 0.82 seconds
nox > Command py.test --quiet --cov=google.cloud.trace --cov-append --cov-config=.coveragerc --cov-report= --cov-fail-under=97 tests/ failed with exit code 2
nox > Session unit_tests(python_version='3.4') failed. :(

Activity

  1. duggelz
    assigned
    liyanhui1228
    on Aug 7, 2017
  2. lukesneeringer commented on Aug 7, 2017

    @lukesneeringer
    lukesneeringer
    on Aug 7, 2017
    Contributor
    More actions

    Is this the manual code or the autogen, Doug?

  3. lukesneeringer
    added
    api: cloudtraceIssues related to the Cloud Trace API.
    status: investigatingThe issue is under investigation, which is determined to be non-trivial.
    priority: p2Moderately-important priority. Fix may not be included in next release.
    on Aug 7, 2017
  4. liyanhui1228 commented on Aug 7, 2017

    @liyanhui1228
    liyanhui1228
    on Aug 7, 2017
    Contributor
    More actions

    It's the manual code for unit test, I'm fixing it.

  5. lukesneeringer commented on Aug 7, 2017

    @lukesneeringer
    lukesneeringer
    on Aug 7, 2017
    Contributor
    More actions

    Thanks Angela! :-)

  6. liyanhui1228 commented on Aug 7, 2017

    @liyanhui1228
    liyanhui1228
    on Aug 7, 2017
    Contributor
    More actions

    Fixed via #3749 , closing now.

  7. liyanhui1228
    closed this as completedon Aug 7, 2017
  8. vchudnov-g
    added a commit that references this issue on Sep 20, 2023

    chore: some lint fixes [(#3743)](GoogleCloudPlatform/python-docs-samp…

    6c58995
  9. parthea
    added a commit that references this issue on Sep 22, 2023

    chore: move samples from python-docs-sample (#66)

    d3dcbbc
  10. ohmayr
    added a commit that references this issue on Mar 25, 2026

    build(deps): Bump urllib3 from 1.26.19 to 2.6.3 in /.kokoro (#461)

    d7ffa79
  11. parthea
    added a commit that references this issue on Apr 27, 2026

    chore(deps): bump urllib3 from 2.5.0 to 2.6.3 in /packages/sqlalchemy…

    5c7cb1e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @liyanhui1228
    liyanhui1228

Labels

api: cloudtraceIssues related to the Cloud Trace API.priority: p2Moderately-important priority. Fix may not be included in next release.status: investigatingThe issue is under investigation, which is determined to be non-trivial.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.