Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TST: avoid capturing stderr in tests using subprocesses #827

Merged
merged 1 commit into from
Apr 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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