10000 Fixed ValueError (python 3.X) for create_file · pythonthings/github3.py@1536962 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1536962

Browse files
Fixed ValueError (python 3.X) for create_file
1 parent 12aecaf commit 1536962

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/integration/test_repos_repo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def test_create_file(self):
245245 data = {
246246
'path': 'hello.txt',
247247
'message': 'my commit message',
248-
'content': 'bXkgbmV3IGZpbGUgY29udGVudHM=',
248+
'content': b'bXkgbmV3IGZpbGUgY29udGVudHM=',
249249
'branch': 'develop',
250250
'committer': {
251251
'name': 'Matt Chung',

tests/unit/test_repos_repo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def test_create_file(self):
7171
data = {
7272
'path': 'hello.txt',
7373
'message': 'my commit message',
74-
'content': 'bXkgbmV3IGZpbGUgY29udGVudHM=',
74+
'content': b'bXkgbmV3IGZpbGUgY29udGVudHM=',
7575
'committer': {
7676
'name': 'Scott Chacon',
7777
'email': 'schacon@gmail.com'

0 commit comments

Comments
 (0)
0