Patch from Georg Brandl and me for #1493
Remove unbound method objects
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py
index dfad172..9a285c5 100644
--- a/Lib/test/test_sys.py
+++ b/Lib/test/test_sys.py
@@ -183,7 +183,7 @@
         self.assertRaises(TypeError, sys._getframe, 42, 42)
         self.assertRaises(ValueError, sys._getframe, 2000000000)
         self.assert_(
-            SysModuleTest.test_getframe.im_func.__code__ \
+            SysModuleTest.test_getframe.__code__ \
             is sys._getframe().f_code
         )