[Bug 1735162] Re: [SRU] Cannot import basetest in python3

Robie Basak 1735162 at bugs.launchpad.net
Wed Jan 17 16:11:12 UTC 2018


SRU review:

The only code changes add Python 3 compatibility. Since python3-google-
apputils shipped in Xenial, the package was broken as shipped and can be
fixed under SRU policy.

The patch being included here (and in Bionic) has yet to be reviewed or
accepted upstream.

I did notice one issue, but it is non-functional as the type of
_STRING_TYPES and _INT_TYPES (whether a tuple or a raw instance of type)
happen not to matter because of how they are used and I have commented
on the pull request upstream.

Please make sure to test both Python 2 and Python 3 functionality during
SRU verification.

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

Title:
  [SRU] Cannot import basetest in python3

Status in google-apputils-python package in Ubuntu:
  Fix Released
Status in google-apputils-python source package in Xenial:
  In Progress
Status in google-apputils-python source package in Artful:
  In Progress

Bug description:
  [Impact]
  We need to get this SRUed in Xenial too as part of https://bugs.launchpad.net/xenial-backports/+bug/1735160

  [Test Case]

  To reproduce:

  $ python3 -c "from google.apputils import basetest"

  It will fail showing something like that:

  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/usr/lib/python3/dist-packages/google/apputils/basetest.py", line 37, in <module>
      import urlparse
  ImportError: No module named 'urlparse'

  [Regression Potential]
  Please make sure:
  $ python2 -c "from google.apputils import basetest"

  still works

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/google-apputils-python/+bug/1735162/+subscriptions



More information about the foundations-bugs mailing list