Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
krahets committed Nov 2, 2023
1 parent ed9a4c7 commit cedc863
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion codes/python/test_all.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import os
import glob
import subprocess

env = os.environ.copy()
env["PYTHONIOENCODING"] = "utf-8"

if __name__ == "__main__":
# find source code files
src_paths = sorted(glob.glob("codes/python/chapter_*/*.py"))
Expand All @@ -13,7 +17,7 @@
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
text=True,
encoding="utf-8",
env=env,
)
# Wait for the process to complete, and get the output and error messages
stdout, stderr = process.communicate()
Expand Down

0 comments on commit cedc863

Please sign in to comment.