https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/genshi/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/genshi/tests/test_utils.py
# -*- coding: utf-8 -*-

import doctest
import re
import sys

# copied from couchdb-python (3-clause BSD)
#   https://github.com/djc/couchdb-python/blob/8336362eda12e101643b9da7560a78723613d994/couchdb/tests/testutil.py
class Py23DocChecker(doctest.OutputChecker):
    def check_output(self, want, got, optionflags):
        if sys.version_info < (3, 0):
            got = re.sub("u'(.*?)'", "'\\1'", got)
        return doctest.OutputChecker.check_output(self, want, got, optionflags)

def doctest_suite(module, **kwargs):
    return doctest.DocTestSuite(module, checker=Py23DocChecker(), **kwargs)



https://t.me/RX1948 - 2025