summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2019-01-28 16:53:25 +0100
committerChristoph Reiter <reiter.christoph@gmail.com>2019-01-28 16:56:32 +0100
commit208a6295893d9da6e511d9f1a09be0ebe8eec646 (patch)
tree7634c27e1a420e16dbb67e6a39386ead0fa5e38e
parent6a0f651e9659f11a8e6d8c29abdef10ebe795b9f (diff)
downloadpygobject-208a6295893d9da6e511d9f1a09be0ebe8eec646.tar.gz
test_atoms: handle missing axes labels. Fixes #300
-rw-r--r--tests/test_atoms.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_atoms.py b/tests/test_atoms.py
index 0068723b..26d5c43a 100644
--- a/tests/test_atoms.py
+++ b/tests/test_atoms.py
@@ -97,5 +97,5 @@ class TestGdkAtom(unittest.TestCase):
dm = display.get_device_manager()
device = dm.get_client_pointer()
axes = device.list_axes()
- axes_names = [atom.name() for atom in axes]
- self.assertNotEqual(axes_names, [])
+ axes_names = [atom.name() for atom in axes if atom is not None]
+ assert all(isinstance(name, str) for name in axes_names)