@support.cpython_only
def test_same_filename_used(self):
    s = 'def f(): pass\ndef g(): pass'
    c = compile(s, 'myfile', 'exec')
    for obj in c.co_consts:
        if isinstance(obj, types.CodeType):
            self.assertIs(obj.co_filename, c.co_filename)
@support.cpython_only
def test_same_filename_used(self):
    s = 'def f(): pass\ndef g(): pass'
    c = compile(s, 'myfile', 'exec')
    for obj in c.co_consts:
        if isinstance(obj, types.CodeType):
            self.assertIs(obj.co_filename, c.co_filename)