Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests/conftest: Don't subclass dbusmock.DBusTestCase
For historical reasons, dbusmock is written for Python's unittest framework and most of what it does is done via @classmethod. We called it on the subclassed object though, so we got some weird behaviors. In particular, things like `a = foo.someval` would resolve to the parent class' `someval` but `foo.someval = a` would set that value on the subclassed object. This lead, indirectly, to our forked dbus-daemon not getting terminated. This needs to be be fixed in dbusmock (see [1]) but for now simply work around this by instantiating the DBusTestCase class directly. [1] martinpitt/python-dbusmock#184
- Loading branch information