Skip to content

New release soon? #158

@dwt

Description

@dwt

Hi there!

#155 and #157 have both fixed some issues which plage us in python 3.12 (SyntaxWarning is turned into a syntax error in our test suite and cannot really be suppressed in Python as easily. We have this in our test starter script, but it really is bad:

#!/usr/bin/env bash

cd "$(dirname "$0")/.."

# SQLALCHEMY_WARN_20=1 python -W always::DeprecationWarning

run_args=(
    --rm
    vbu-service

    # watch for changes in the container
    watching_testrunner --
    # test execution
    pytest
    --tb=short # Default tracebacks are really long and unwieldy

    ## Warning control
    -W error # convert all warnings into exceptions during test execution

    # needs upstream release - try different SyntaxWarning filter variants
    # https://github.com/ibmdb/python-ibmdbsa/pull/157
    # https://github.com/ibmdb/python-ibmdbsa/pull/155
    # cannot disable SyntaxWarnings via module filter, as they are raised during import
    # and therefore a module is not yet available. Instead the path gets passed,
    # which cannot be filtered for with this command line interface
    # Thus we filter by line number, to at least try to not block SyntaxWarnings from other places
    -W ignore::SyntaxWarning::374
    -W ignore::SyntaxWarning::310
    -W ignore::SyntaxWarning::332
    -W ignore::SyntaxWarning::444
    -W ignore::SyntaxWarning::1018
    -W ignore::SyntaxWarning::1036
    -W ignore::SyntaxWarning::1154
)
docker compose run "${run_args[@]}" "$@"

We soon want to upgrade to python 3.13 and python 3.14 is just around the corner.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions