Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (13 sloc) 0.507 kB
"""Tests basic stack manipulation performance"""
from logbook import Handler, NullHandler, StreamHandler, FileHandler, \
ERROR, WARNING
from tempfile import NamedTemporaryFile
from cStringIO import StringIO
def run():
f = NamedTemporaryFile()
out = StringIO()
with NullHandler():
with StreamHandler(out, level=WARNING):
with FileHandler(f.name, level=ERROR):
for x in xrange(100):
list(Handler.stack_manager.iter_context_objects())
Jump to Line
Something went wrong with that request. Please try again.