Skip to content

Commit

Permalink
Fixes console encoding around input() test.
Browse files Browse the repository at this point in the history
  • Loading branch information
zooba committed Aug 20, 2018
1 parent c051268 commit 8685953
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Python/Tests/DebuggerTests/DebuggerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2202,7 +2202,10 @@ public async Task TestInputFunction() {

var process = processRunInfo.Process;

var oldEncoding = Console.InputEncoding;
try {
Console.InputEncoding = Encoding.ASCII;

await process.StartAsync();

AssertWaited(processRunInfo.ProcessLoaded);
Expand All @@ -2211,6 +2214,7 @@ public async Task TestInputFunction() {
Thread.Sleep(1000);
process.SendStringToStdInput("fob\n");
} finally {
Console.InputEncoding = oldEncoding;
WaitForExit(process);
}

Expand Down

0 comments on commit 8685953

Please sign in to comment.