mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
Make sure each test can be run standalone (./python Lib/distutils/tests/x.py)
This commit is contained in:
parent
1c5054996f
commit
70ec44a773
41 changed files with 86 additions and 56 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue