~jawn-smith/update-manager/autoremove-check-boxes

« back to all changes in this revision

Viewing changes to tests/test_meta_release_core.py

  • Committer: Brian Murray
  • Date: 2021-01-14 18:43:01 UTC
  • mfrom: (2902.1.1 main)
  • Revision ID: brian@canonical.com-20210114184301-xc8fhxjd2yrm5gdw
Tags: 1:21.04.4
releasing package update-manager version 1:21.04.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
import os
8
8
import sys
9
9
import tempfile
 
10
import glob
10
11
try:
11
12
    from test.support import EnvironmentVarGuard
12
13
except ImportError:
89
90
        self.httpd_process.join()
90
91
        install_opener(None)
91
92
 
 
93
        bin_list = glob.glob(os.path.join(CURDIR,
 
94
                                          "aptroot-changelog/"
 
95
                                          "var/cache/apt/*.bin"))
 
96
        for bin_file in bin_list:
 
97
            try:
 
98
                os.remove(bin_file)
 
99
            except OSError:
 
100
                pass
 
101
 
92
102
    def testnewdist(self):
93
103
        """ test that upgrades offer the right upgrade path """
94
104
        for (current, next) in [("dapper", "hardy"),