-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgrade parsimonious for py3.11 support, use python script to run pyt…
…est twice for windows support
- Loading branch information
1 parent
9fe8d4e
commit a6f88c0
Showing
2 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import os | ||
import subprocess | ||
import sys | ||
|
||
env = dict(os.environ) | ||
this_dir = os.path.dirname(__file__) | ||
|
||
env["KLEENEXP_RUST"] = "1" | ||
result_rust = subprocess.call(["pytest", this_dir], env=env) | ||
env["KLEENEXP_RUST"] = "0" | ||
result_python = subprocess.call(["pytest", this_dir], env=env) | ||
sys.exit( | ||
2 * bool(result_rust) + bool(result_python) | ||
) # 0 for neither failed, 3 for both, 2 for rust, 1 for python |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters