NotificationTestCase failures
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Ubuntu One Client | Status tracked in Trunk | |||||
Stable-3-0 |
Fix Released
|
Undecided
|
dobey | |||
Trunk |
Fix Released
|
Medium
|
dobey |
Bug Description
Trace is:
=======
[ERROR]
Traceback (most recent call last):
File "/usr/lib/
result = g.send(result)
File "/home/
self.
File "/usr/lib/
raise AssertionError(
exceptions.
=> pynotify.init('Teh wonderful app.')
- Performed fewer times than expected.
=> pynotify.
- Performed fewer times than expected.
=> mock_notificati
- Performed fewer times than expected.
=> mock_notificati
- Performed fewer times than expected.
=> mock_notificati
- Performed fewer times than expected.
=> mock_notificati
- Performed fewer times than expected.
=> mock_notificati
- Performed fewer times than expected.
tests.platform.
=======
[ERROR]
Traceback (most recent call last):
File "/usr/lib/
result = g.send(result)
File "/home/
self.
File "/usr/lib/
raise AssertionError(
exceptions.
=> pynotify.init('Teh wonderful app.')
- Performed fewer times than expected.
=> pynotify.
- Performed fewer times than expected.
=> mock_notificati
- Performed fewer times than expected.
tests.platform.
=======
[ERROR]
Traceback (most recent call last):
File "/usr/lib/
result = g.send(result)
File "/home/
self.
File "/usr/lib/
raise AssertionError(
exceptions.
=> pynotify.init('Teh wonderful app.')
- Performed fewer times than expected.
=> pynotify.
- Performed fewer times than expected.
=> mock_notificati
- Performed fewer times than expected.
tests.platform.
=======
[ERROR]
Traceback (most recent call last):
File "/usr/lib/
result = g.send(result)
File "/home/
self.
File "/usr/lib/
raise AssertionError(
exceptions.
=> pynotify.init('Teh wonderful app.')
- Performed fewer times than expected.
=> pynotify.
- Performed fewer times than expected.
=> mock_notificati
- Performed fewer times than expected.
=> mock_notificati
- Performed fewer times than expected.
=> mock_notificati
- Performed fewer times than expected.
tests.platform.
-------
Ran 2516 tests in 818.915s
FAILED (skips=12, errors=4, successes=2500)
I asked alecu about this, and he said:
(10:30:45 AM) alecu: nessita, it seems that the tests are "mocking" the pynotify module. But if the pynotify module is not installed the platform dependent code just does not install a notifier.
(10:31:26 AM) alecu: nessita, and it also happens that the pynotify module is not installed either if the notify GI is available.
(10:31:57 AM) alecu: nessita, so: either there's a GI for pynotify now, or the pynotify module is not installed.
(10:32:42 AM) alecu: nessita, in any case we should make the notify tests be a bit more smarter, and find out what the real notification module is.
(10:34:29 AM) alecu: nessita, right. And that means that the pynotify module is notinstalled
(10:34:41 AM) alecu: nessita, (I mean, by our code)
(10:34:47 AM) alecu: *imported (not installed)
Related branches
- Natalia Bidart (community): Approve
- Roberto Alsina (community): Approve
-
Diff: 505 lines (+113/-154)14 files modifiedMakefile.am (+2/-2)
bin/u1sdtool (+6/-2)
bin/ubuntuone-syncdaemon (+6/-2)
contrib/dbus-docs (+5/-2)
contrib/login_email_password.py (+6/-2)
tests/platform/linux/eventlog/test_zg_listener.py (+1/-1)
tests/platform/linux/test_messaging.py (+8/-4)
tests/platform/linux/test_notification.py (+16/-17)
tests/platform/linux/test_os_helper.py (+15/-4)
tests/status/test_aggregator.py (+2/-0)
ubuntuone/platform/linux/messaging.py (+42/-37)
ubuntuone/platform/linux/notification.py (+3/-1)
ubuntuone/platform/linux/os_helper.py (+1/-1)
ubuntuone/syncdaemon/sdreactor.py (+0/-79)
Changed in ubuntuone-client: | |
assignee: | nobody → Alejandro J. Cura (alecu) |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in ubuntuone-client: | |
assignee: | Alejandro J. Cura (alecu) → Rodney Dawes (dobey) |
Changed in ubuntuone-client: | |
milestone: | none → 2.99.3 |
milestone: | 2.99.3 → none |
Changed in ubuntuone-client: | |
status: | Triaged → Fix Committed |
Changed in ubuntuone-client: | |
milestone: | none → 2.99.4 |