Skip to content

Commit

Permalink
Make chaquopy.pyc print errors on stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsmith committed Jul 7, 2024
1 parent 1505835 commit 3b2e3f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion product/gradle-plugin/src/main/python/chaquopy/pyc.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def main():
print("Warning:", message)
sys.exit(0)
else:
print(message)
print(message, file=sys.stderr)
sys.exit(1)

if args.quiet:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ def test_magic_error(self):
run = self.RunGradle("base", "Pyc/magic_error",
env={"buildpython_version": NON_DEFAULT_PYTHON_VERSION},
succeed=False)
self.assertInStdout(self.FAILED + self.INCOMPATIBLE + self.SEE, run, re=True)
self.assertInStderr(self.FAILED + self.INCOMPATIBLE + self.SEE, run, re=True)
self.assertInStderr(BuildPython.FAILED, run, re=True)


Expand Down

0 comments on commit 3b2e3f7

Please sign in to comment.