Skip to content
This repository was archived by the owner on May 16, 2026. It is now read-only.
This repository was archived by the owner on May 16, 2026. It is now read-only.

compliance tests not running with pytest >= 7.0.0 #413

Closed

Description

@tswast

For some reason when the latest pytest is installed, I get

(compliance-3-8) (base) ➜  python-bigquery-sqlalchemy git:(tswast-prerelease) ✗ py.test -vv --junitxml=compliance_3.8_sponge_log.xml --reruns=3 --reruns-delay=60 '--only-rerun=403 Exceeded rate limits' '--only-rerun=409 Already Exists' '--only-rerun=404 Not found' '--only-rerun=400 Cannot execute DML over a non-existent table' tests/sqlalchemy_dialect_compliance/test_dialect_compliance.py 
/Users/swast/src/github.com/googleapis/python-bigquery-sqlalchemy/.nox/compliance-3-8/lib/python3.8/site-packages/google/cloud/bigquery/client.py:535: UserWarning: Cannot create BigQuery Storage client, the dependency google-cloud-bigquery-storage is not installed.
  warnings.warn(
====================================================================== test session starts =======================================================================
platform darwin -- Python 3.8.10, pytest-7.0.1, pluggy-1.0.0 -- /Users/swast/src/github.com/googleapis/python-bigquery-sqlalchemy/.nox/compliance-3-8/bin/python
cachedir: .pytest_cache
rootdir: /Users/swast/src/github.com/googleapis/python-bigquery-sqlalchemy, configfile: setup.cfg
plugins: rerunfailures-10.2
collected 0 items                                                                                                                                                

---------------------- generated xml file: /Users/swast/src/github.com/googleapis/python-bigquery-sqlalchemy/compliance_3.8_sponge_log.xml -----------------------
===================================================================== no tests ran in 1.52s =====================================================================

And it fails with exit code 5. https://docs.pytest.org/en/latest/reference/exit-codes.html "No tests were collected"

Activity

  1. self-assigned this
    on Feb 14, 2022
  2. added
    priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    on Feb 14, 2022
  3. tswast commented on Feb 14, 2022

    @tswast
    ContributorAuthor

    This is a known issue with the SQLAlchemy compliance test suite and fixed in 1.4.28 sqlalchemy/sqlalchemy#7436

    Unfortunately, we are stuck on an earlier version for the time being. #385

  4. added
    priority: p3Desirable enhancement or fix. May not be included in next release.
    type: processA process-related concern. May include testing, release, or the like.
    and removed
    priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    on Feb 14, 2022
  5. tswast commented on Feb 14, 2022

    @tswast
    ContributorAuthor

    Have a temporary fix (cap the pytest version) in #401. Will leave this issue open but reclassify it as a clean-up we can do after updating SQLAlchemy version.

  6. chalmerlowe commented on Feb 23, 2023

    @chalmerlowe
    Contributor

    This was cleaned up.
    The limitation based on the sqlalchemy version was eliminated (we now test against versions of sqlachemy > 1.4.28
    This allowed us to remove the limits on pytest and now we are able to run pytest > 7.0.0.
    Closing.

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

Metadata

Metadata

Assignees

Labels

api: bigqueryIssues related to the googleapis/python-bigquery-sqlalchemy API.priority: p3Desirable enhancement or fix. May not be included in next release.type: processA process-related concern. May include testing, release, or the like.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions