Skip to content

Commit aaba7fd

Browse files
committed
[FIX] */tests: don't use deprecated unittest aliases
They are deprecated since python 3.2 Part-of: odoo/upgrade#5216
1 parent 1c4642f commit aaba7fd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ select = [
5050
# explicit rules
5151
"COM818", # trailing-comma-on-bare-tuple; other rules handled by autoformatter
5252
"FBT003", # boolean-positional-value-in-call; other rules not python2 compatible
53+
"UP005", # deprecated-unittest-alias
5354

5455
]
5556

src/base/tests/test_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ def test_iter_browse_create(self, multi):
377377
names = [f"Title {i}" for i in range(7)]
378378
ib = util.iter_browse(RPT, [], chunk_size=chunk_size)
379379
records = ib.create([{"name": name} for name in names], multi=multi)
380-
self.assertEquals([t.name for t in records], names)
380+
self.assertEqual([t.name for t in records], names)
381381

382382
def test_iter_browse_iter_twice(self):
383383
cr = self.env.cr

0 commit comments

Comments
 (0)