module documentation

Common helpers and adaptations for Py2/3. To be used in tests.
Class ​Helper​Test​Case Undocumented
Class ​Large​File​Like Undocumented
Class ​Large​File​Like​Unicode Undocumented
Class ​Silly​File​Like Undocumented
Class skipif Using a class because a function would bind into a method when used in classes
Function ​Bytes​IO Undocumented
Function canonicalize Undocumented
Function file​In​Test​Dir Undocumented
Function file​Url​In​Test​Dir Undocumented
Function filter​_by​_version Remove test methods that do not work with the current lib version.
Function make​_doctest Undocumented
Function make​_version​_tuple Undocumented
Function needs​_libxml Undocumented
Function path2url Undocumented
Function read​_file Undocumented
Function read​File​In​Test​Dir Undocumented
Function skip​If Undocumented
Function tmpfile Undocumented
Function write​_to​_file Undocumented
Constant CET​_VERSION Undocumented
Constant DEBUG​_PROXY​_ISSUES Undocumented
Constant ET​_VERSION Undocumented
Constant IS​_PYPY Undocumented
Constant IS​_PYTHON2 Undocumented
Constant IS​_PYTHON3 Undocumented
Variable doctest​_parser Undocumented
Variable unichr​_escape Undocumented
Function ​_bytes Undocumented
Function ​_get​_caller​_relative​_path Undocumented
Function ​_str Undocumented
Variable ​_fix​_exceptions Undocumented
Variable ​_fix​_unicode Undocumented
def BytesIO(*args):

Undocumented

def canonicalize(xml):

Undocumented

def fileInTestDir(name):

Undocumented

def fileUrlInTestDir(name):

Undocumented

def filter_by_version(test_class, version_dict, current_version):
Remove test methods that do not work with the current lib version.
def make_doctest(filename):

Undocumented

def make_version_tuple(version_string):

Undocumented

def needs_libxml(*version):

Undocumented

def path2url(path):

Undocumented

def read_file(name, mode='r'):

Undocumented

def readFileInTestDir(name, mode='r'):

Undocumented

def skipIf(condition, why):

Undocumented

@contextmanager
def tmpfile(**kwargs):

Undocumented

def write_to_file(name, data, mode='w'):

Undocumented

CET_VERSION =

Undocumented

Value
make_version_tuple(cElementTree.VERSION)
DEBUG_PROXY_ISSUES: bool =

Undocumented

Value
False
ET_VERSION =

Undocumented

Value
make_version_tuple(ElementTree.VERSION)
IS_PYPY =

Undocumented

Value
(getattr(sys, 'implementation', None) == 'pypy') or (getattr(sys, 'pypy_version_
info', None) is not None)
IS_PYTHON2 =

Undocumented

Value
(sys.version_info[0] < 3)
IS_PYTHON3 =

Undocumented

Value
(sys.version_info[0] >= 3)
doctest_parser =

Undocumented

unichr_escape =

Undocumented

def _bytes(s, encoding='UTF-8'):

Undocumented

def _get_caller_relative_path(filename, frame_depth=2):

Undocumented

def _str(s, encoding='UTF-8'):

Undocumented

_fix_exceptions =

Undocumented

_fix_unicode =

Undocumented