Skip to content

Commit

Permalink
Merge pull request #827 from neutrinoceros/tst/dont_capture_stderr
Browse files Browse the repository at this point in the history
TST: avoid capturing stderr in tests using subprocesses
  • Loading branch information
mwcraig authored Apr 11, 2024
2 parents d486ed4 + 995b028 commit 5c7abc7
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 @@ -28,8 +28,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 @@ -46,8 +45,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 5c7abc7

Please sign in to comment.