diff options
| author | aa-turner <aa-turner@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2022-10-21 01:34:33 +0000 |
|---|---|---|
| committer | aa-turner <aa-turner@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2022-10-21 01:34:33 +0000 |
| commit | 3145fdd3882040567563347dbf0cc9f2ae2243aa (patch) | |
| tree | b0db81d25ba91f1d2b6a0c8bd49c7cd95c09b1f0 /docutils/test/DocutilsTestSupport.py | |
| parent | 1457e847d7571a555e9993c2f71326fa22433486 (diff) | |
| download | docutils-3145fdd3882040567563347dbf0cc9f2ae2243aa.tar.gz | |
Remove method redefinitions in ``StandardTestCase``
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9143 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/test/DocutilsTestSupport.py')
| -rw-r--r-- | docutils/test/DocutilsTestSupport.py | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/docutils/test/DocutilsTestSupport.py b/docutils/test/DocutilsTestSupport.py index b677129b9..cf8a8c70c 100644 --- a/docutils/test/DocutilsTestSupport.py +++ b/docutils/test/DocutilsTestSupport.py @@ -110,28 +110,6 @@ class StandardTestCase(unittest.TestCase): def setUp(self): os.chdir(testroot) - def assertEqual(self, first, second, msg=None): - """Fail if the two objects are unequal as determined by the '==' - operator. - """ - if not first == second: - raise self.failureException( - msg or '%s != %s' % _format_str(first, second)) - - def assertNotEqual(self, first, second, msg=None): - """Fail if the two objects are equal as determined by the '==' - operator. - """ - if first == second: - raise self.failureException( - msg or '%s == %s' % _format_str(first, second)) - - # aliases for assertion methods, deprecated since Python 2.7 - - failUnlessEqual = assertEquals = assertEqual - - assertNotEquals = failIfEqual = assertNotEqual - class CustomTestCase(StandardTestCase): @@ -187,7 +165,7 @@ class CustomTestCase(StandardTestCase): roles._roles = {} def setUp(self): - StandardTestCase.setUp(self) + super().setUp() self.clear_roles() def compare_output(self, input, output, expected): |
