~ubuntu-core-dev/update-manager/main

« back to all changes in this revision

Viewing changes to tests/test_meta_release_core.py

  • Committer: Brian Murray
  • Date: 2022-01-26 23:05:32 UTC
  • Revision ID: brian@canonical.com-20220126230532-zcwo2x3cd7xu6jug
tests/test_meta_release_core.py: use a try except so EnvironmentVarGuard
can be imported with python3.9 or python3.10.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
try:
15
15
    from test.support import EnvironmentVarGuard
16
16
except ImportError:
17
 
    from test.test_support import EnvironmentVarGuard
 
17
    from test.support.os_helper import EnvironmentVarGuard
18
18
try:
19
19
    from urllib.error import HTTPError
20
20
    from urllib.request import install_opener, urlopen