Skip to content

Commit 3fc7836

Browse files
committed
Don’t sleep before closing in test
It doesn’t make sense to require a sleep() because real usage of the library will not sleep either.
1 parent 3e0c4b0 commit 3fc7836

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

tests/test_piped.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import os
77
import shutil
88
import sys
9-
import time
109
import pytest
1110
from pathlib import Path
1211
from itertools import cycle
@@ -189,8 +188,6 @@ def test_reader_close(reader, create_large_file):
189188
large_file, "rb", program_settings=program_settings
190189
) as f:
191190
f.readline()
192-
time.sleep(0.2)
193-
# The subprocess should be properly terminated now
194191

195192

196193
def test_invalid_gzip_compression_level(gzip_writer, tmp_path):

0 commit comments

Comments
 (0)