From a580153da9ab84890a131fe140d3b513ed2a2a4d Mon Sep 17 00:00:00 2001 From: hakril Date: Mon, 20 May 2024 17:36:40 +0200 Subject: [PATCH] More encoding tests --- tests/test_process.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_process.py b/tests/test_process.py index c49341f..5570e4a 100644 --- a/tests/test_process.py +++ b/tests/test_process.py @@ -520,6 +520,7 @@ class TestProcessWithCheckGarbage(object): p = windows.utils.create_process(target_programe, dwCreationFlags=gdef.CREATE_NEW_CONSOLE) try: assert windows.system.processes + print(sys.stdout.encoding) print(windows.system.processes) # Check for encoding error in __repr__ of WinProcess finally: p.exit() @@ -527,3 +528,6 @@ class TestProcessWithCheckGarbage(object): time.sleep(0.5) # Fail on Azure CI of no sleep os.unlink(target_programe) + +def test_testouille(): + assert sys.stdout.encoding == "BADVALUE" \ No newline at end of file