mirror of https://github.com/fail2ban/fail2ban
silence skipping tests output for python versions that basically can not have the modules
parent
a3d181c973
commit
0265df854e
|
@ -175,7 +175,8 @@ try:
|
|||
super(SMTPActionTest, self).tearDown()
|
||||
|
||||
except ImportError as e:
|
||||
print("I: Skipping smtp tests: %s" % e)
|
||||
if tuple(sys.version_info) <= (3, 11):
|
||||
print("I: Skipping smtp tests: %s" % e)
|
||||
|
||||
|
||||
try:
|
||||
|
@ -309,4 +310,5 @@ try:
|
|||
super(AIOSMTPActionTest, self).tearDown()
|
||||
|
||||
except ImportError as e:
|
||||
print("I: Skipping SSL smtp tests: %s" % e)
|
||||
if tuple(sys.version_info) >= (3, 10):
|
||||
print("I: Skipping SSL smtp tests: %s" % e)
|
||||
|
|
Loading…
Reference in New Issue