summaryrefslogtreecommitdiff
path: root/tools/python_test_v4.py
diff options
context:
space:
mode:
authorSrikanth Chelluri <srikanth.chelluri@appian.com>2019-01-08 22:12:25 -0500
committerSrikanth Chelluri <srikanth.chelluri@appian.com>2019-01-08 22:12:25 -0500
commit16bda20514e036e51bef210b565671174cdeb637 (patch)
treebb14b5569d330e84b6b21cf3fdca9cc2fe7a2e36 /tools/python_test_v4.py
parent7a3724f3fca93b4f55aed5132cf46d3718c4f594 (diff)
downloadgitlab-16bda20514e036e51bef210b565671174cdeb637.tar.gz
fix: remove decode() on error_message string
The integration tests failed because a test called 'decode()' on a string-type variable - the GitLabException class handles byte-to-string conversion already in its __init__. This commit removes the call to 'decode()' in the test. ``` Traceback (most recent call last): File "./tools/python_test_v4.py", line 801, in <module> assert 'Retry later' in error_message.decode() AttributeError: 'str' object has no attribute 'decode' ```
Diffstat (limited to 'tools/python_test_v4.py')
-rw-r--r--tools/python_test_v4.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/python_test_v4.py b/tools/python_test_v4.py
index 30e4456..aacb3e7 100644
--- a/tools/python_test_v4.py
+++ b/tools/python_test_v4.py
@@ -798,7 +798,7 @@ for i in range(20, 40):
except gitlab.GitlabCreateError as e:
error_message = e.error_message
break
-assert 'Retry later' in error_message.decode()
+assert 'Retry later' in error_message
[current_project.delete() for current_project in projects]
settings.throttle_authenticated_api_enabled = False
settings.save()