Package lxml :: Package tests :: Module common_imports
[hide private]
[frames] | no frames]

Module common_imports

source code

Classes [hide private]
  unicode
str(object) -> string
  HelperTestCase
  SillyFileLike
  LargeFileLike
  LargeFileLikeUnicode
Functions [hide private]
 
make_version_tuple(version_string) source code
 
_get_caller_relative_path(filename, frame_depth=2) source code
 
_str(s, encoding='UTF-8') source code
 
_bytes(s, encoding='UTF-8') source code
 
_fix_traceback(...)
sub(repl, string[, count = 0]) --> newstring Return the string obtained by replacing the leftmost non-overlapping occurrences of pattern in string by the replacement repl.
source code
 
_fix_exceptions(...)
sub(repl, string[, count = 0]) --> newstring Return the string obtained by replacing the leftmost non-overlapping occurrences of pattern in string by the replacement repl.
source code
 
_fix_bytes(...)
sub(repl, string[, count = 0]) --> newstring Return the string obtained by replacing the leftmost non-overlapping occurrences of pattern in string by the replacement repl.
source code
 
make_doctest(filename) source code
 
fileInTestDir(name) source code
 
canonicalize(xml) source code
 
unentitify(xml) source code
Variables [hide private]
  ElementTree = None
hash(x)
  cElementTree = None
hash(x)
  _fix_unicode = re.compile(r'(\s+)u(["\'])').sub
  doctest_parser = doctest.DocTestParser()
  __package__ = 'lxml.tests'