Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-2439

Remove a DeprecationWarning from Py3 test

    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 1.10.0
    • python
    • None

    Description

      Ran tests for Python3 and found the following warning:

      testDuplicateRecordField (avro.tests.test_schema.TestSchema) ... /home/sekikn/repo/avro/lang/py3/avro/tests/test_schema.py:646: DeprecationWarning: Please use assertRegex instead.
        self.assertRegexpMatches(str(e.exception), 'Duplicate.*field name.*foo')
      

      Attachments

        Issue Links

          Activity

            People

              sekikn Kengo Seki
              sekikn Kengo Seki
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: