[Jython-checkins] jython: Remove redundant test (there's already one of these in test_operator).

frank.wierzbicki jython-checkins at python.org
Sat Jun 23 02:53:12 CEST 2012


http://hg.python.org/jython/rev/edb11c91c63c
changeset:   6736:edb11c91c63c
user:        Frank Wierzbicki <fwierzbicki at gmail.com>
date:        Fri Jun 22 17:52:32 2012 -0700
summary:
  Remove redundant test (there's already one of these in test_operator).

files:
  Lib/test/test_operator_jy.py |  15 +--------------
  1 files changed, 1 insertions(+), 14 deletions(-)


diff --git a/Lib/test/test_operator_jy.py b/Lib/test/test_operator_jy.py
--- a/Lib/test/test_operator_jy.py
+++ b/Lib/test/test_operator_jy.py
@@ -56,7 +56,7 @@
         (HasInt(), True, False, False),
         (HasFloat(), True, False, False),
         )
-    
+
     def test_isNumberType(self):
         for obj, isNumberType, _, _ in self.tests:
             self.assert_istype(operator.isNumberType, obj, isNumberType)
@@ -73,19 +73,6 @@
         self.assertEqual(func(obj), result, '%s %s should be: %s' %
                          (type(obj), func.__name__, result))
 
-    def test_nested_attrgetter(self):
-        class Foo(object):
-                pass
-
-        class Bar(object):
-                pass
-
-        f = Foo()
-        f.bar = Bar()
-        f.bar.bat = 5
-
-        self.assertEqual(operator.attrgetter("bar.bat")(f), 5)
-
 
 def test_main():
     test_support.run_unittest(OperatorTestCase)

-- 
Repository URL: http://hg.python.org/jython


More information about the Jython-checkins mailing list