fix tests according to pytests warnings
This commit is contained in:
parent
79d3750629
commit
2daa71614e
8 changed files with 10 additions and 10 deletions
|
|
@ -45,7 +45,7 @@ class TestBuildinfo(utils.CliTestCase):
|
|||
'volume_name': 'DEFAULT'}
|
||||
|
||||
def tearDown(self):
|
||||
locale.resetlocale()
|
||||
locale.setlocale(locale.LC_ALL, "")
|
||||
if self.original_timezone is None:
|
||||
del os.environ['TZ']
|
||||
else:
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ class TestHostinfo(utils.CliTestCase):
|
|||
self.ensure_connection_mock = mock.patch('koji_cli.commands.ensure_connection').start()
|
||||
|
||||
def tearDown(self):
|
||||
locale.resetlocale()
|
||||
locale.setlocale(locale.LC_ALL, "")
|
||||
if self.original_timezone is None:
|
||||
del os.environ['TZ']
|
||||
else:
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ class TestListHosts(utils.CliTestCase):
|
|||
'user_id': 2}]
|
||||
|
||||
def tearDown(self):
|
||||
locale.resetlocale()
|
||||
locale.setlocale(locale.LC_ALL, "")
|
||||
if self.original_timezone is None:
|
||||
del os.environ['TZ']
|
||||
else:
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ class TestRpminfo(utils.CliTestCase):
|
|||
""" % (self.progname, self.progname)
|
||||
|
||||
def tearDown(self):
|
||||
locale.resetlocale()
|
||||
locale.setlocale(locale.LC_ALL, "")
|
||||
if self.original_timezone is None:
|
||||
del os.environ['TZ']
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue