gobject/tests/mkenums.py: Fix _write_rspfile()

The 'return f.name' should be in the same level as the body of
'with tempfile.NamedTemporaryFile(...) as f:'
This commit is contained in:
Chun-wei Fan 2019-06-24 23:48:37 +08:00
parent bd5922db09
commit 108a8d842f

View File

@ -72,7 +72,7 @@ class TestMkenums(unittest.TestCase):
print('Response file contains:', contents)
f.write(contents)
f.flush()
return f.name
return f.name
def runMkenums(self, *args):
if self.rspfile: