unt-libraries / pycallnumber

Parse, model, and manipulate any type of call number string.
BSD 3-Clause "New" or "Revised" License
64 stars 9 forks source link

Resolve deprecation warnings during tests #29

Closed jthomale closed 6 years ago

jthomale commented 6 years ago

This update resolves the two issues leading to deprecation warnings during testing.

  1. The utils.memoize function now uses inspect.signature if available (Python 3), and falls back on inspect.getargspec (Python 2, deprecated in 3.7, I guess?) otherwise.

  2. The tests.helpers functions that generated parameters for tests were using a deprecated method for marking parameters with custom marks. Updated the generator functions to use the new method, which resolved those thousands of warnings.