summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author?ric Araujo <merwok@netwok.org>2012-05-21 16:48:14 -0400
committer?ric Araujo <merwok@netwok.org>2012-05-21 16:48:14 -0400
commit4ca74c8f46e338deb1f0191ceae1589f37ec4708 (patch)
tree9e8d80b7227496768cf7f46857f785e1c024d3f6
parentdc00725bd0c87a02676513d4039c9f555b3e5cc4 (diff)
downloaddisutils2-4ca74c8f46e338deb1f0191ceae1589f37ec4708.tar.gz
Minor simplification in one test
-rw-r--r--distutils2/tests/test_pypi_wrapper.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/distutils2/tests/test_pypi_wrapper.py b/distutils2/tests/test_pypi_wrapper.py
index 4a9f8ca..e86904a 100644
--- a/distutils2/tests/test_pypi_wrapper.py
+++ b/distutils2/tests/test_pypi_wrapper.py
@@ -23,7 +23,7 @@ class TestPyPIWrapper(unittest.TestCase):
def test_wrapper(self):
index = Indexes._indexes['one']
- func = switch_index_if_fails(getattr(index, 'test'), Indexes)
+ func = switch_index_if_fails(index.test, Indexes)
self.assertEqual(func(), 'OK')