MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_trace_list_comprehension

Method test_trace_list_comprehension

Lib/test/test_trace.py:189–200  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

187
188 @unittest.expectedFailure # TODO: RUSTPYTHON; + ('/Users/al03219714/Projects/RustPython4/crates/pylib/Lib/test/test_trace.py', 87): 1}
189 def test_trace_list_comprehension(self):
190 self.tracer.runfunc(traced_caller_list_comprehension)
191
192 firstlineno_calling = get_firstlineno(traced_caller_list_comprehension)
193 firstlineno_called = get_firstlineno(traced_doubler)
194 expected = {
195 (self.my_py_filename, firstlineno_calling + 1): 1,
196 (self.my_py_filename, firstlineno_calling + 2): 11,
197 (self.my_py_filename, firstlineno_calling + 3): 1,
198 (self.my_py_filename, firstlineno_called + 1): 10,
199 }
200 self.assertEqual(self.tracer.results().counts, expected)
201
202 @unittest.expectedFailure # TODO: RUSTPYTHON; Diff is 996 characters long. Set self.maxDiff to None to see it.
203 def test_traced_decorated_function(self):

Callers

nothing calls this directly

Calls 4

get_firstlinenoFunction · 0.85
runfuncMethod · 0.80
resultsMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected