Skip to content

Commit 5075337

Browse files
committed
basic_test: print python version
1 parent 283e7d1 commit 5075337

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

examples/basic/BUILD.bazel

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
load("@pybind11_bazel//:build_defs.bzl", "pybind_extension")
2-
load("@rules_python//python:defs.bzl", "py_library", "py_test")
2+
load("@rules_python//python:py_library.bzl", "py_library")
3+
load("@rules_python//python:py_test.bzl", "py_test")
34

45
pybind_extension(
56
name = "basic",

examples/basic/basic_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import unittest
2+
import sys
23

34
import basic
45

@@ -11,4 +12,5 @@ def test_add(self):
1112

1213

1314
if __name__ == "__main__":
15+
print(sys.version)
1416
unittest.main()

0 commit comments

Comments
 (0)