summaryrefslogtreecommitdiffstats
path: root/tags/p/package-contains-python-tests-in-global-namespace.tag
diff options
context:
space:
mode:
Diffstat (limited to 'tags/p/package-contains-python-tests-in-global-namespace.tag')
-rw-r--r--tags/p/package-contains-python-tests-in-global-namespace.tag12
1 files changed, 12 insertions, 0 deletions
diff --git a/tags/p/package-contains-python-tests-in-global-namespace.tag b/tags/p/package-contains-python-tests-in-global-namespace.tag
new file mode 100644
index 0000000..eec3327
--- /dev/null
+++ b/tags/p/package-contains-python-tests-in-global-namespace.tag
@@ -0,0 +1,12 @@
+Tag: package-contains-python-tests-in-global-namespace
+Severity: warning
+Check: files/names
+Explanation: This package appears to contain Python test files such as
+ <code>test&lowbar;foo.py</code> or <code>test&lowbar;foo/</code> 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.