From: Zack Cerza Date: Tue, 14 Jun 2016 18:19:55 +0000 (-0600) Subject: Remove duplicate deep_copy call and no-op assert X-Git-Tag: 1.1.0~603^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=aa64de4f191be44f97138ffd4fcce3dd37759896;p=teuthology.git Remove duplicate deep_copy call and no-op assert Signed-off-by: Zack Cerza --- diff --git a/teuthology/suite/test/test_init.py b/teuthology/suite/test/test_init.py index 6c5766273..16b07a888 100644 --- a/teuthology/suite/test/test_init.py +++ b/teuthology/suite/test/test_init.py @@ -80,7 +80,6 @@ def test_wait_success(m_get_jobs, caplog): assert 0 == len(in_progress) assert 'fail http://UPLOAD_URL/name/2' in caplog.text() - in_progress = deepcopy(results) in_progress = deepcopy(results) assert 0 == suite.wait('name', 1, None) assert m_get_jobs.called_with('name', fields=['job_id', 'status']) @@ -100,9 +99,8 @@ def test_wait_fails(m_get_jobs): m_get_jobs.side_effect = get_jobs suite.Run.WAIT_PAUSE = 1 suite.Run.WAIT_MAX_JOB_TIME = 1 - with pytest.raises(suite.WaitException) as error: + with pytest.raises(suite.WaitException): suite.wait('name', 1, None) - assert 'abc' in str(error) class TestSuiteMain(object):