diff options
-rw-r--r-- | examples/py/bin.py | 2 | ||||
-rwxr-xr-x | src/test/shell/bazel/bazel_example_test.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/py/bin.py b/examples/py/bin.py index 53e917e491..f4a6666ddd 100644 --- a/examples/py/bin.py +++ b/examples/py/bin.py @@ -1,3 +1,3 @@ from examples.py import lib -print "Fib(5)=%d" % lib.Fib(5) +print("Fib(5)=%d" % lib.Fib(5)) diff --git a/src/test/shell/bazel/bazel_example_test.sh b/src/test/shell/bazel/bazel_example_test.sh index 9eae7dfba8..4275cb7de8 100755 --- a/src/test/shell/bazel/bazel_example_test.sh +++ b/src/test/shell/bazel/bazel_example_test.sh @@ -117,7 +117,7 @@ function test_python() { expect_log "Fib(5)=8" # Mutate //examples/py:bin so that it needs to build again. - echo "print 'Hello'" > ./examples/py/bin.py + echo "print('Hello')" > ./examples/py/bin.py # Ensure that we can rebuild //examples/py::bin without error. assert_build "//examples/py:bin" ./bazel-bin/examples/py/bin >& $TEST_log \ |