~ubuntu-branches/ubuntu/vivid/gdebi/vivid

« back to all changes in this revision

Viewing changes to tests/test_gdebi_gtk_lintian.py

  • Committer: Package Import Robot
  • Author(s): Luca Falavigna, Michael Vogt, Michael Werle, Luca Falavigna
  • Date: 2014-04-22 10:54:48 UTC
  • mfrom: (34.2.8 sid)
  • Revision ID: package-import@ubuntu.com-20140422105448-ek8sm24ge6q4s7ti
Tags: 0.9.5.4
[ Michael Vogt ]
* fix installing of dependency packages when called with sudo
  (LP: #1309387)

[ Michael Werle ]
* gdebi-kde, GDebi/GDebiKDE.py:
  - Fix python3 internatlization bugs (Closes: #743756) (LP: #1304143).

[ Luca Falavigna ]
* Fix tests at build time (Closes: #743091).

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
import time
5
5
import unittest
6
6
 
7
 
from gi.repository import GObject
 
7
from gi.repository import GLib
8
8
from unittest.mock import patch
9
9
 
10
10
from GDebi.GDebiGtk import GDebiGtk
26
26
 
27
27
 
28
28
def do_events():
29
 
    context = GObject.main_context_default()
 
29
    context = GLib.main_context_default()
30
30
    while context.pending():
31
31
        context.iteration()
32
32
 
46
46
            os.path.join(self.testsdir, "error-package_1.0_all.deb"))
47
47
        # wait for lintian to finish
48
48
        for i in range(25):
49
 
            time.sleep(0.2)
 
49
            time.sleep(1)
50
50
            do_events()
51
51
            if gdebi._lintian_exit_status is not None:
52
52
                break