diff options
| author | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2019-08-27 12:09:56 +0000 |
|---|---|---|
| committer | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2019-08-27 12:09:56 +0000 |
| commit | c0440cc1576e8de85bf25ccf26cb721b22bb5061 (patch) | |
| tree | c0af80fdaa67e11b6bb1ef432bcaa148720ad13c /test/DocutilsTestSupport.py | |
| parent | 3e160024a560b8e31bf94db73d2cf8f93c0122f2 (diff) | |
| download | docutils-c0440cc1576e8de85bf25ccf26cb721b22bb5061.tar.gz | |
Formatting changes to facilitate integration of "py3" patchset.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8367 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'test/DocutilsTestSupport.py')
| -rw-r--r-- | test/DocutilsTestSupport.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/DocutilsTestSupport.py b/test/DocutilsTestSupport.py index c7112d631..107633f5b 100644 --- a/test/DocutilsTestSupport.py +++ b/test/DocutilsTestSupport.py @@ -51,7 +51,7 @@ from pprint import pformat testroot = os.path.abspath(os.path.dirname(__file__) or os.curdir) os.chdir(testroot) -if sys.version_info >= (3,0): +if sys.version_info >= (3, 0): sys.path.insert(0, os.path.normpath(os.path.join(testroot, '..', 'build', 'lib'))) sys.path.append(os.path.normpath(os.path.join(testroot, '..', @@ -89,7 +89,7 @@ except: import pdb -if sys.version_info >= (3,0): +if sys.version_info >= (3, 0): unicode = str # noqa @@ -202,7 +202,7 @@ class CustomTestCase(StandardTestCase): """`input`, `output`, and `expected` should all be strings.""" if isinstance(input, unicode): input = input.encode('raw_unicode_escape') - if sys.version_info > (3,0): + if sys.version_info > (3, 0): # API difference: Python 3's node.__str__ doesn't escape #assert expected is None or isinstance(expected, unicode) if isinstance(expected, bytes): |
