From cf56b7782eed32174d1f8a1af129bb4b2bc08578 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl>
Date: Thu, 10 Jun 2021 20:11:09 +0200
Subject: [PATCH] support 2.3

---
 .gitignore             | 2 +-
 setup.cfg              | 2 +-
 tests/test_minijson.py | 6 ++++++
 3 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/.gitignore b/.gitignore
index dec61f1..0a76ed3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,7 +2,7 @@
 __pycache__/
 *.py[cod]
 *$py.class
-
+*.c
 # C extensions
 *.so
 .idea/
diff --git a/setup.cfg b/setup.cfg
index dffcfdc..e47e06c 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -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
diff --git a/tests/test_minijson.py b/tests/test_minijson.py
index 3563240..0185028 100644
--- a/tests/test_minijson.py
+++ b/tests/test_minijson.py
@@ -5,6 +5,12 @@ from minijson import dumps, loads, dumps_object, loads_object, EncodingError, De
 
 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))
 
-- 
GitLab