- Add patch support-python-313.patch:
* Support Python 3.13 by not using unittest.makeSuite. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-xmp-toolkit?expand=0&rev=3
This commit is contained in:
53
support-python-313.patch
Normal file
53
support-python-313.patch
Normal file
@@ -0,0 +1,53 @@
|
||||
From 44722ea1db87a079770a2f2ef883ef44621f6f04 Mon Sep 17 00:00:00 2001
|
||||
From: Rostyslav Lobov <rostislavlobov.k@gmail.com>
|
||||
Date: Wed, 10 Apr 2024 13:17:10 -0400
|
||||
Subject: [PATCH 5/9] tests: remove deprecated/unneeded stuff
|
||||
|
||||
---
|
||||
test/test_core_unit.py | 11 -----------
|
||||
test/test_files.py | 10 ----------
|
||||
2 files changed, 21 deletions(-)
|
||||
|
||||
Index: python-xmp-toolkit-2.0.2/test/test_core_unit.py
|
||||
===================================================================
|
||||
--- python-xmp-toolkit-2.0.2.orig/test/test_core_unit.py
|
||||
+++ python-xmp-toolkit-2.0.2/test/test_core_unit.py
|
||||
@@ -620,17 +620,6 @@ class UnicodeTestCase(unittest.TestCase)
|
||||
# It's a no-op in 3.x.
|
||||
self.assertTrue(True)
|
||||
|
||||
-def suite():
|
||||
- suite = unittest.TestSuite()
|
||||
- suite.addTest(unittest.makeSuite(XMPMetaTestCase))
|
||||
- suite.addTest(unittest.makeSuite(UtilsTestCase))
|
||||
- return suite
|
||||
-
|
||||
-def test( verbose=2 ):
|
||||
- all_tests = suite()
|
||||
- runner = unittest.TextTestRunner(verbosity=verbose)
|
||||
- result = runner.run(all_tests)
|
||||
- return result, runner
|
||||
|
||||
if __name__ == "__main__":
|
||||
#test()
|
||||
Index: python-xmp-toolkit-2.0.2/test/test_files.py
|
||||
===================================================================
|
||||
--- python-xmp-toolkit-2.0.2.orig/test/test_files.py
|
||||
+++ python-xmp-toolkit-2.0.2/test/test_files.py
|
||||
@@ -384,16 +384,6 @@ class XMPFilesTestCase(unittest.TestCase
|
||||
|
||||
self.assertEqual(prop, "foo")
|
||||
|
||||
-def suite():
|
||||
- the_suite = unittest.TestSuite()
|
||||
- the_suite.addTest(unittest.makeSuite(XMPFilesTestCase))
|
||||
- return the_suite
|
||||
-
|
||||
-def test( verbose=2 ):
|
||||
- all_tests = suite()
|
||||
- runner = unittest.TextTestRunner(verbosity=verbose)
|
||||
- result = runner.run(all_tests)
|
||||
- return result, runner
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
Reference in New Issue
Block a user