[pygobject/pygobject-3-32] test_overrides_gtk: be less strict re gtk window heights



commit 0b7d5e79187a0c8ba609737e1f718d62ef51e123
Author: Christoph Reiter <reiter christoph gmail com>
Date:   Sun Jun 23 15:31:07 2019 +0200

    test_overrides_gtk: be less strict re gtk window heights
    
    This depends on whether CSD is used or not and theme related things.
    We only know for sure that it's larger than the inlcuded button.
    
    Fixes the test suite under wayland.

 tests/test_overrides_gtk.py | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
---
diff --git a/tests/test_overrides_gtk.py b/tests/test_overrides_gtk.py
index d96d8fe8..d791e240 100644
--- a/tests/test_overrides_gtk.py
+++ b/tests/test_overrides_gtk.py
@@ -150,11 +150,7 @@ def test_wrapper_toggle_refs():
     del b
     gc.collect()
     gc.collect()
-    if GTK4:
-        # XXX: Why?
-        assert w.get_preferred_size().minimum_size.height == height + 10
-    else:
-        assert w.get_preferred_size().minimum_size.height == height
+    assert w.get_preferred_size().minimum_size.height >= height
 
 
 @unittest.skipUnless(Gtk, 'Gtk not available')


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]