Skip to content

Commit

Permalink
Use assertEqual instead of assertEquals
Browse files Browse the repository at this point in the history
Fixes the following failure:

```
fastbuild/bin/tools/bundletool/bundletool_test.runfiles/_main/tools/bundletool/bundletool_test.py", line 146, in _assert_zip_contains
    self.assertEquals(
    ^^^^^^^^^^^^^^^^^
AttributeError: 'BundlerTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?
```
  • Loading branch information
luispadron committed Jul 10, 2024
1 parent 28e1a9f commit 5acc73b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/bundletool/bundletool_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,11 @@ def _assert_zip_contains(self, zip_file, entry, executable=False,
'Expected %r not to be executable, but it was' % entry)

if compressed:
self.assertEquals(
self.assertEqual(
zipfile.ZIP_DEFLATED, zipinfo.compress_type,
'Expected %r to be compressed, but it was not' % entry)
else:
self.assertEquals(
self.assertEqual(
zipfile.ZIP_STORED, zipinfo.compress_type,
'Expected %r not to be compressed, but it was' % entry)
except KeyError:
Expand Down

0 comments on commit 5acc73b

Please sign in to comment.