Skip to content

Commit

Permalink
support 2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrmaslanka committed Jun 10, 2021
1 parent a3b0b76 commit cf56b77
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
__pycache__/
*.py[cod]
*$py.class

*.c
# C extensions
*.so
.idea/
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# coding: utf-8
[metadata]
version = 2.3a1
version = 2.3
name = minijson
long_description = file: README.md
long_description_content_type = text/markdown; charset=UTF-8
Expand Down
6 changes: 6 additions & 0 deletions tests/test_minijson.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@

class TestMiniJSON(unittest.TestCase):

def test_accepts_bytearrays(self):
b = {'test': 'hello'}
a = dumps(b)
a = bytearray(a)
self.assertEqual(loads(a), b)

def assertLoadingIsDecodingError(self, b: bytes):
self.assertRaises(DecodingError, lambda: loads(b))

Expand Down

0 comments on commit cf56b77

Please sign in to comment.