Fix deprecated uses of pytest.raises()
Was already merged in Bitbucket before import, marked as merged by the import user
fixes pytest deprecation warnings with pytest >= 4.1
Was already merged in Bitbucket before import, marked as merged by the import user
fixes pytest deprecation warnings with pytest >= 4.1