mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-20 07:38:54 +02:00
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:
@@ -72,7 +72,7 @@ class TestMkenums(unittest.TestCase):
|
|||||||
print('Response file contains:', contents)
|
print('Response file contains:', contents)
|
||||||
f.write(contents)
|
f.write(contents)
|
||||||
f.flush()
|
f.flush()
|
||||||
return f.name
|
return f.name
|
||||||
|
|
||||||
def runMkenums(self, *args):
|
def runMkenums(self, *args):
|
||||||
if self.rspfile:
|
if self.rspfile:
|
||||||
|
Reference in New Issue
Block a user