]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Remove duplicate deep_copy call and no-op assert
authorZack Cerza <zack@redhat.com>
Tue, 14 Jun 2016 18:19:55 +0000 (12:19 -0600)
committerZack Cerza <zack@redhat.com>
Tue, 14 Jun 2016 18:32:24 +0000 (12:32 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/suite/test/test_init.py

index 6c576627362d7e9ca71e62b6b1a5528b5176fed5..16b07a888d5480581d18067302f651d073395c98 100644 (file)
@@ -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):