summaryrefslogtreecommitdiff
path: root/tests/lib/canonical.py
diff options
context:
space:
mode:
authorxi <xi@18f92427-320e-0410-9341-c67f048884a3>2011-05-30 02:51:30 +0000
committerxi <xi@18f92427-320e-0410-9341-c67f048884a3>2011-05-30 02:51:30 +0000
commit428faafc50d046470da82af48fd3cf9a9854b088 (patch)
treeeb086caaf462460ed465e27830c6429f9dd33571 /tests/lib/canonical.py
parentc30f23e669b9938520fce404d3ad7ffb2e7259f9 (diff)
downloadpyyaml-428faafc50d046470da82af48fd3cf9a9854b088.tar.gz
Clear cyclic references in the parser and the emitter to avoid extra GC calls.
git-svn-id: http://svn.pyyaml.org/pyyaml/trunk@377 18f92427-320e-0410-9341-c67f048884a3
Diffstat (limited to 'tests/lib/canonical.py')
-rw-r--r--tests/lib/canonical.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/lib/canonical.py b/tests/lib/canonical.py
index 41d111a..020e6db 100644
--- a/tests/lib/canonical.py
+++ b/tests/lib/canonical.py
@@ -211,6 +211,9 @@ class CanonicalParser:
self.events = []
self.parsed = False
+ def dispose(self):
+ pass
+
# stream: STREAM-START document* STREAM-END
def parse_stream(self):
self.get_token(yaml.StreamStartToken)