# test_visit_if_else.py
# This should pass.
# This should terminate.

x = 0
if x:
    pass
else:
    def f(): return 42
def main():
    assert f() == 42

main()
# def test_visit_if_else(self):
#     codestr = """
#         x = 0
#         if x:
#             pass
#         else:
#             def f(): return 42
#     """
#     with self.in_module(codestr) as mod:
#         self.assertEqual(mod.f(), 42)
