neutron-lib/releasenotes/notes/update-hacking-check-n536-2f63898bea693125.yaml
Ngo Quoc Cuong 69e2a3cec1 Fix N536 - Use assertIsNone regex
self.assertEqual((None, None), A) is valid since (None, None) is not
None. However assert_equal_none recognizes it as invalid.

Solution: Add '$' (Match the end of the text) with/without comment ( |\t)*#.*)?
to the regular expressions which intent to match None at the end of string.

Change-Id: Ic5e5c16c9225a80b2765a1d3cde9a5b9e83a06fb
2017-07-13 21:27:35 -04:00

6 lines
189 B
YAML

---
fixes:
- Update hacking check ``N536``. Current implementation recognizes
``self.assertEqual((None, None), A)`` as invalid incorrectly while
``(None, None)`` is not ``None``.