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

This commit is contained in:
sebres
2025-08-23 22:00:03 +02:00
parent a3d181c973
commit 0265df854e

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)