Skip to content

Commit 4d35799

Browse files
Remove py2 and py3 labels from build targets
These only really served a purpose when we had to ensure that certain tests only ran under either Python 2 or Python 3, and can be removed now that all tests are expected to pass under all versions of Python listed in the CI matrix.
1 parent 3aab471 commit 4d35799

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

test/BUILD

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ python_test(
2323
name = "strip_source_test",
2424
srcs = ["strip_source_test.py"],
2525
data = [":strip_source"],
26-
labels = ["py3"],
2726
)
2827

2928
# Test that has no actual tests in it. Should still count as a pass.
@@ -89,16 +88,11 @@ python_test(
8988
python_library(
9089
name = "python_coverage",
9190
srcs = ["python_coverage.py"],
92-
labels = [
93-
"py2",
94-
"py3",
95-
],
9691
)
9792

9893
python_test(
9994
name = "python3_coverage_test",
10095
srcs = ["python_coverage_test.py"],
101-
labels = ["py3"],
10296
deps = [":python_coverage"],
10397
)
10498

@@ -111,7 +105,6 @@ python_test(
111105
name = "namespaced_packages_test",
112106
srcs = ["namespaced_packages_test.py"],
113107
labels = [
114-
"py3",
115108
"pip",
116109
],
117110
deps = [
@@ -124,14 +117,12 @@ python_test(
124117
name = "data_dict_test",
125118
srcs = ["data_dict_test.py"],
126119
data = {"txt": ["data.txt"]},
127-
labels = ["py3"],
128120
)
129121

130122
python_test(
131123
name = "cx_oracle_darwin_build_test",
132124
srcs = ["cx_oracle_darwin_build_test.py"],
133125
labels = [
134-
"py3",
135126
"pip",
136127
],
137128
deps = ["//third_party/python:cx_oracle"],
@@ -141,15 +132,13 @@ plz_e2e_test(
141132
name = "correct_labels_on_pip_libary_non_zip_safe",
142133
cmd = "plz query print -f labels //third_party/python:pyyaml",
143134
expected_output = "expected_labels_on_pyyaml.txt",
144-
labels = ["py3"],
145135
deps = ["//third_party/python:pyyaml"],
146136
)
147137

148138
plz_e2e_test(
149139
name = "correct_labels_on_pip_libary_zip_safe",
150140
cmd = "plz query print -f labels //third_party/python:grpcio",
151141
expected_output = "expected_labels_on_grpcio.txt",
152-
labels = ["py3"],
153142
deps = ["//third_party/python:grpcio"],
154143
)
155144

@@ -158,9 +147,6 @@ plz_e2e_test(
158147
python_test(
159148
name = "name_scheme_test",
160149
srcs = ["name_scheme_test.py"],
161-
labels = [
162-
"py3",
163-
],
164150
deps = [
165151
"//third_party/python:click",
166152
"//third_party/python:click-log",

0 commit comments

Comments
 (0)