diff --git a/test/TC_FXDCWindow.rb b/test/TC_FXDCWindow.rb
index 5614c458cfe1cb745902611075e4290c2d546263..63ff320950268bc8f325eeaedf16d927567704ec 100755
--- a/test/TC_FXDCWindow.rb
+++ b/test/TC_FXDCWindow.rb
@@ -10,13 +10,15 @@ class TC_FXDCWindow < TestCase
     app.create
     mainWindow.create
   end
+
   def test_new
     dc = FXDCWindow.new(mainWindow)
     dc.drawPoint(0, 0)
     dc.end
   end
+
   def test_new_with_block
-    dc = FXDCWindow.new(mainWindow) do |dc|
+    FXDCWindow.new(mainWindow) do |dc|
       dc.drawPoint(0, 0)
     end
   end