summaryrefslogtreecommitdiff
path: root/scripts/update_payload/checker_unittest.py
diff options
context:
space:
mode:
authorAlex Deymo <deymo@chromium.org>2015-02-25 12:49:03 -0800
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-02-26 00:49:45 +0000
commit8907e795aff7b3c3fc939ea74098c401ca8d379d (patch)
tree41b7c9c7094935b03af57a9f9fa5112acbe68a8d /scripts/update_payload/checker_unittest.py
parentc11dc7338639296ab99f89964a94bcc486500ba3 (diff)
update_payload: Remove assertIsNone.
unittest.assertIsNone was introduced in python 2.7 but at the time our servers were running an older python version. We have migrated to python 2.7 so we can drop the local wrapper now. BUG=None TEST=ran unittest. Change-Id: I1c43d027361ab7f8f5fad83cc900361e5a6ee137 Reviewed-on: https://chromium-review.googlesource.com/253610 Commit-Queue: Alex Deymo <deymo@chromium.org> Trybot-Ready: Alex Deymo <deymo@chromium.org> Tested-by: Alex Deymo <deymo@chromium.org> Reviewed-by: Don Garrett <dgarrett@chromium.org>
Diffstat (limited to 'scripts/update_payload/checker_unittest.py')
-rwxr-xr-xscripts/update_payload/checker_unittest.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/scripts/update_payload/checker_unittest.py b/scripts/update_payload/checker_unittest.py
index c099e2a4..60ae1a22 100755
--- a/scripts/update_payload/checker_unittest.py
+++ b/scripts/update_payload/checker_unittest.py
@@ -132,19 +132,6 @@ class PayloadCheckerTest(mox.MoxTestBase):
new_field = repeated_field.add()
new_field.CopyFrom(field_val)
- # The production environment uses an older Python, this isn't an override.
- # pylint: disable=W0221
- def assertIsNone(self, val):
- """Asserts that val is None (TODO remove once we upgrade to Python 2.7).
-
- Note that we're using assertEqual so as for it to show us the actual
- non-None value.
-
- Args:
- val: Value/object to be equated to None.
- """
- self.assertIs(None, val)
-
def SetupAddElemTest(self, is_present, is_submsg, convert=str,
linebreak=False, indent=0):
"""Setup for testing of _CheckElem() and its derivatives.