diff options
| author | grubert <grubert@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2019-08-20 14:01:36 +0000 |
|---|---|---|
| committer | grubert <grubert@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2019-08-20 14:01:36 +0000 |
| commit | 75827127b671c6bd7949f022cc295fb74e77c99d (patch) | |
| tree | 5e1c629116a50c5d257f32893bdc2623155dddb0 /docutils/test/functional/tests/footnotes_html5.py | |
| parent | 1028c9fdf678c20fa1899da4b421d2c25c02b166 (diff) | |
| download | docutils-75827127b671c6bd7949f022cc295fb74e77c99d.tar.gz | |
Fix: ResourceWarning: unclosed file python3.8 (partial bug 377)
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8327 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/test/functional/tests/footnotes_html5.py')
| -rw-r--r-- | docutils/test/functional/tests/footnotes_html5.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docutils/test/functional/tests/footnotes_html5.py b/docutils/test/functional/tests/footnotes_html5.py index 762799394..598233e35 100644 --- a/docutils/test/functional/tests/footnotes_html5.py +++ b/docutils/test/functional/tests/footnotes_html5.py @@ -1,4 +1,5 @@ -exec(open('functional/tests/_standalone_rst_defaults.py').read()) +with open('functional/tests/_standalone_rst_defaults.py') as _f: + exec(_f.read()) # Source and destination file names. test_source = "footnotes.txt" |
