Skip to content

Commit

Permalink
Fix ResourceWarning: unclosed file in setup.py
Browse files Browse the repository at this point in the history
Signed-off-by: Mickaël Schoentgen <contact@tiger-222.fr>
  • Loading branch information
BoboTiG authored and sallner committed May 17, 2019
1 parent 0544a01 commit 91ecb99
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions setup.py
@@ -1,13 +1,16 @@
from setuptools import setup

with open('README.rst') as readme, open('CHANGES.rst') as changelog:
long_description = (
'.. contents::\n\n' +
readme.read() +
'\n\n' +
changelog.read())

setup(name='pytest-rerunfailures',
version='7.1.dev0',
description='pytest plugin to re-run tests to eliminate flaky failures',
long_description=(
'.. contents::\n\n' +
open('README.rst').read() +
'\n\n' +
open('CHANGES.rst').read()),
long_description=long_description,
author='Leah Klearman',
author_email='lklrmn@gmail.com',
url='https://github.com/pytest-dev/pytest-rerunfailures',
Expand Down

0 comments on commit 91ecb99

Please sign in to comment.