Skip to content

Commit

Permalink
tests: fix test_cyrillic test for python 2
Browse files Browse the repository at this point in the history
  • Loading branch information
nariman committed Feb 27, 2024
1 parent d2234e1 commit 37ede8e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,13 @@ fn test_cyrillic() {
return;
}
}

// Identifiers with characters outside the ASCII range are supported from Python 3
let runner = TestRunner::new(Config::default(), "./tests/scripts/longsleep.py");
if runner.spy.version.major == 2 {
return;
}

let mut runner = TestRunner::new(Config::default(), "./tests/scripts/cyrillic.py");

let traces = runner.spy.get_stack_traces().unwrap();
Expand Down
2 changes: 1 addition & 1 deletion tests/scripts/cyrillic.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ def кириллица(seconds):
time.sleep(seconds)

if __name__ == "__main__":
кириллица(10)
кириллица(100)

0 comments on commit 37ede8e

Please sign in to comment.