bpo-30335: Add deprecation alias entry for assertNotRegexpMatches by DimitrisJim · Pull Request #1536 · python/cpython (original) (raw)
Thanks, Marco! Yes, it looks like it was never introduced, you're not seeing it in 3.1 or 3.2 because it seems like it was forgotten; see how assertNotRegexpMatches
was only renamed, it didn't get redefined as:
assertNotRegexpMatches = _deprecate(assertNotRegex)
Then, It was added again at some point in 3.5.
When the name was added again in 3.5, the deprecation alias table wasn't updated, this the main reason for this PR. My only concern is with the change I made in the versionadded:: 3.1
directive. Judging from bpo10273 I thought it existed in 3.1
(this might need changing, though, I'm not sure how this should be handled)