silence skipping tests output for python versions that basically can not have the modules

pull/3120/merge
sebres 2025-08-23 22:00:03 +02:00
parent a3d181c973
commit 0265df854e
1 changed files with 4 additions and 2 deletions

View File

@ -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)