Tests: using "expectedFailure" decorator instead of assertTry().

This commit is contained in:
Andrey Zelenkov
2018-01-24 15:43:04 +03:00
parent 771e9d3cc3
commit 331514fcf7
6 changed files with 359 additions and 311 deletions

View File

@@ -28,10 +28,6 @@ class TestUnit(unittest.TestCase):
if '--leave' not in sys.argv:
shutil.rmtree(self.testdir)
def assertTry(self, assert_method, description, *args):
try: getattr(self, assert_method)(*args, msg=description)
except AssertionError: print('not yet: ' + description)
def check_modules(self, *modules):
self._run()