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

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

Copy link
Copy Markdown
Contributor

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

python-cla-bot Bot commented May 14, 2026

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

@Ar-maan05

Copy link
Copy Markdown
Contributor Author

Friendly ping! Let me know if any changes are needed.

@github-actions

Copy link
Copy Markdown

This PR is stale because it has been open for 90 days with no activity.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label Aug 30, 2026
@Ar-maan05
Ar-maan05 force-pushed the gh-131178-quopri-cli-tests branch from eb8621c to f8fa374 Compare August 31, 2026 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review stale Stale PR or inactive for long period of time. tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant