$OpenBSD: patch-IPython_kernel_tests_engineservicetest_py,v 1.1 2008/12/27 15:29:55 fgsch Exp $
--- IPython/kernel/tests/engineservicetest.py.orig	Wed Sep 10 23:59:32 2008
+++ IPython/kernel/tests/engineservicetest.py	Mon Dec 15 03:12:11 2008
@@ -49,8 +49,11 @@ validCommands = ['a=5',
 time.sleep(0.1)""",
                 """from math import cos;
 x = 1.0*cos(0.5)""", # Semicolons lead to Discard ast nodes that should be discarded
-                """from sets import Set
-s = Set()
+                """try:
+    set
+except NameError:
+    from sets import Set as set
+s = set()
    """, # Trailing whitespace should be allowed.
                 """import math
 math.cos(1.0)""", # Test a method call with a discarded return value
