~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to testweave.py

  • Committer: Martin Pool
  • Date: 2005-06-28 14:56:55 UTC
  • mto: This revision was merged to the branch mainline in revision 852.
  • Revision ID: mbp@sourcefrog.net-20050628145655-165f168e584cc134
Cope without set/frozenset classes

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
from pprint import pformat
28
28
 
29
29
 
 
30
 
 
31
try:
 
32
    set
 
33
    frozenset
 
34
except NameError:
 
35
    from sets import Set, ImmutableSet
 
36
    set = Set
 
37
    frozenset = ImmutableSet
 
38
    del Set, FrozenSet
 
39
 
 
40
 
 
41
 
30
42
# texts for use in testing
31
43
TEXT_0 = ["Hello world"]
32
44
TEXT_1 = ["Hello world",