This is an automated email from the ASF dual-hosted git repository.
fokko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/avro.git
The following commit(s) were added to refs/heads/master by this push:
new e644e23 AVRO-2439: Remove a DeprecationWarning from Py3 test (#554)
e644e23 is described below
commit e644e23998578d4b5e1995482c811b1174758be8
Author: Kengo Seki <[email protected]>
AuthorDate: Wed Jun 26 17:09:32 2019 +0900
AVRO-2439: Remove a DeprecationWarning from Py3 test (#554)
---
lang/py3/avro/tests/test_schema.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lang/py3/avro/tests/test_schema.py
b/lang/py3/avro/tests/test_schema.py
index c2759da..6c548a3 100644
--- a/lang/py3/avro/tests/test_schema.py
+++ b/lang/py3/avro/tests/test_schema.py
@@ -643,7 +643,7 @@ class TestSchema(unittest.TestCase):
}"""
with self.assertRaises(schema.SchemaParseException) as e:
schema.Parse(schema_string)
- self.assertRegexpMatches(str(e.exception), 'Duplicate.*field name.*foo')
+ self.assertRegex(str(e.exception), 'Duplicate.*field name.*foo')
#
------------------------------------------------------------------------------