(code)
| 737 | gc.set_debug(%s) |
| 738 | """ |
| 739 | def run_command(code): |
| 740 | p = subprocess.Popen([sys.executable, "-Wd", "-c", code], |
| 741 | stdout=subprocess.PIPE, |
| 742 | stderr=subprocess.PIPE) |
| 743 | stdout, stderr = p.communicate() |
| 744 | p.stdout.close() |
| 745 | p.stderr.close() |
| 746 | self.assertEqual(p.returncode, 0) |
| 747 | self.assertEqual(stdout, b"") |
| 748 | return stderr |
| 749 | |
| 750 | stderr = run_command(code % "0") |
| 751 | self.assertIn(b"ResourceWarning: gc: 2 uncollectable objects at " |
nothing calls this directly
no test coverage detected