module documentation

Common helpers and adaptations for Py2/3. To be used in tests.

Class HelperTestCase Undocumented
Class LargeFileLike Undocumented
Class LargeFileLikeUnicode Undocumented
Class SillyFileLike Undocumented
Class SimpleFSPath Undocumented
Function BytesIO Undocumented
Function canonicalize Undocumented
Function fileInTestDir Undocumented
Function fileUrlInTestDir 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 readFileInTestDir 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): (source)

Undocumented

def canonicalize(xml): (source)

Undocumented

def fileInTestDir(name): (source)

Undocumented

def fileUrlInTestDir(name): (source)

Undocumented

def filter_by_version(test_class, version_dict, current_version): (source)

Remove test methods that do not work with the current lib version.

def make_doctest(filename): (source)

Undocumented

def make_version_tuple(version_string): (source)

Undocumented

def needs_libxml(*version): (source)

Undocumented

def path2url(path): (source)

Undocumented

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

Undocumented

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

Undocumented

@contextmanager
def tmpfile(**kwargs): (source)

Undocumented

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

Undocumented

CET_VERSION = (source)

Undocumented

Value
make_version_tuple(cElementTree.VERSION)
DEBUG_PROXY_ISSUES: bool = (source)

Undocumented

Value
False
ET_VERSION = (source)

Undocumented

Value
make_version_tuple(ElementTree.VERSION)

Undocumented

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

Undocumented

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

Undocumented

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

Undocumented

unichr_escape = (source)

Undocumented

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

Undocumented

def _get_caller_relative_path(filename, frame_depth=2): (source)

Undocumented

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

Undocumented

_fix_exceptions = (source)

Undocumented

_fix_unicode = (source)

Undocumented