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,6 +175,7 @@ try:
|
||||||
super(SMTPActionTest, self).tearDown()
|
super(SMTPActionTest, self).tearDown()
|
||||||
|
|
||||||
except ImportError as e:
|
except ImportError as e:
|
||||||
|
if tuple(sys.version_info) <= (3, 11):
|
||||||
print("I: Skipping smtp tests: %s" % e)
|
print("I: Skipping smtp tests: %s" % e)
|
||||||
|
|
||||||
|
|
||||||
|
@ -309,4 +310,5 @@ try:
|
||||||
super(AIOSMTPActionTest, self).tearDown()
|
super(AIOSMTPActionTest, self).tearDown()
|
||||||
|
|
||||||
except ImportError as e:
|
except ImportError as e:
|
||||||
|
if tuple(sys.version_info) >= (3, 10):
|
||||||
print("I: Skipping SSL smtp tests: %s" % e)
|
print("I: Skipping SSL smtp tests: %s" % e)
|
||||||
|
|
Loading…
Reference in New Issue