diff options
Diffstat (limited to 'tests/functional/u/unspecified_encoding_py38.py')
-rw-r--r-- | tests/functional/u/unspecified_encoding_py38.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/functional/u/unspecified_encoding_py38.py b/tests/functional/u/unspecified_encoding_py38.py index 1b3ae3795..8f143474b 100644 --- a/tests/functional/u/unspecified_encoding_py38.py +++ b/tests/functional/u/unspecified_encoding_py38.py @@ -72,3 +72,11 @@ LOCALE_ENCODING = None Path(FILENAME).write_text("string") # [unspecified-encoding] Path(FILENAME).write_text("string", encoding=None) # [unspecified-encoding] Path(FILENAME).write_text("string", encoding=LOCALE_ENCODING) # [unspecified-encoding] + +LOCALE_ENCODING = locale.getlocale()[1] +Path(FILENAME).open("w+b") +Path(FILENAME).open() # [unspecified-encoding] +Path(FILENAME).open("wt") # [unspecified-encoding] +Path(FILENAME).open("w+") # [unspecified-encoding] +Path(FILENAME).open("w", encoding=None) # [unspecified-encoding] +Path(FILENAME).open("w", encoding=LOCALE_ENCODING) |