summaryrefslogtreecommitdiffstats
path: root/testsuite/Testsrc/test_code_checks.py
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander.sulfrian@fu-berlin.de>2017-03-22 20:20:40 +0100
committerAlexander Sulfrian <alexander.sulfrian@fu-berlin.de>2017-03-29 13:29:58 +0200
commit73045f451a8cdfb0c48e87e736c3b6a28b22f6fb (patch)
tree403d526f48a6ed7bf914db2393dc77cf8dde6506 /testsuite/Testsrc/test_code_checks.py
parentd5f24fed13339d01424c4f7748c239ae33e0b606 (diff)
downloadbcfg2-73045f451a8cdfb0c48e87e736c3b6a28b22f6fb.tar.gz
bcfg2-73045f451a8cdfb0c48e87e736c3b6a28b22f6fb.tar.bz2
bcfg2-73045f451a8cdfb0c48e87e736c3b6a28b22f6fb.zip
testsuite: Server requires Python2.6
We do not want to run the test for the Server with Python2.4 and Python2.5 and use the nose-exclude plugin to disable the Server tests based on the directory. We do not even want to import the modules of the Server, as it might not be possible anymore (missing dependencies or invalid syntax). nose-exclude-0.2 breaks compatibility with Python2.5 and below (it is using the "with open(..):" syntax), so we have to stick to the last version below.
Diffstat (limited to 'testsuite/Testsrc/test_code_checks.py')
-rw-r--r--testsuite/Testsrc/test_code_checks.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/testsuite/Testsrc/test_code_checks.py b/testsuite/Testsrc/test_code_checks.py
index c26d8c139..44c4633a7 100644
--- a/testsuite/Testsrc/test_code_checks.py
+++ b/testsuite/Testsrc/test_code_checks.py
@@ -79,9 +79,10 @@ no_checks = {
"lib/Bcfg2/Server/migrations": ["*.py"],
"lib/Bcfg2/Server/south_migrations": ["*.py"],
}
+
if sys.version_info < (2, 6):
- # multiprocessing core requires py2.6
- no_checks['lib/Bcfg2/Server'] = ['MultiprocessingCore.py']
+ # Server requires python 2.6
+ no_checks['lib/Bcfg2'] = ['Server']
try:
any