diff options
| author | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2022-01-03 23:50:05 +0000 |
|---|---|---|
| committer | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2022-01-03 23:50:05 +0000 |
| commit | d5c617a6b221b32b1525986aacab200ebf6ef02b (patch) | |
| tree | dc85654f33501bd5544cc6fe6ad6f2f0a3177ca1 /docutils/test/test__init__.py | |
| parent | 8e3d09b811838f7e2f025160e7fa190020ddc0b0 (diff) | |
| download | docutils-d5c617a6b221b32b1525986aacab200ebf6ef02b.tar.gz | |
Drop special-casing for Python 2.x in tests and tools.
Use "python3" in the shebang line
(cf. PEP 394 -- The "python" Command on Unix-Like Systems).
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8927 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/test/test__init__.py')
| -rw-r--r-- | docutils/test/test__init__.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/docutils/test/test__init__.py b/docutils/test/test__init__.py index 6370b4167..c56175fd3 100644 --- a/docutils/test/test__init__.py +++ b/docutils/test/test__init__.py @@ -16,19 +16,15 @@ import docutils.utils from docutils import VersionInfo -if sys.version_info >= (3, 0): - unicode = str # noqa - - class ApplicationErrorTests(unittest.TestCase): def test_message(self): err = docutils.ApplicationError('the message') - self.assertEqual(unicode(err), u'the message') + self.assertEqual(str(err), u'the message') def test_non_ASCII_message(self): err = docutils.ApplicationError(u'\u0169') - self.assertEqual(unicode(err), u'\u0169') + self.assertEqual(str(err), u'\u0169') class VersionInfoTests(unittest.TestCase): |
