~ubuntu-branches/debian/sid/aptdaemon/sid

« back to all changes in this revision

Viewing changes to tests/test_dbus_type.py

  • Committer: Package Import Robot
  • Author(s): Julian Andres Klode
  • Date: 2012-03-05 16:03:14 UTC
  • mfrom: (18.1.73 precise)
  • Revision ID: package-import@ubuntu.com-20120305160314-zhwgowgtnu14tlc2
Tags: 0.43+bzr769-1
* New upstream snapshot
  - Works without pkcompat (Closes: #652644)
* Merge with Ubuntu; remaining changes:
  - debian/control: Changes of Vcs, Maintainer stuff
  - Do not use dh-translations

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
import unittest
10
10
 
11
11
import dbus
12
 
import gobject
 
12
from gi.repository import GObject
13
13
 
14
14
from aptdaemon import worker
15
15
from aptdaemon import core
52
52
                    self.ifaces[iface][name] = sig
53
53
        self.start_dbus_daemon()
54
54
        self.dbus = dbus.bus.BusConnection(self.dbus_address)
55
 
        self.loop = gobject.MainLoop()
 
55
        self.loop = GObject.MainLoop()
56
56
        self.error = None
57
57
 
58
58
    def _on_property_changed(self, name, value, iface):
128
128
        try:
129
129
            for name, value in props.iteritems():
130
130
                self._check_property_type(iface, name, value)
131
 
        except Exception, error:
 
131
        except Exception as error:
132
132
            self.error = error
133
133
            raise
134
134
        finally:
165
165
        self.addCleanup(chroot.remove)
166
166
        chroot.setup()
167
167
        chroot.add_test_repository()
168
 
        apt_worker = worker.AptWorker()
 
168
        apt_worker = worker.AptWorker(load_plugins=False)
169
169
        apt_worker.run(trans)
170
170
        self.loop.run()
171
171
        self.assertEqual(self.error, None)