From 911eb45557a858416351a0732ae5247ca78acc28 Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Sun, 29 Sep 2013 12:16:50 +1000 Subject: [PATCH] TST pragma: no cover for missing json or for py2.5 json --- fail2ban-testcases | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fail2ban-testcases b/fail2ban-testcases index 7088d068..f4beccb3 100755 --- a/fail2ban-testcases +++ b/fail2ban-testcases @@ -29,7 +29,7 @@ import unittest, logging, sys, time, os if sys.version_info >= (2, 6): import json -else: +else: # pragma: no cover try: import simplejson as json except ImportError: @@ -184,7 +184,7 @@ tests.addTest(unittest.makeSuite(datedetectortestcase.DateDetectorTest)) if json: # Filter Regex tests with sample logs tests.addTest(unittest.makeSuite(samplestestcase.FilterSamplesRegex)) -else: +else: # pragma: no cover print "I: Skipping filter samples testing. No simplejson/json module" #