summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/tests/test_upload.py
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2010-11-06 02:44:43 (GMT)
committerÉric Araujo <merwok@netwok.org>2010-11-06 02:44:43 (GMT)
commit70ec44a7739e67dbdaa8ab9b0a59a9444153112a (patch)
tree5d49959adafdacd5abc7431271dc8d95f253e431 /Lib/distutils/tests/test_upload.py
parent1c5054996fcb7af6831eb1fea2df3678fb23e986 (diff)
downloadcpython-70ec44a7739e67dbdaa8ab9b0a59a9444153112a.zip
cpython-70ec44a7739e67dbdaa8ab9b0a59a9444153112a.tar.gz
cpython-70ec44a7739e67dbdaa8ab9b0a59a9444153112a.tar.bz2
Make sure each test can be run standalone (./python Lib/distutils/tests/x.py)
Diffstat (limited to 'Lib/distutils/tests/test_upload.py')
-rw-r--r--Lib/distutils/tests/test_upload.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/distutils/tests/test_upload.py b/Lib/distutils/tests/test_upload.py
index 35e9700..4661ed3 100644
--- a/Lib/distutils/tests/test_upload.py
+++ b/Lib/distutils/tests/test_upload.py
@@ -1,13 +1,12 @@
"""Tests for distutils.command.upload."""
-import sys
import os
import unittest
import http.client as httpclient
+from test.support import run_unittest
from distutils.command.upload import upload
from distutils.core import Distribution
-from distutils.tests import support
from distutils.tests.test_config import PYPIRC, PyPIRCCommandTestCase
PYPIRC_LONG_PASSWORD = """\
@@ -136,4 +135,4 @@ def test_suite():
return unittest.makeSuite(uploadTestCase)
if __name__ == "__main__":
- unittest.main(defaultTest="test_suite")
+ run_unittest(test_suite())