Skip to content

Commit

Permalink
test_compat.py: Don't shadow the "bytes" built in
Browse files Browse the repository at this point in the history
  • Loading branch information
zjp committed Jul 20, 2024
1 parent 8d6241c commit e4e2587
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qtpy/tests/test_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ def test_getimagebytes(qtbot):
painter = QPainter(image)
painter.setBrush(QBrush(Qt.black))
painter.fillRect(QRectF(0, 0, 100, 100), Qt.black)
bytes = compat.getimagebytes(image)
assert len(bytes) == 100 * 100 * 4
_bytes = compat.getimagebytes(image)
assert len(_bytes) == 100 * 100 * 4

0 comments on commit e4e2587

Please sign in to comment.