This looks good to me. I ran the test without the code change and it failed as
it should:
```
======================================================================
FAIL: testUnionSchemaSpecificity (avro.tests.test_io.TestIO)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/michaels/avro/lang/py3/avro/tests/test_io.py", line 371, in
testUnionSchemaSpecificity
self.assertEqual(datum_to_read, datum_read)
AssertionError: {'entity': {'foo': 'this is an instance of schema A'}} !=
{'entity': {'bar': None}}
- {'entity': {'foo': 'this is an instance of schema A'}}
+ {'entity': {'bar': None}}
```
then I added the code change back and verified the tests all pass.
[ Full content available at: https://github.com/apache/avro/pull/331 ]
This message was relayed via gitbox.apache.org for [email protected]