Skip to content

Commit fa43777

Browse files
committed
The tests require unicode, so set LANG and LC_ALL to C.UTF-8
1 parent 4364fc9 commit fa43777

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bpython/test/test_curtsies_painting.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ def setup_config():
2929
class ClearEnviron(TestCase):
3030
@classmethod
3131
def setUpClass(cls):
32-
cls.mock_environ = mock.patch.dict("os.environ", {}, clear=True)
32+
cls.mock_environ = mock.patch.dict(
33+
"os.environ", {"LC_LANG": "C.UTF-8", "LANG": "C.UTF-8"}, clear=True
34+
)
3335
cls.mock_environ.start()
3436
TestCase.setUpClass()
3537

0 commit comments

Comments
 (0)