def METHOD_NAME(self) -> None:
    old_cwd = os.getcwd()
    cr = bahc.CodeRunner("import os; os.chdir('/')", "path", ["foo", "10"])
    assert not cr.ran
    m = cr.new_module()
    cr.run(m, lambda: None)
    assert os.getcwd() == old_cwd