|
From: <gr...@us...> - 2019-08-20 12:26:23
|
Revision: 8325
http://sourceforge.net/p/docutils/code/8325
Author: grubert
Date: 2019-08-20 12:26:20 +0000 (Tue, 20 Aug 2019)
Log Message:
-----------
log
Modified Paths:
--------------
trunk/docutils/HISTORY.txt
trunk/docutils/test/test_functional.py
Modified: trunk/docutils/HISTORY.txt
===================================================================
--- trunk/docutils/HISTORY.txt 2019-08-20 12:24:58 UTC (rev 8324)
+++ trunk/docutils/HISTORY.txt 2019-08-20 12:26:20 UTC (rev 8325)
@@ -46,6 +46,10 @@
- Apply patch #157: avoid test failure because of a ``ResourceWarning``.
+* docutils/writers/odf_odt/__init__.py:
+
+ - Fix: ElementTree.getchildren deprecated warning
+
* test/test_writers/test_odt.py:
- Fix [ 359 ]: Test suite failes on Python 3.8. odt xml sorting.
Modified: trunk/docutils/test/test_functional.py
===================================================================
--- trunk/docutils/test/test_functional.py 2019-08-20 12:24:58 UTC (rev 8324)
+++ trunk/docutils/test/test_functional.py 2019-08-20 12:26:20 UTC (rev 8325)
@@ -126,9 +126,11 @@
namespace['settings_overrides'] = {'_disable_config': True}
# Read the variables set in the default config file and in
# the current config file into namespace:
- defaultpy = open(join_path(datadir, 'tests', '_default.py')).read()
- exec(defaultpy, namespace)
- exec(open(self.configfile).read(), namespace)
+ with open(join_path(datadir, 'tests', '_default.py')) as f:
+ defaultpy = f.read()
+ exec(defaultpy, namespace)
+ with open(self.configfile) as f:
+ exec(f.read(), namespace)
# Check for required settings:
assert 'test_source' in namespace,\
"No 'test_source' supplied in " + self.configfile
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|