← Back to team overview

touch-packages team mailing list archive

[Bug 1456350] Re: Apps importing UITK 1.2 or older print a lot of UCDeprecatedTheme deprecation notes

 

phablet@ubuntu-phablet:~$ SUPPRESS_DEPRECATED_NOTE=yes autopilot3 run
ubuntu_system_settings.tests.test_about.StorageTestCase

Loading tests from: /usr/lib/python3/dist-packages

Tests running...

Ran 9 tests in 265.605s
OK
phablet@ubuntu-phablet:~$ 



HURRAY \o/

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ubuntu-ui-toolkit in
Ubuntu.
https://bugs.launchpad.net/bugs/1456350

Title:
  Apps importing UITK 1.2 or older print a lot of UCDeprecatedTheme
  deprecation notes

Status in ubuntu-ui-toolkit package in Ubuntu:
  New

Bug description:
  We should not be printing these warnings in UITK <= 1.2 because there
  using 'Theme' instead of 'theme' is a valid way of doing stuff.

  Also it slows down the app because it prints hundreds of these
  warnings some times.

  For example, running this on device results in OK:
  SUPPRESS_DEPRECATED_NOTE=yes autopilot3 run ubuntu_system_settings.tests.test_about.StorageTestCase.test_disk

  but when I leave out the 'SUPPRESS_DEPRECATED_NOTE=yes', the test
  fails.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1456350/+subscriptions


References