Changeset 3058:0efb32eee528 in livinglogic.python.xist

Show
Ignore:
Timestamp:
12/18/07 16:51:43 (12 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Using True in a pool constructor no longer works => remove the test.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • test/test_pool.py

    r3057 r3058  
    242242    assert r2.elementclass_xml("bar", "nix") is bar 
    243243    assert r2.elementclass_xml("baz", "nix") is baz 
    244  
    245  
    246 def test_defaultbase(): 
    247     with xsc.Pool() as r1: 
    248         class foo(xsc.Element): 
    249             xmlns = "nix" 
    250  
    251         with xsc.Pool(True) as r2: 
    252             class bar(xsc.Element): 
    253                 xmlns = "nix" 
    254  
    255     assert r1.elementclass_xml("foo", "nix") is foo 
    256     py.test.raises(xsc.IllegalElementError, r1.elementclass, "bar", "nix") 
    257  
    258     assert r2.elementclass_xml("foo", "nix") is foo 
    259     assert r2.elementclass_xml("bar", "nix") is bar 
    260244 
    261245