[Bug 1852772] [NEW] test_updates_interval fails on focal

Corey Bryant corey.bryant at canonical.com
Fri Nov 15 16:58:42 UTC 2019


Public bug reported:

======================================================================                                
FAIL: test_updates_interval (tests.test_dbus.TestDBus)                                                
----------------------------------------------------------------------                                
Traceback (most recent call last):                                                                    
  File "/build/software-properties-0.98.6/tests/test_dbus.py", line 332, in test_updates_interval     
    self.assertTrue('APT::Periodic::Update-Package-Lists "1";' in config)                                                                                                                                   
AssertionError: False is not true   

Looking closer, while in the SetUpdateInterval() method in
softwareproperties/dbus/SoftwarePropertiesDBus.py, days is of dbus.Int32
type. A simple print output shows:

days=dbus.Int32(1)

D-Bus is statically typed, unlike python. More details at:
https://dbus.freedesktop.org/doc/dbus-python/tutorial.html#data-types

I think once we're in the dbus method (SetUpdateInterval() method in
softwareproperties/dbus/SoftwarePropertiesDBus.py) we can convert the
dbus.Int32 to an int.

** Affects: software-properties (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to software-properties in Ubuntu.
https://bugs.launchpad.net/bugs/1852772

Title:
  test_updates_interval fails on focal

Status in software-properties package in Ubuntu:
  New

Bug description:
  ======================================================================                                
  FAIL: test_updates_interval (tests.test_dbus.TestDBus)                                                
  ----------------------------------------------------------------------                                
  Traceback (most recent call last):                                                                    
    File "/build/software-properties-0.98.6/tests/test_dbus.py", line 332, in test_updates_interval     
      self.assertTrue('APT::Periodic::Update-Package-Lists "1";' in config)                                                                                                                                   
  AssertionError: False is not true   

  Looking closer, while in the SetUpdateInterval() method in
  softwareproperties/dbus/SoftwarePropertiesDBus.py, days is of
  dbus.Int32 type. A simple print output shows:

  days=dbus.Int32(1)

  D-Bus is statically typed, unlike python. More details at:
  https://dbus.freedesktop.org/doc/dbus-python/tutorial.html#data-types

  I think once we're in the dbus method (SetUpdateInterval() method in
  softwareproperties/dbus/SoftwarePropertiesDBus.py) we can convert the
  dbus.Int32 to an int.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1852772/+subscriptions



More information about the foundations-bugs mailing list