Skip to content

Commit

Permalink
remove unittest.main()
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielYang59 committed Apr 1, 2024
1 parent fadaf14 commit 5e58909
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions tests/test_tempfile.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import os
import shutil
import unittest

from monty.tempfile import ScratchDir

Expand Down Expand Up @@ -142,7 +141,3 @@ def test_bad_root(self):
def teardown_method(self):
os.chdir(self.cwd)
shutil.rmtree(self.scratch_root)


if __name__ == "__main__":
unittest.main()
5 changes: 0 additions & 5 deletions tests/test_termcolor.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import os
import sys
import unittest

from monty.termcolor import (
cprint,
Expand Down Expand Up @@ -75,7 +74,3 @@ def test_remove_non_ascii(self):
def test_stream_has_colors(self):
# TODO: not a real test. Need to do a proper test.
stream_has_colours(sys.stdout)


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

0 comments on commit 5e58909

Please sign in to comment.