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

« back to all changes in this revision

Viewing changes to tests/test_country_mirror.py

  • Committer: Steve Langasek
  • Date: 2012-06-13 22:19:48 UTC
  • mto: This revision was merged to the branch mainline in revision 2491.
  • Revision ID: steve.langasek@canonical.com-20120613221948-ewswo7qo5kllijbr
tests/test_country_mirror.py: the test suite shouldn't fail if $LANG
isn't set in the environment.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
 
13
13
      def testSimple(self):
14
14
            # empty
15
 
            del os.environ["LANG"] 
 
15
            try:
 
16
                del os.environ["LANG"] 
 
17
            except KeyError:
 
18
                pass
16
19
            self.assertEqual(country_mirror(),'')
17
20
            # simple
18
21
            os.environ["LANG"] = 'de'