forked from pool/python-iniparse
Accepting request 1134191 from home:dgarcia:branches:devel:languages:python:Factory
- Fix tests with python 3.11.7 - Add patch python3117.patch (gh#candlepin/python-iniparse#29) and refresh patch python311-compat.patch OBS-URL: https://build.opensuse.org/request/show/1134191 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-iniparse?expand=0&rev=39
This commit is contained in:
18
python3117.patch
Normal file
18
python3117.patch
Normal file
@@ -0,0 +1,18 @@
|
||||
Index: iniparse-0.5/tests/test_compat.py
|
||||
===================================================================
|
||||
--- iniparse-0.5.orig/tests/test_compat.py
|
||||
+++ iniparse-0.5/tests/test_compat.py
|
||||
@@ -1,3 +1,4 @@
|
||||
+import os
|
||||
from iniparse import compat as ConfigParser
|
||||
from io import StringIO
|
||||
try:
|
||||
@@ -263,6 +264,8 @@ class TestCaseBase(unittest.TestCase):
|
||||
|
||||
def test_read_returns_file_list(self):
|
||||
file1 = test_support.findfile("cfgparser.1")
|
||||
+ if not os.path.exists(file1):
|
||||
+ file1 = test_support.findfile("configdata/cfgparser.1")
|
||||
# check when we pass a mix of readable and non-readable files:
|
||||
cf = self.newconfig()
|
||||
parsed_files = cf.read([file1, "nonexistant-file"])
|
||||
Reference in New Issue
Block a user