diff --git a/tests/html/htmprint.cpp b/tests/html/htmprint.cpp
index 72c33c6980..05c27b42bf 100644
--- a/tests/html/htmprint.cpp
+++ b/tests/html/htmprint.cpp
@@ -183,9 +183,7 @@ TEST_CASE("wxHtmlPrintout::Pagination", "[html][print]")
text
)
);
- const wxSize ext = dc.GetTextExtent("Something");
- WARN("Using base font size " << fontFixedPixelSize.GetPointSize()
- << ", text extent of \"Something\" is " << ext.x << "x" << ext.y);
+ INFO("Using base font size " << fontFixedPixelSize.GetPointSize());
CHECK( CountPages(pr) == 3 );
}