(self)
| 2338 | self.assertInstructionsEqual(list(actual), expected_opinfo_outer) |
| 2339 | |
| 2340 | def test_source_line_in_disassembly(self): |
| 2341 | # Use the line in the source code |
| 2342 | actual = dis.Bytecode(simple).dis() |
| 2343 | actual = actual.strip().partition(" ")[0] # extract the line no |
| 2344 | expected = str(simple.__code__.co_firstlineno) |
| 2345 | self.assertEqual(actual, expected) |
| 2346 | # Use an explicit first line number |
| 2347 | actual = dis.Bytecode(simple, first_line=350).dis() |
| 2348 | actual = actual.strip().partition(" ")[0] # extract the line no |
| 2349 | self.assertEqual(actual, "350") |
| 2350 | |
| 2351 | @unittest.expectedFailure # TODO: RUSTPYTHON |
| 2352 | def test_info(self): |
nothing calls this directly
no test coverage detected