Skip to content

Write some tests that enforce that disabled_error_codes and enabled_error_codes do not affect program behavior#20396

Open
wyattscarpenter wants to merge 1 commit intopython:masterfrom
wyattscarpenter:dee
Open

Write some tests that enforce that disabled_error_codes and enabled_error_codes do not affect program behavior#20396
wyattscarpenter wants to merge 1 commit intopython:masterfrom
wyattscarpenter:dee

Conversation

@wyattscarpenter
Copy link
Copy Markdown
Contributor

While disabled_error_codes and enabled_error_codes are internal fields in the options class, they cannot be set externally, unlike their peers. These tests ensure this intended behavior is maintained. Closes #12394, which failed to understand this.

Some of these tests have to be in cmdline.test because they error so badly that they break check-flags.test (they exit with 2 and print to stderr instead, which apparently check-flags.test can't handle; cf #19554).

…rror_codes do not affect program behavior

While disabled_error_codes and enabled_error_codes are internal fields in the options class, they cannot be set externally, unlike their peers. These tests ensure this intended behavior is maintained. Closes python#12394, which failed to understand this.

Some of these tests have to be in cmdline.test because they error so badly that they break check-flags.test (they exit with 2 and print to stderr instead, which apparently check-flags.test can't handle; cf python#19554).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(📚) Document disabled_error_codes

2 participants