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 Apr 26, 2024
1 parent 23e8c88 commit d96e191
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 d96e191

Please sign in to comment.