Skip to content

Commit

Permalink
TST: avoid capturing stderr in tests using subprocesses
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros committed Apr 10, 2024
1 parent 9d32553 commit 995b028
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ccdproc/tests/test_combine_open_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ def test_open_files_combine_no_chunks():
# Make a copy
args = list(common_args)
args.extend(['--open-by', 'combine-nochunk', NUM_FILE_LIMIT])
p = subprocess.run(args=args, stderr=subprocess.PIPE,
cwd=str(subprocess_dir))
p = subprocess.run(args=args, cwd=str(subprocess_dir))
# If we have succeeded the test passes. We are only checking that
# we don't have too many files open.
assert p.returncode == 0
Expand All @@ -50,8 +49,7 @@ def test_open_files_combine_chunks():
# Make a copy
args = list(common_args)
args.extend(['--open-by', 'combine-chunk', NUM_FILE_LIMIT])
p = subprocess.run(args=args, stderr=subprocess.PIPE,
cwd=str(subprocess_dir))
p = subprocess.run(args=args, cwd=str(subprocess_dir))
# If we have succeeded the test passes. We are only checking that
# we don't have too many files open.
assert p.returncode == 0

0 comments on commit 995b028

Please sign in to comment.