diff options
| author | Christoph Reiter <reiter.christoph@gmail.com> | 2019-01-28 16:53:25 +0100 |
|---|---|---|
| committer | Christoph Reiter <reiter.christoph@gmail.com> | 2019-01-28 16:56:32 +0100 |
| commit | 208a6295893d9da6e511d9f1a09be0ebe8eec646 (patch) | |
| tree | 7634c27e1a420e16dbb67e6a39386ead0fa5e38e | |
| parent | 6a0f651e9659f11a8e6d8c29abdef10ebe795b9f (diff) | |
| download | pygobject-208a6295893d9da6e511d9f1a09be0ebe8eec646.tar.gz | |
test_atoms: handle missing axes labels. Fixes #300
| -rw-r--r-- | tests/test_atoms.py | 4 |
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) |
