Skip to content

Commit 16bda20

Browse files
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' ```
1 parent 7a3724f commit 16bda20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/python_test_v4.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@
798798
except gitlab.GitlabCreateError as e:
799799
error_message = e.error_message
800800
break
801-
assert 'Retry later' in error_message.decode()
801+
assert 'Retry later' in error_message
802802
[current_project.delete() for current_project in projects]
803803
settings.throttle_authenticated_api_enabled = False
804804
settings.save()

0 commit comments

Comments
 (0)