Try to fix tests failing on Python 3.11

This commit is contained in:
Kovid Goyal
2022-12-16 10:05:05 +05:30
parent 7d28d7413f
commit c6360537e5
3 changed files with 6 additions and 3 deletions

View File

@@ -443,7 +443,7 @@ class TestDataTypes(BaseTest):
c.update_ansi_color_table(build_ansi_color_table())
for i in range(8):
col = getattr(defaults, f'color{i}')
self.assertEqual(c.as_color(i << 8 | 1), col)
self.ae(c.as_color(i << 8 | 1), col)
self.ae(c.as_color(255 << 8 | 1), Color(0xee, 0xee, 0xee))
def test_historybuf(self):