Commits

Mike Bayer committed 35e8259

- adjust this to work normally with current logging approach

Comments (0)

Files changed (1)

doc/build/testdocs.py

 import sqlalchemy.log as salog
 import logging
 
-salog.default_enabled=True
-rootlogger = logging.getLogger('sqlalchemy')
-rootlogger.setLevel(logging.NOTSET)
+rootlogger = logging.getLogger('sqlalchemy.engine.base.Engine')
 class MyStream(object):
     def write(self, string):
         sys.stdout.write(string)
         raise ValueError("Couldn't find suitable create_engine call to replace '%s' in it" % oldfile)
     return s
 
-for filename in ('orm/tutorial', 'core/tutorial'):
-	filename = '%s.rst' % filename
-	s = open(filename).read()
-	#s = replace_file(s, ':memory:')
-	s = re.sub(r'{(?:stop|sql|opensql)}', '', s)
-	teststring(s, filename)
+for filename in ('orm/tutorial', 'core/tutorial',):
+    filename = '%s.rst' % filename
+    s = open(filename).read()
+    #s = replace_file(s, ':memory:')
+    s = re.sub(r'{(?:stop|sql|opensql)}', '', s)
+    teststring(s, filename)