summaryrefslogtreecommitdiffstatshomepage
path: root/tests
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2024-01-29 13:04:20 +1100
committerDamien George <damien@micropython.org>2024-01-29 13:07:25 +1100
commit40687451bbad09386aa64d03d4aab18da8e01706 (patch)
treec4fb8817eadbc5c3a741f4a8d0ed82d74cf85db7 /tests
parent7211bafb336b0a22746481489c3252085e78b42a (diff)
downloadmicropython-40687451bbad09386aa64d03d4aab18da8e01706.tar.gz
micropython-40687451bbad09386aa64d03d4aab18da8e01706.zip
tests/extmod/framebuf_polygon.py: Replace sys.stdout.write with print.
So the test doesn't depend on the `sys` module. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/extmod/framebuf_polygon.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/extmod/framebuf_polygon.py b/tests/extmod/framebuf_polygon.py
index 03130b3bf0..da05be2c4d 100644
--- a/tests/extmod/framebuf_polygon.py
+++ b/tests/extmod/framebuf_polygon.py
@@ -1,5 +1,3 @@
-import sys
-
try:
import framebuf
from array import array
@@ -18,8 +16,8 @@ def print_buffer(buffer, width, height):
for row in range(height):
for col in range(width):
val = buffer[(row * width) + col]
- sys.stdout.write(" {:02x}".format(val) if val else " ··")
- sys.stdout.write("\n")
+ print(" {:02x}".format(val) if val else " ··", end="")
+ print()
buf = bytearray(70 * 70)