Skip to content

Commit f16859b

Browse files
Fix markup.
1 parent a351699 commit f16859b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Lib/test/libregrtest/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def _test_audit_hook(name, args):
105105

106106
# Ensure there's a non-ASCII character in env vars at all times to force
107107
# tests consider this case. See BPO-44647 for details.
108-
if TESTFN_UNDECODABLE and hasattr(os, 'environb'):
108+
if TESTFN_UNDECODABLE and os.supports_bytes_environ:
109109
os.environb.setdefault(UNICODE_GUARD_ENV.encode(), TESTFN_UNDECODABLE)
110110
elif FS_NONASCII:
111111
os.environ.setdefault(UNICODE_GUARD_ENV, FS_NONASCII)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Fix initialization of :env:`PYTHONREGRTEST_UNICODE_GUARD` which prevented
1+
Fix initialization of :envvar:`PYTHONREGRTEST_UNICODE_GUARD` which prevented
22
running regression tests on non-UTF-8 locale.

0 commit comments

Comments
 (0)