def METHOD_NAME(self):
    # Module globals and builtins should still be available during shutdown
    rc, out, err = assert_python_ok("-c", "from test import final_a")
    self.assertFalse(err)
    lines = out.splitlines()
    self.assertEqual(set(lines), {
        b"x = a",
        b"x = b",
        b"final_a.x = a",
        b"final_b.x = b",
        b"len = len",
        b"shutil.rmtree = rmtree"})