mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-05-13 14:36:43 +00:00
silence skipping tests output for python versions that basically can not have the modules
This commit is contained in:
parent
a3d181c973
commit
0265df854e
1 changed files with 4 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue