anntzer / defopt

Effortless argument parser
https://pypi.org/project/defopt/
MIT License
213 stars 11 forks source link

Don't use deprecated unittest API. #79

Closed anntzer closed 4 years ago

anntzer commented 5 years ago

Gets rid of "DeprecationWarning: Please use assertRaisesRegex instead" in the test suite.

evanunderscore commented 4 years ago

I didn't think this was supported in 2.7, but the tests look like they pass. Do you know how?

anntzer commented 4 years ago

You patched it there: https://github.com/evanunderscore/defopt/blame/master/test_defopt.py#L27.

evanunderscore commented 4 years ago

Whoops, thanks.

anntzer commented 4 years ago

good to go?

evanunderscore commented 4 years ago

Sure, merge when ready.