Skip to content

Commit

Permalink
Update run_tests.py for setuptools build
Browse files Browse the repository at this point in the history
  • Loading branch information
bonsaiviking committed Apr 11, 2024
1 parent c4a4e0d commit a566fc1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions zenmap/test/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@

if __name__ == "__main__":
import sys
import glob
import os
if not hasattr(unittest.defaultTestLoader, "discover"):
print("Python unittest discovery missing. Requires Python 3.0 or newer.") # noqa
sys.exit(0)

os.chdir("..")
suite = unittest.defaultTestLoader.discover(
start_dir=glob.glob("build/lib*")[0],
start_dir=".",
pattern="*.py"
)
unittest.TextTestRunner().run(suite)

0 comments on commit a566fc1

Please sign in to comment.