Skip to content

Commit

Permalink
feat: drop six
Browse files Browse the repository at this point in the history
  • Loading branch information
gforcada committed Apr 15, 2023
1 parent e6eccbf commit 676d9da
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions plone/indexer/tests.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
from zope.component import testing

import doctest
import re
import six
import unittest


Expand All @@ -20,13 +18,6 @@ def my_func(obj):
self.assertEqual(my_func.__name__, "my_func")


class Py23DocChecker(doctest.OutputChecker):
def check_output(self, want, got, optionflags):
if six.PY2:
got = re.sub("u'(.*?)'", "'\\1'", got)
return doctest.OutputChecker.check_output(self, want, got, optionflags)


def test_suite():
return unittest.TestSuite(
[
Expand All @@ -35,7 +26,6 @@ def test_suite():
package="plone.indexer",
setUp=testing.setUp,
tearDown=testing.tearDown,
checker=Py23DocChecker(),
),
unittest.defaultTestLoader.loadTestsFromTestCase(TestWrapperUpdate),
]
Expand Down

0 comments on commit 676d9da

Please sign in to comment.