Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
326cd6e4
Commit
326cd6e4
authored
Dec 27, 2008
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 2.x isms in distutils test
parent
a89c58de
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
command/register.py
command/register.py
+1
-1
tests/test_register.py
tests/test_register.py
+2
-3
No files found.
command/register.py
View file @
326cd6e4
...
...
@@ -150,7 +150,7 @@ We need to know who you are, so please choose either:
3. have the server generate a new password for you (and email it to you), or
4. quit
Your selection [default 1]: '''
,
log
.
INFO
)
choice
=
raw_
input
()
choice
=
input
()
if
not
choice
:
choice
=
'1'
elif
choice
not
in
choices
:
...
...
tests/test_register.py
View file @
326cd6e4
...
...
@@ -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'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment