mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-23 08:47:47 +02:00
Apparently pep8 now just does not let you use the name l
This is one of the most hilarious bugs in pep8 I have come across
This commit is contained in:
@@ -211,11 +211,11 @@ class TestGraphics(BaseTest):
|
||||
cw, ch = 10, 20
|
||||
s, dx, dy, put_image, put_ref, layers, rect_eq = put_helpers(self, cw, ch)
|
||||
self.ae(put_image(s, 10, 20)[1], 'OK')
|
||||
l = layers(s)
|
||||
self.ae(len(l), 1)
|
||||
rect_eq(l[0]['src_rect'], 0, 0, 1, 1)
|
||||
rect_eq(l[0]['dest_rect'], -1, 1, -1 + dx, 1 - dy)
|
||||
self.ae(l[0]['group_count'], 1)
|
||||
l0 = layers(s)
|
||||
self.ae(len(l0), 1)
|
||||
rect_eq(l0[0]['src_rect'], 0, 0, 1, 1)
|
||||
rect_eq(l0[0]['dest_rect'], -1, 1, -1 + dx, 1 - dy)
|
||||
self.ae(l0[0]['group_count'], 1)
|
||||
self.ae(s.cursor.x, 1), self.ae(s.cursor.y, 0)
|
||||
put_ref(s, num_cols=s.columns, x_off=2, y_off=1, width=3, height=5, cell_x_off=3, cell_y_off=1, z=-1)
|
||||
l2 = layers(s)
|
||||
@@ -261,8 +261,8 @@ class TestGraphics(BaseTest):
|
||||
self.ae(s.grman.image_count, 3)
|
||||
self.ae(layers(s)[0]['src_rect'], {'left': 0.0, 'top': 0.0, 'right': 1.0, 'bottom': 1.0})
|
||||
s.index(), s.index()
|
||||
l = layers(s)
|
||||
self.ae(len(l), 3)
|
||||
l0 = layers(s)
|
||||
self.ae(len(l0), 3)
|
||||
self.ae(layers(s)[0]['src_rect'], {'left': 0.0, 'top': 0.5, 'right': 1.0, 'bottom': 1.0})
|
||||
s.index()
|
||||
self.ae(s.grman.image_count, 2)
|
||||
|
||||
Reference in New Issue
Block a user