Module Expr Str Import alias alias alias alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareNotIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num NameLoad ImportFrom alias alias alias alias TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body ImportFrom alias ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Call NameLoad Str FunctionDef arguments args defaults body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Delete NameDel decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad FunctionDef arguments args defaults body Assign NameStore Call NameLoad Call NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Call NameLoad Str FunctionDef arguments args defaults body Assign NameStore Call NameLoad Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad NameLoad attr decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Call NameLoad Str Assign NameStore ListLoad FunctionDef arguments args defaults body Assign NameStore Call NameLoad Call NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad NameLoad attr decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Str Call NameLoad SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Call NameLoad Str Assign NameStore ListLoad FunctionDef arguments args defaults body Assign NameStore Call NameLoad Call NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore BinOpMult Str Num FunctionDef arguments args NameParam defaults body Assign NameStore BinOpMod Str NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore Call NameLoad Num body Assign NameStore NameLoad TryExcept body Expr Call NameLoad NameLoad NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr BoolOpAnd CompareIn NameLoad AttributeLoad NameLoad attr CompareIn Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListLoad For NameStore Call NameLoad Num Num body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword TupleLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call NameLoad Num For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad Call NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Str FunctionDef arguments args defaults body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad Str keyword Dict Str Str Expr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad NameLoad attr decorator_list For NameStore TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Str Call NameLoad NameLoad FunctionDef arguments args defaults body Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num decorator_list While Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Call NameLoad Str Assign NameStore Call NameLoad NameLoad FunctionDef arguments args defaults body For NameStore Call NameLoad Num body Assign NameStore SubscriptLoad NameLoad Index BinOpMod NameLoad NameLoad Delete NameDel decorator_list Assign NameStore ListComp Call AttributeLoad NameLoad attr keyword NameLoad comprehension NameStore Call NameLoad Num For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr ClassDef bases AttributeLoad NameLoad attr body Pass decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call NameLoad Num FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Num For NameStore AttributeLoad NameLoad attr body AugAssignAdd NameStore Num Return NameLoad decorator_list decorator_list Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad Assign NameStore Call NameLoad Call NameLoad Str NameLoad Assign NameStore Call NameLoad NameLoad FunctionDef arguments args defaults body For NameStore Call NameLoad Num body Assign NameStore SubscriptLoad NameLoad Index BinOpMod NameLoad NameLoad Delete NameDel decorator_list Assign NameStore ListComp Call AttributeLoad NameLoad attr keyword NameLoad comprehension NameStore Call NameLoad Num For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore Num ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad NameLoad attr For NameStore Call NameLoad AttributeLoad NameLoad attr body Expr Call NameLoad Call NameLoad Call NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign NameStore SubscriptLoad NameLoad Index Num Assign SubscriptStore NameLoad Slice SubscriptLoad NameLoad Slice Num Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign SubscriptStore NameLoad Slice SubscriptLoad NameLoad Slice Num Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list Assign NameStore Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Assign NameStore Call NameLoad NameLoad Assign NameStore NameStore Call SubscriptLoad NameLoad Index Num NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad For NameStore SubscriptLoad NameLoad Slice Num body Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Return TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr For NameStore Call NameLoad NameLoad body Expr Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListComp Call NameLoad comprehension NameStore Call NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Num For TupleStore NameStore NameStore Call NameLoad SubscriptLoad NameLoad Slice Num body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr For NameStore Call NameLoad NameLoad body Expr Call NameLoad Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListComp Call NameLoad comprehension NameStore Call NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Num For TupleStore NameStore NameStore Call NameLoad SubscriptLoad NameLoad Slice Num body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list If CompareEq NameLoad Str body Print BinOpMod Str NameLoad
N/A N/A 
Tests for thread usage in lxml.etree.
 N/A unittest threading sys os.path N/A this_dir N/A N/A N/A os path dirname __file__ N/A N/A this_dir N/A sys path N/A N/A N/A N/A N/A sys path insert 0 this_dir common_imports etree HelperTestCase BytesIO _bytes N/A N/A Queue Queue N/A N/A N/A ImportError N/A queue Queue ThreadingTestCase N/A HelperTestCase N/A N/A Threading tests N/A etree etree _run_thread N/A N/A self func N/A N/A N/A thread N/A N/A threading Thread target func N/A N/A N/A thread start N/A N/A N/A thread join N/A test_subtree_copy_thread N/A N/A self N/A N/A N/A tostring N/A N/A self etree tostring N/A XML N/A N/A self etree XML N/A xml N/A _bytes <root><threadtag/></root> N/A main_root N/A XML N/A _bytes <root/> run_thread N/A N/A N/A N/A N/A thread_root N/A XML xml N/A N/A N/A main_root append N/A thread_root N/A 0 N/A thread_root N/A N/A N/A N/A self _run_thread run_thread N/A N/A N/A self assertEqual xml N/A tostring main_root N/A test_main_xslt_in_thread N/A N/A self N/A N/A N/A XML N/A N/A self etree XML N/A style N/A XML N/A _bytes <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:template match="*">
    <foo><xsl:copy><xsl:value-of select="/a/b/text()" /></xsl:copy></foo>
  </xsl:template>
</xsl:stylesheet> N/A st N/A N/A etree XSLT style N/A result N/A run_thread N/A N/A N/A N/A N/A root N/A XML N/A _bytes <a><b>B</b><c>C</c></a> N/A N/A N/A result append N/A st root N/A N/A N/A N/A self _run_thread run_thread N/A N/A N/A self assertEqual <?xml version="1.0"?>
<foo><a>B</a></foo>
 N/A str N/A result N/A 0 N/A test_thread_xslt N/A N/A self N/A N/A N/A XML N/A N/A self etree XML N/A tostring N/A N/A self etree tostring N/A root N/A XML N/A _bytes <a><b>B</b><c>C</c></a> run_thread N/A N/A N/A N/A N/A style N/A XML N/A _bytes     <xsl:stylesheet version="1.0"
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <xsl:template match="*">
        <foo><xsl:copy><xsl:value-of select="/a/b/text()" /></xsl:copy></foo>
      </xsl:template>
    </xsl:stylesheet> N/A st N/A N/A etree XSLT style N/A N/A N/A root append N/A N/A N/A st root getroot N/A N/A N/A N/A self _run_thread run_thread N/A N/A N/A self assertEqual N/A _bytes <a><b>B</b><c>C</c><foo><a>B</a></foo></a> N/A tostring root N/A test_thread_xslt_attr_replace N/A N/A self N/A N/A N/A XML N/A N/A self etree XML N/A tostring N/A N/A self etree tostring N/A style N/A N/A N/A self etree XSLT N/A XML N/A _bytes     <xsl:stylesheet version="1.0"
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <xsl:template match="*">
        <root class="abc">
          <xsl:copy-of select="@class" />
          <xsl:attribute name="class">xyz</xsl:attribute> 
        </root>
      </xsl:template>
    </xsl:stylesheet> N/A result N/A run_thread N/A N/A N/A N/A N/A root N/A XML N/A _bytes <ROOT class="ABC" /> N/A N/A N/A result append N/A N/A N/A style root getroot N/A N/A N/A N/A self _run_thread run_thread N/A N/A N/A self assertEqual N/A _bytes <root class="xyz"/> N/A tostring N/A result N/A 0 N/A test_thread_create_xslt N/A N/A self N/A N/A N/A XML N/A N/A self etree XML N/A tostring N/A N/A self etree tostring N/A root N/A XML N/A _bytes <a><b>B</b><c>C</c></a> N/A stylesheets N/A run_thread N/A N/A N/A N/A N/A style N/A XML N/A _bytes     <xsl:stylesheet
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
        version="1.0">
      <xsl:output method="xml" />
      <xsl:template match="/">
         <div id="test">
           <xsl:apply-templates/>
         </div>
      </xsl:template>
    </xsl:stylesheet> N/A N/A N/A stylesheets append N/A N/A etree XSLT style N/A N/A N/A N/A self _run_thread run_thread N/A st N/A stylesheets N/A 0 N/A result N/A tostring N/A st root N/A N/A N/A self assertEqual N/A _bytes <div id="test">BC</div> result N/A test_thread_error_log N/A N/A self N/A N/A N/A XML N/A N/A self etree XML N/A ParseError N/A N/A self etree ParseError N/A expected_error N/A N/A N/A N/A self etree ErrorTypes ERR_TAG_NAME_MISMATCH N/A children N/A <a>test</a> 100 parse_error_test N/A N/A thread_no N/A N/A N/A tag N/A tag%d thread_no N/A xml N/A <%s>%s</%s> N/A tag children N/A N/A tag upper N/A parser N/A N/A N/A self etree XMLParser N/A _ N/A range 10 N/A N/A errors None N/A N/A N/A N/A XML xml parser N/A N/A N/A N/A N/A self etree ParseError N/A N/A e N/A N/A N/A sys exc_info N/A 1 N/A errors N/A N/A N/A e error_log filter_types expected_error N/A N/A N/A self assertTrue errors Expected error not found N/A error errors N/A N/A N/A N/A self assertTrue N/A N/A tag N/A error message N/A N/A N/A tag upper N/A error message N/A %s and %s not found in '%s' N/A tag N/A N/A tag upper N/A error message N/A N/A N/A N/A N/A self etree clear_error_log N/A threads N/A N/A thread_no N/A range 1 10 N/A N/A t N/A N/A threading Thread target parse_error_test args N/A thread_no N/A N/A N/A threads append t N/A N/A N/A t start N/A N/A parse_error_test 0 N/A t threads N/A N/A N/A N/A t join N/A test_thread_mix N/A N/A self N/A N/A N/A XML N/A N/A self etree XML N/A Element N/A N/A self etree Element N/A SubElement N/A N/A self etree SubElement N/A tostring N/A N/A self etree tostring N/A xml N/A _bytes <a><b>B</b><c xmlns="test">C</c></a> N/A root N/A XML xml N/A fragment N/A XML N/A _bytes <other><tags/></other> N/A result N/A N/A N/A self etree Element {myns}root att someval run_XML N/A N/A N/A N/A N/A thread_root N/A XML xml N/A N/A N/A result append N/A thread_root N/A 0 N/A N/A N/A result append N/A thread_root N/A -1 N/A run_parse N/A N/A N/A N/A N/A thread_root N/A N/A N/A N/A N/A self etree parse N/A BytesIO xml getroot N/A N/A N/A result append N/A thread_root N/A 0 N/A N/A N/A result append N/A thread_root N/A -1 N/A run_move_main N/A N/A N/A N/A N/A N/A N/A result append N/A fragment N/A 0 N/A run_build N/A N/A N/A N/A N/A N/A N/A result append N/A Element {myns}foo attrib N/A {test}attr val N/A N/A SubElement result {otherns}tasty N/A run_xslt N/A N/A N/A N/A N/A style N/A XML N/A _bytes     <xsl:stylesheet version="1.0"
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <xsl:template match="*">
        <xsl:copy><foo><xsl:value-of select="/a/b/text()" /></foo></xsl:copy>
      </xsl:template>
    </xsl:stylesheet> N/A st N/A N/A etree XSLT style N/A N/A N/A result append N/A N/A N/A st root getroot N/A N/A test N/A run_XML run_parse run_move_main run_xslt run_build N/A N/A N/A tostring result N/A N/A N/A self _run_thread test N/A N/A N/A self assertEqual N/A _bytes <ns0:root xmlns:ns0="myns" att="someval"><b>B</b><c xmlns="test">C</c><b>B</b><c xmlns="test">C</c><tags/><a><foo>B</foo></a><ns0:foo xmlns:ns1="test" ns1:attr="val"/><ns1:tasty xmlns:ns1="otherns"/></ns0:root> N/A tostring result strip_first N/A N/A N/A N/A N/A root N/A Element newroot N/A N/A N/A root append N/A result N/A 0 N/A N/A N/A len result N/A N/A N/A N/A self _run_thread strip_first N/A N/A N/A self assertEqual N/A _bytes <ns0:root xmlns:ns0="myns" att="someval"/> N/A tostring result N/A test_concurrent_proxies N/A N/A self N/A N/A N/A XML N/A N/A self etree XML N/A root N/A XML N/A _bytes <root><a>A</a><b xmlns="test">B</b><c/></root> N/A child_count N/A len root testrun N/A N/A N/A N/A N/A i N/A range 10000 N/A N/A el N/A root N/A N/A i child_count N/A el N/A N/A threads N/A N/A N/A threading Thread target testrun N/A _ N/A range 10 N/A thread threads N/A N/A N/A N/A thread start N/A thread threads N/A N/A N/A N/A thread join N/A test_concurrent_class_lookup N/A N/A self N/A N/A N/A XML N/A N/A self etree XML TestElement N/A N/A etree ElementBase N/A N/A N/A MyLookup N/A N/A etree CustomElementClassLookup N/A N/A repeat N/A range 100 lookup N/A N/A self t d ns name N/A N/A N/A count 0 N/A i N/A self repeat N/A N/A count 1 N/A TestElement N/A N/A N/A parser N/A N/A N/A self etree XMLParser N/A N/A N/A parser set_element_class_lookup N/A MyLookup N/A root N/A XML N/A _bytes <root><a>A</a><b xmlns="test">B</b><c/></root> parser N/A child_count N/A len root testrun N/A N/A N/A N/A N/A i N/A range 1000 N/A N/A el N/A root N/A N/A i child_count N/A el N/A N/A threads N/A N/A N/A threading Thread target testrun N/A _ N/A range 10 N/A thread threads N/A N/A N/A N/A thread start N/A thread threads N/A N/A N/A N/A thread join N/A N/A ThreadPipelineTestCase N/A HelperTestCase N/A N/A Threading tests based on a thread worker pipeline.
     N/A etree etree N/A item_count 20 Worker N/A N/A threading Thread N/A __init__ N/A N/A self in_queue in_count N/A kwargs N/A N/A N/A N/A N/A threading Thread __init__ self N/A N/A self in_queue in_queue N/A N/A self in_count in_count N/A N/A self out_queue N/A Queue in_count N/A N/A N/A N/A self __dict__ update kwargs N/A run N/A N/A self N/A N/A N/A N/A get put N/A N/A N/A self in_queue get N/A N/A self out_queue put N/A handle N/A self handle N/A _ N/A range N/A self in_count N/A N/A N/A put N/A handle N/A get N/A N/A ParseWorker N/A Worker N/A N/A XML N/A etree XML handle N/A N/A self xml N/A N/A N/A N/A N/A self XML xml N/A N/A RotateWorker N/A Worker N/A handle N/A N/A self element N/A N/A N/A first N/A element N/A 0 N/A N/A element N/A N/A element N/A 1 N/A N/A N/A element append first N/A element N/A N/A ReverseWorker N/A Worker N/A handle N/A N/A self element N/A N/A N/A N/A element N/A N/A element N/A -1 N/A element N/A N/A ParseAndExtendWorker N/A Worker N/A N/A XML N/A etree XML handle N/A N/A self element N/A N/A N/A N/A N/A element extend N/A N/A self XML N/A self xml N/A element N/A N/A SerialiseWorker N/A Worker N/A handle N/A N/A self element N/A N/A N/A N/A N/A etree tostring element N/A N/A N/A xml N/A _bytes <xsl:stylesheet
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    version="1.0">
  <xsl:output method="xml" />
  <xsl:template match="/">
     <div id="test">
       <xsl:apply-templates/>
     </div>
  </xsl:template>
</xsl:stylesheet> _build_pipeline N/A N/A self item_count N/A classes kwargs N/A N/A in_queue N/A Queue item_count N/A start last N/A N/A classes N/A 0 in_queue item_count kwargs N/A N/A N/A start setDaemon True N/A worker_class N/A classes N/A 1 N/A N/A last N/A worker_class N/A last out_queue item_count kwargs N/A N/A N/A last setDaemon True N/A N/A N/A last start N/A N/A in_queue start last N/A test_thread_pipeline_thread_parse N/A N/A self N/A N/A N/A item_count N/A self item_count N/A N/A in_queue start last N/A N/A self _build_pipeline item_count N/A self ParseWorker N/A self RotateWorker N/A self ReverseWorker N/A self ParseAndExtendWorker N/A self SerialiseWorker xml N/A self xml N/A put N/A N/A start in_queue put N/A _ N/A range item_count N/A N/A N/A put N/A self xml N/A N/A N/A start start N/A N/A N/A last join 60 N/A N/A N/A self assertEqual item_count N/A N/A N/A last out_queue qsize N/A get N/A N/A last out_queue get N/A results N/A N/A get N/A _ N/A range item_count N/A comparison N/A results N/A 0 N/A N/A i result N/A enumerate N/A results N/A 1 N/A N/A N/A N/A self assertEqual comparison result N/A test_thread_pipeline_global_parse N/A N/A self N/A N/A N/A item_count N/A self item_count N/A XML N/A N/A self etree XML N/A N/A in_queue start last N/A N/A self _build_pipeline item_count N/A self RotateWorker N/A self ReverseWorker N/A self ParseAndExtendWorker N/A self SerialiseWorker xml N/A self xml N/A put N/A N/A start in_queue put N/A _ N/A range item_count N/A N/A N/A put N/A XML N/A self xml N/A N/A N/A start start N/A N/A N/A last join 60 N/A N/A N/A self assertEqual item_count N/A N/A N/A last out_queue qsize N/A get N/A N/A last out_queue get N/A results N/A N/A get N/A _ N/A range item_count N/A comparison N/A results N/A 0 N/A N/A i result N/A enumerate N/A results N/A 1 N/A N/A N/A N/A self assertEqual comparison result N/A N/A test_suite N/A N/A N/A N/A N/A suite N/A N/A unittest TestSuite N/A N/A N/A suite addTests N/A N/A N/A unittest makeSuite ThreadingTestCase N/A N/A N/A suite addTests N/A N/A N/A unittest makeSuite ThreadPipelineTestCase N/A suite N/A N/A N/A __name__ __main__ N/A N/A N/A to test use test.py %s __file__