summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/tests
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-12-27 17:00:44 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-12-27 17:00:44 (GMT)
commit467a7bd2826e2a01221f425e9a1878df6148486d (patch)
treeb896bc29c99df771a60798060010a887bd09beb5 /Lib/distutils/tests
parentd148630e72737ea9e0fd27b971e06910e529f593 (diff)
downloadcpython-467a7bd2826e2a01221f425e9a1878df6148486d.zip
cpython-467a7bd2826e2a01221f425e9a1878df6148486d.tar.gz
cpython-467a7bd2826e2a01221f425e9a1878df6148486d.tar.bz2
fix 2.x isms in distutils test
Diffstat (limited to 'Lib/distutils/tests')
-rw-r--r--Lib/distutils/tests/test_register.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/distutils/tests/test_register.py b/Lib/distutils/tests/test_register.py
index 3a3a3b7..021b3ea 100644
--- a/Lib/distutils/tests/test_register.py
+++ b/Lib/distutils/tests/test_register.py
@@ -60,7 +60,7 @@ class registerTestCase(PyPIRCCommandTestCase):
# Save your login (y/N)? : 'y'
inputs = RawInputs('1', 'tarek', 'y')
from distutils.command import register as register_module
- register_module.raw_input = inputs.__call__
+ register_module.input = inputs.__call__
def _getpass(prompt):
return 'xxx'
register_module.getpass.getpass = _getpass
@@ -71,8 +71,7 @@ class registerTestCase(PyPIRCCommandTestCase):
def __call__(self, *args):
# we want to compare them, so let's store
# something comparable
- els = args[0].items()
- els.sort()
+ els = sorted(args[0].items())
self.calls.append(tuple(els))
return 200, 'OK'