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:
14
py311.patch
Normal file
14
py311.patch
Normal 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"
|
||||
Reference in New Issue
Block a user