1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
Description: skip some tests for Python < 3.12
Author: Martin <debacle@debian.org>
Origin: vendor
Bug-Debian: https://bugs.debian.org/1040057
Last-Update: 2023-10-12
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
@@ -2,6 +2,11 @@
from slixmpp.test import SlixTest
+import sys
+at_least_3_12 = (sys.version_info.major, sys.version_info.minor) < (3, 12)
+description = "skipped for Python < 3.12, because of #1040057"
+
+
class TestErrorStanzas(SlixTest):
def setUp(self):
@@ -9,6 +14,7 @@
self.stream_start()
self.stream_close()
+ @unittest.skipIf(at_least_3_12, description)
def testSetup(self):
"""Test setting initial values in error stanza."""
msg = self.Message()
@@ -21,6 +27,7 @@
</message>
""")
+ @unittest.skipIf(at_least_3_12, description)
def testCondition(self):
"""Test modifying the error condition."""
msg = self.Message()
@@ -46,6 +53,7 @@
</message>
""")
+ @unittest.skipIf(at_least_3_12, description)
def testDelCondition(self):
"""Test that deleting error conditions doesn't remove extra elements."""
msg = self.Message()
@@ -62,6 +70,7 @@
</message>
""", use_values=False)
+ @unittest.skipIf(at_least_3_12, description)
def testDelText(self):
"""Test deleting the text of an error."""
msg = self.Message()
|