summaryrefslogtreecommitdiff
path: root/tests/test_gobject.py
diff options
context:
space:
mode:
authorIain Lane <iain@orangesquash.org.uk>2016-03-24 18:04:40 +0000
committerIain Lane <iain.lane@canonical.com>2016-03-24 18:18:04 +0000
commitb3f897b98c5a2c59ea34a8afcce0448b1ffb0731 (patch)
treeadcd21889ffd7ad547d67b92e47df56f4670f04c /tests/test_gobject.py
parent6ff29c91dfdbcc3203405da0aca8dbfa318d8b32 (diff)
downloadpygobject-b3f897b98c5a2c59ea34a8afcce0448b1ffb0731.tar.gz
test_gerror_novalue: Don't assign the error to a variable
Otherwise the build fails with: CHECK Pyflakes examples gi tests pygtkcompat tests/test_gobject.py:689: local variable 'error' is assigned to but never used https://bugzilla.gnome.org/show_bug.cgi?id=764165
Diffstat (limited to 'tests/test_gobject.py')
-rw-r--r--tests/test_gobject.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_gobject.py b/tests/test_gobject.py
index e78132df..39a277b5 100644
--- a/tests/test_gobject.py
+++ b/tests/test_gobject.py
@@ -686,7 +686,7 @@ class TestGValue(unittest.TestCase):
self.assertEqual(unboxed.code, error.code)
def test_gerror_novalue(self):
- error = GLib.Error('test message', domain='mydomain', code=42)
+ GLib.Error('test message', domain='mydomain', code=42)
value = GObject.Value(GLib.Error)
self.assertEqual(value.g_type, GObject.type_from_name('GError'))
self.assertEqual(value.get_value(), None)