"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "gio/tests/memory-monitor-dbus.py.in" between
glib-2.69.2.tar.xz and glib-2.69.3.tar.xz

About: GLib is a low-level core C library used by GTK+ and GNOME. Development version.

memory-monitor-dbus.py.in  (glib-2.69.2.tar.xz):memory-monitor-dbus.py.in  (glib-2.69.3.tar.xz)
skipping to change at line 102 skipping to change at line 102
# Wait 2 seconds # Wait 2 seconds
timeout = 2 timeout = 2
while timeout > 0: while timeout > 0:
time.sleep(0.5) time.sleep(0.5)
timeout -= 0.5 timeout -= 0.5
self.main_context.iteration(False) self.main_context.iteration(False)
self.dbusmock.EmitWarning(100) self.dbusmock.EmitWarning(100)
# Wait 2 seconds or until warning # Wait 2 seconds or until warning
self.assertEventually(self.last_warning == 100, "'100' low-memory wa rning not received", 20) self.assertEventually(lambda: self.last_warning == 100, "'100' low-m emory warning not received", 20)
self.dbusmock.EmitWarning(255) self.dbusmock.EmitWarning(255)
# Wait 2 seconds or until warning # Wait 2 seconds or until warning
self.assertEventually(self.last_warning == 255, "'255' low-memory wa rning not received", 20) self.assertEventually(lambda: self.last_warning == 255, "'255' low-m emory warning not received", 20)
except ImportError as e: except ImportError as e:
@unittest.skip("Cannot import %s" % e.name) @unittest.skip("Cannot import %s" % e.name)
class TestLowMemoryMonitor(unittest.TestCase): class TestLowMemoryMonitor(unittest.TestCase):
def test_low_memory_warning_signal(self): def test_low_memory_warning_signal(self):
pass pass
if __name__ == '__main__': if __name__ == '__main__':
unittest.main(testRunner=taptestrunner.TAPTestRunner()) unittest.main(testRunner=taptestrunner.TAPTestRunner())
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)