aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/16_test_supercommand.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/16_test_supercommand.py')
-rw-r--r--tests/16_test_supercommand.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/16_test_supercommand.py b/tests/16_test_supercommand.py
index 884437bc..f72bb562 100644
--- a/tests/16_test_supercommand.py
+++ b/tests/16_test_supercommand.py
@@ -37,7 +37,7 @@ class TestSuperCommand(unittest.TestCase):
def test_invalid_command(self):
"""Test if we fail correctly with an invalid command"""
old_stderr = sys.stderr
- with file('/dev/null', 'w') as sys.stderr:
+ with open('/dev/null', 'w') as sys.stderr:
self.assertEqual(gbp.scripts.supercommand.supercommand(
['argv0', 'asdf']), 2)
self.assertEqual(gbp.scripts.supercommand.supercommand(