Lintian ReportsBETA

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

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

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.

Visibility: warning

Check: files/names

The following 7 source packages in the archive triggered the tag 15 times.

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