diff --git a/examples/test/test_numberedports.py b/examples/test/test_numberedports.py
index f92e482b48642f980a30e476286c22f02aa39e88..b565d3ed79d6ea7f35e400c963f35e6a69c0dfa4 100755
--- a/examples/test/test_numberedports.py
+++ b/examples/test/test_numberedports.py
@@ -7,10 +7,11 @@
 import unittest
 import pexpect
 from collections import defaultdict
-
+from mininet.node import OVSSwitch
 
 class testNumberedports( unittest.TestCase ):
 
+    @unittest.skipIf( OVSSwitch.setup() or OVSSwitch.isOldOVS(), "old version of OVS" )
     def testConsistency( self ):
         """verify consistency between mininet and ovs ports"""
         p = pexpect.spawn( 'python -m mininet.examples.numberedports' )
@@ -28,7 +29,7 @@ def testConsistency( self ):
             elif index == 2:
                 self.assertNotEqual( 0, count )
                 break
-            self.assertTrue( correct_ports )
+        self.assertTrue( correct_ports )
 
     def testNumbering( self ):
         """verify that all of the port numbers are printed correctly and consistent with their interface"""
@@ -44,8 +45,8 @@ def testNumbering( self ):
                 ofport = p.match.group( 2 )
                 self.assertEqual( intfport, ofport )
             elif index == 1:
-                self.assertNotEqual( 0, count_intfs )
                 break
+                self.assertNotEqual( 0, count_intfs )
 
 if __name__ == '__main__':
     unittest.main()