def testReleaseLast(self):
    'StringStream.release(): last marker'
    stream = antlr3.StringStream('foo\nbar')
    stream.seek(4)
    marker1 = stream.mark()
    stream.consume()
    marker2 = stream.mark()
    stream.release()
    self.failUnlessEqual(stream.markDepth, 1)
    stream.release()
    self.failUnlessEqual(stream.markDepth, 1)
StringStream.release(): last marker
def testReleaseLast(self):
    
    stream = antlr3.StringStream('foo\nbar')
    stream.seek(4)
    marker1 = stream.mark()
    stream.consume()
    marker2 = stream.mark()
    stream.release()
    self.failUnlessEqual(stream.markDepth, 1)
    stream.release()
    self.failUnlessEqual(stream.markDepth, 1)