diff --git a/tests/html/htmprint.cpp b/tests/html/htmprint.cpp
index 05c27b42bf..0209ecfe4d 100644
--- a/tests/html/htmprint.cpp
+++ b/tests/html/htmprint.cpp
@@ -22,9 +22,6 @@
#include "wx/dcmemory.h"
#endif // WX_PRECOMP
-#include "wx/app.h"
-#include "wx/window.h"
-
#include "wx/html/htmprint.h"
namespace