Skip to content

gh-131178: Add tests for quopri command-line interface#149825

Open
Ar-maan05 wants to merge 1 commit into
python:mainfrom
Ar-maan05:gh-131178-quopri-cli-tests
Open

gh-131178: Add tests for quopri command-line interface#149825
Ar-maan05 wants to merge 1 commit into
python:mainfrom
Ar-maan05:gh-131178-quopri-cli-tests

Conversation

@Ar-maan05
Copy link
Copy Markdown

@Ar-maan05 Ar-maan05 commented May 14, 2026

Adds a new CommandLineTest class in Lib/test/test_quopri.py covering behavior that was previously untested:

  • encode/decode with file-argument input
  • -t (quote tabs)
  • explicit - for stdin
  • multiple input files
  • -t and -d are mutually exclusive (exit code 2)
  • unknown short option (exit code 2, usage on stderr)
  • nonexistent file (exit code 1, diagnostic on stderr)

The pre-existing test_scriptencode / test_scriptdecode in QuopriTestCase are left in place.

@bedevere-app bedevere-app Bot added the tests Tests in the Lib/test dir label May 14, 2026
@python-cla-bot
Copy link
Copy Markdown

python-cla-bot Bot commented May 14, 2026

All commit authors signed the Contributor License Agreement.

CLA signed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant