Skip to content

Commit

Permalink
Merge pull request #5907 from clebergnu/clear_shebangs
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Richter <jarichte@redhat.com>
  • Loading branch information
richtja committed Apr 17, 2024
2 parents 7898af6 + 7ac977b commit 7021bb9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 35 deletions.
5 changes: 0 additions & 5 deletions selftests/.data/unittests.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
import unittest


Expand All @@ -17,7 +16,3 @@ def test_error(self):
@unittest.skip("This is suppose to be skipped")
def test_skip(self):
pass


if __name__ == "__main__":
unittest.main()
8 changes: 1 addition & 7 deletions selftests/.data/whiteboard.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/usr/bin/env python3

import base64

from avocado import Test, main
from avocado import Test


class WhiteBoard(Test):
Expand Down Expand Up @@ -35,7 +33,3 @@ def test(self):
for _ in range(0, iterations):
result += data
self.whiteboard = base64.encodebytes(result.encode()).decode("ascii")


if __name__ == "__main__":
main()
21 changes: 4 additions & 17 deletions selftests/functional/serial/requirements.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
import glob
import os
import unittest

from avocado import Test, skipUnless
from avocado.core import exit_codes
from avocado.utils import process, script
from selftests.utils import AVOCADO, TestCaseTmpDir

SINGLE_SUCCESS_CHECK = '''#!/usr/bin/env python3
from avocado import Test
SINGLE_SUCCESS_CHECK = '''from avocado import Test
class SuccessTest(Test):
Expand All @@ -20,9 +17,7 @@ def test_check(self):
"""
'''

SINGLE_FAIL_CHECK = '''#!/usr/bin/env python3
from avocado import Test
SINGLE_FAIL_CHECK = '''from avocado import Test
class FailTest(Test):
Expand All @@ -33,9 +28,7 @@ def test_check(self):
"""
'''

MULTIPLE_SUCCESS = '''#!/usr/bin/env python3
from avocado import Test
MULTIPLE_SUCCESS = '''from avocado import Test
from avocado.utils import process
Expand Down Expand Up @@ -65,9 +58,7 @@ def test_c(self):
self.check_hello()
'''

MULTIPLE_FAIL = '''#!/usr/bin/env python3
from avocado import Test
MULTIPLE_FAIL = '''from avocado import Test
from avocado.utils import process
Expand Down Expand Up @@ -221,7 +212,3 @@ def test_multiple_fails(self):
"-foo-bar-",
result.stdout_text,
)


if __name__ == "__main__":
unittest.main()
6 changes: 0 additions & 6 deletions selftests/unit/utils/diff_validator.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python3

import os
import tempfile
import unittest
Expand Down Expand Up @@ -136,7 +134,3 @@ def test_change_unexpected_add(self):
change_success,
f"The change must not be valid:\n{diff_validator.create_diff_report(change_dict)}",
)


if __name__ == "__main__":
unittest.main()

0 comments on commit 7021bb9

Please sign in to comment.