Skip to content

Commit cf70a41

Browse files
committed
test: remove dead code from test_licences.py
The `return True` was flagged by IntelliJ as unreachable (and I concur), the main function was probably to allow running the test without pytest, but we have separate mechanism for this these days (`./tools/devtool checkstyle`). Signed-off-by: Patrick Roy <[email protected]>
1 parent 91ab469 commit cf70a41

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

tests/integration_tests/style/test_licenses.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ def _validate_license(filename):
9898
or has_intel_copyright
9999
or has_rivos_copyright
100100
)
101-
return True
102101

103102

104103
def test_for_valid_licenses():
@@ -142,7 +141,3 @@ def test_dependency_licenses():
142141
# or remove them if they are incompatible with our licenses.
143142
license_res = [line for line in stderr.split("\n") if "license" in line]
144143
assert not license_res
145-
146-
147-
if __name__ == "__main__":
148-
test_for_valid_licenses()

0 commit comments

Comments
 (0)