remove ResourceLeaked warning in pypy

This commit is contained in:
Vostretsov Nikita 2021-05-25 14:04:41 +00:00
parent 7511d8541e
commit f83d9b8d41
1 changed files with 5 additions and 4 deletions

View File

@ -21,10 +21,11 @@ collect_ignore = [
*_py_files("tests/CrawlerRunner"),
]
for line in open('tests/ignores.txt'):
file_path = line.strip()
if file_path and file_path[0] != '#':
collect_ignore.append(file_path)
with open('tests/ignores.txt') as reader:
for line in reader:
file_path = line.strip()
if file_path and file_path[0] != '#':
collect_ignore.append(file_path)
if not H2_ENABLED:
collect_ignore.extend(