MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / run_buf

Method run_buf

test/base/test_tutorials.py:108–126  ·  test/base/test_tutorials.py::DocTest.run_buf
(fname, is_include)

Source from the content-addressed store, hash-verified

106 return fname
107
108 def run_buf(fname, is_include):
109 if not buf:
110 return
111
112 test = parser.get_doctest(
113 class="st">"".join(line for _, line in buf),
114 globs,
115 fname,
116 fname,
117 buf[0][0],
118 )
119 buf[:] = []
120 try:
121 runner.run(test, clear_globs=False)
122 globs.update(test.globs)
123 finally:
124 class="cm"># Clear test object references
125 test.globs.clear()
126 test.examples.clear()
127
128 doctest_enabled = True
129

Callers

nothing calls this directly

Calls 4

joinMethod · 0.45
runMethod · 0.45
updateMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected