Lintian ReportsBETA

Tag versions

Wpackage-contains-python-tests-in-global-namespace

The tag is present in Lintian version 2.113.26. That is the most recent version we know about.

We use semantic versions. The patch number is a commit step indicator relative to the 2.113.0 release tag in our Git repository.

You can find the detection logic for this version at commit 43a81d7. For merge requests, please use the latest version in the Lintian check files/names.

Visibility: warning

This package appears to contain Python test files such as test_foo.py or test_foo/ in the global module namespace.

Whilst the tests may be useful in the binary package, it is probably a mistake to pollute the "top-level" namespace in this way.

Please install them to a subdirectory of the module being tested instead or simply omit from the binary package entirely.

The following 8 source packages in the archive triggered the tag 16 times (in any Lintian version).

We found 10 overrides. The tag performed 38% of the time.