Skip to content

Commit

Permalink
build: disable ALLOW_UNICODE option flag for doctest
Browse files Browse the repository at this point in the history
This change removes the `ALLOW_UNICODE` option flag for doctests as this
accommodated the use of Unicode literals in docstrings, which has since all
been eliminated.

Docstrings should not use Unicode literals (i.e. `u'Litéral'`) as they are redundant
in Python 3 given all strings are Unicode strings.

Related issues:
- Closes <#2378>

Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
  • Loading branch information
ajnelson-nist authored Sep 26, 2023
1 parent cc7350f commit b0392f0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@ addopts = [
"--doctest-glob=docs/*.rst",
"--strict-markers",
]
doctest_optionflags = "ALLOW_UNICODE"
filterwarnings = [
# The below warning is a consequence of how pytest doctest detects mocks and how DefinedNamespace behaves when an undefined attribute is being accessed.
"ignore:Code. pytest_mock_example_attribute_that_shouldnt_exist is not defined in namespace .*:UserWarning",
Expand Down

0 comments on commit b0392f0

Please sign in to comment.