mirror of https://github.com/python/cpython
Correction to test main.
This commit is contained in:
parent
f296019cc5
commit
5ff63d6780
|
@ -467,7 +467,7 @@ def test(HandlerClass = BaseHTTPRequestHandler,
|
|||
"""
|
||||
|
||||
if sys.argv[1:]:
|
||||
port = sys.argv[1].atoi()
|
||||
port = int(sys.argv[1])
|
||||
else:
|
||||
port = 8000
|
||||
server_address = ('', port)
|
||||
|
|
Loading…
Reference in New Issue