[pygobject/pygobject-3-20] test_gerror_novalue: Don't assign the error to a variable
- From: Iain Lane <iainl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject/pygobject-3-20] test_gerror_novalue: Don't assign the error to a variable
- Date: Thu, 24 Mar 2016 18:30:30 +0000 (UTC)
commit 1e1d5e071683287f3dcb99cc4407eed566dcb0e3
Author: Iain Lane <iain orangesquash org uk>
Date: Thu Mar 24 18:04:40 2016 +0000
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
tests/test_gobject.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tests/test_gobject.py b/tests/test_gobject.py
index e78132d..39a277b 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]