Skip to content

Commit df2bd61

Browse files
Removed Py23DocChecker.
This was only needed to make the doctest output compatible between Python 2 and 3.
1 parent a2dc500 commit df2bd61

3 files changed

Lines changed: 1 addition & 12 deletions

File tree

CHANGES.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Changelog
55
4.5.1 (unreleased)
66
------------------
77

8+
- Remove usage of the ``six`` compatibility library. [maurits]
89
- Update deprecated imports for Plone 6.0 and higher. [maurits]
910

1011

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
"Products.CMFPlone>=6.0.0b1",
5454
"Products.validation>=3.0.0",
5555
"setuptools",
56-
"six",
5756
# -*- Extra requirements: -*-
5857
],
5958
extras_require={

src/collective/easyform/tests/testDocTests.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66

77
import doctest
88
import os
9-
import re
10-
import six
119
import unittest
1210

1311

@@ -31,14 +29,6 @@
3129
)
3230

3331

34-
class Py23DocChecker(doctest.OutputChecker):
35-
def check_output(self, want, got, optionflags):
36-
if six.PY2:
37-
got = re.sub("zExceptions.NotFound", "NotFound", got)
38-
got = re.sub("u'(.*?)'", "'\\1'", want)
39-
return doctest.OutputChecker.check_output(self, want, got, optionflags)
40-
41-
4232
def get_browser(layer, auth=True):
4333
browser = Browser(layer["app"])
4434
browser.handleErrors = False
@@ -68,7 +58,6 @@ def test_suite():
6858
"get_browser": get_browser,
6959
"get_image_path": get_image_path,
7060
},
71-
checker=Py23DocChecker(),
7261
),
7362
layer=FUNCTIONAL_TESTING,
7463
)

0 commit comments

Comments
 (0)