[Python-checkins] distutils2: Minor simplification in one test
eric.araujo
python-checkins at python.org
Mon May 21 23:03:35 CEST 2012
http://hg.python.org/distutils2/rev/46827ba519b1
changeset: 1348:46827ba519b1
user: Éric Araujo <merwok at netwok.org>
date: Mon May 21 16:48:14 2012 -0400
summary:
Minor simplification in one test
files:
distutils2/tests/test_pypi_wrapper.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/distutils2/tests/test_pypi_wrapper.py b/distutils2/tests/test_pypi_wrapper.py
--- a/distutils2/tests/test_pypi_wrapper.py
+++ b/distutils2/tests/test_pypi_wrapper.py
@@ -23,7 +23,7 @@
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')
--
Repository URL: http://hg.python.org/distutils2
More information about the Python-checkins
mailing list