Sophie

Sophie

distrib > Mageia > cauldron > x86_64 > media > core-release-src > by-pkgid > f8adca406866464abfdae1261a38f052 > files > 1

python-nose2-0.14.1-1.mga10.src.rpm

From 0d9ed292c29dbcdeb1164eb359f68dc15ce17cd9 Mon Sep 17 00:00:00 2001
From: "Benjamin A. Beasley" <code@musicinmybrain.net>
Date: Thu, 26 Oct 2023 10:52:25 -0400
Subject: [PATCH] Downstream-only: skip test_skip_reason_in_message

The message format has changed in Python 3.12.1 and in pre-releases of
Python 3.13.
---
 nose2/tests/functional/test_junitxml_plugin.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/nose2/tests/functional/test_junitxml_plugin.py b/nose2/tests/functional/test_junitxml_plugin.py
index acd175d..3fec9c3 100644
--- a/nose2/tests/functional/test_junitxml_plugin.py
+++ b/nose2/tests/functional/test_junitxml_plugin.py
@@ -1,4 +1,6 @@
 import os
+import sys
+import unittest
 from xml.etree import ElementTree as ET
 
 from nose2.tests._common import FunctionalTestCase, TestCase, _method_name, support_file
@@ -154,6 +156,7 @@ class JunitXmlPluginFunctionalTest(FunctionalTestCase, TestCase):
         self.assertEqual(prop.get("name"), "PROPERTY_NAME")
         self.assertEqual(prop.get("value"), "PROPERTY_VALUE")
 
+    @unittest.skipIf(sys.version_info >= (3, 12, 1), "Issue #588")
     def test_skip_reason_in_message(self):
         junit_report, proc = self.run_with_junitxml_loaded(
             ("scenario", "junitxml", "skip_reason"), "--junit-xml"
-- 
2.43.0