15
0
forked from pool/python-avro

- Add py311.patch to make tests compatible with python 3.11 gh#apache/avro#1961

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-avro?expand=0&rev=28
This commit is contained in:
2023-01-25 12:58:47 +00:00
committed by Git OBS Bridge
parent cdd2864024
commit 55d8da65e4
3 changed files with 23 additions and 3 deletions

14
py311.patch Normal file
View File

@@ -0,0 +1,14 @@
Index: avro-1.11.1/avro/compatibility.py
===================================================================
--- avro-1.11.1.orig/avro/compatibility.py
+++ avro-1.11.1/avro/compatibility.py
@@ -49,6 +49,9 @@ class SchemaType(str, Enum):
STRING = "string"
UNION = "union"
+ def __str__(self):
+ return self.value
+
class SchemaCompatibilityType(Enum):
compatible = "compatible"