Skip to content

Commit 49aa579

Browse files
committed
cleanup, expand nodeps test
1 parent 93be441 commit 49aa579

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

tests/bootstrap_impls/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ py_reconfig_test(
128128
)
129129

130130
py_reconfig_test(
131-
name = "sys_path_order_sys_test",
131+
name = "sys_path_order_bootstrap_system_python_test",
132132
srcs = ["sys_path_order_test.py"],
133133
bootstrap_impl = "system_python",
134134
env = {"BOOTSTRAP": "system_python"},

tests/bootstrap_impls/sys_path_order_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def test_sys_path_order(self):
3333
# error messages are more informative.
3434
categorized_paths = []
3535
for i, value in enumerate(sys.path):
36-
# On windows, the `pythonXY.zip` entry shows up as `$venv/Scripts/pythonXY.zip`
36+
# On Windows, the `pythonXY.zip` entry shows up as `$venv/Scripts/pythonXY.zip`
3737
# While it's technically part of the venv, it's considered the stdlib.
3838
if os.name == "nt" and re.search("python.*[.]zip$", value):
3939
category = "stdlib"
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
print("Hello, world")
2-
import pathlib
32

3+
# Verify py code from the stdlib can be imported.
4+
import pathlib
45
print(pathlib)
6+
7+
# Verify a C-implemented module can be imported.
8+
# Socket isn't implement in C, but requires `_socket`,
9+
# which is implemented in C
10+
import socket

0 commit comments

Comments
 (0)