Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
606e5a6e
Kaydet (Commit)
606e5a6e
authored
Haz 24, 2016
tarafından
Berker Peksag
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge from 3.5
üst
5ffdcad7
91d53e7b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
9 deletions
+12
-9
test_config.py
Lib/distutils/tests/test_config.py
+6
-3
test_register.py
Lib/distutils/tests/test_register.py
+2
-2
test_sdist.py
Lib/distutils/tests/test_sdist.py
+2
-2
test_upload.py
Lib/distutils/tests/test_upload.py
+2
-2
No files found.
Lib/distutils/tests/test_config.py
Dosyayı görüntüle @
606e5a6e
...
...
@@ -50,14 +50,14 @@ password:xxx
"""
class
PyPIRCCommandTestCase
(
support
.
TempdirManager
,
class
Base
PyPIRCCommandTestCase
(
support
.
TempdirManager
,
support
.
LoggingSilencer
,
support
.
EnvironGuard
,
unittest
.
TestCase
):
def
setUp
(
self
):
"""Patches the environment."""
super
(
PyPIRCCommandTestCase
,
self
)
.
setUp
()
super
(
Base
PyPIRCCommandTestCase
,
self
)
.
setUp
()
self
.
tmp_dir
=
self
.
mkdtemp
()
os
.
environ
[
'HOME'
]
=
self
.
tmp_dir
self
.
rc
=
os
.
path
.
join
(
self
.
tmp_dir
,
'.pypirc'
)
...
...
@@ -76,7 +76,10 @@ class PyPIRCCommandTestCase(support.TempdirManager,
def
tearDown
(
self
):
"""Removes the patch."""
set_threshold
(
self
.
old_threshold
)
super
(
PyPIRCCommandTestCase
,
self
)
.
tearDown
()
super
(
BasePyPIRCCommandTestCase
,
self
)
.
tearDown
()
class
PyPIRCCommandTestCase
(
BasePyPIRCCommandTestCase
):
def
test_server_registration
(
self
):
# This test makes sure PyPIRCCommand knows how to:
...
...
Lib/distutils/tests/test_register.py
Dosyayı görüntüle @
606e5a6e
...
...
@@ -12,7 +12,7 @@ from distutils.command.register import register
from
distutils.errors
import
DistutilsSetupError
from
distutils.log
import
INFO
from
distutils.tests.test_config
import
PyPIRCCommandTestCase
from
distutils.tests.test_config
import
Base
PyPIRCCommandTestCase
try
:
import
docutils
...
...
@@ -72,7 +72,7 @@ class FakeOpener(object):
}
.
get
(
name
.
lower
(),
default
)
class
RegisterTestCase
(
PyPIRCCommandTestCase
):
class
RegisterTestCase
(
Base
PyPIRCCommandTestCase
):
def
setUp
(
self
):
super
(
RegisterTestCase
,
self
)
.
setUp
()
...
...
Lib/distutils/tests/test_sdist.py
Dosyayı görüntüle @
606e5a6e
...
...
@@ -23,7 +23,7 @@ except ImportError:
from
distutils.command.sdist
import
sdist
,
show_formats
from
distutils.core
import
Distribution
from
distutils.tests.test_config
import
PyPIRCCommandTestCase
from
distutils.tests.test_config
import
Base
PyPIRCCommandTestCase
from
distutils.errors
import
DistutilsOptionError
from
distutils.spawn
import
find_executable
from
distutils.log
import
WARN
...
...
@@ -52,7 +52,7 @@ somecode%(sep)sdoc.dat
somecode
%(sep)
sdoc.txt
"""
class
SDistTestCase
(
PyPIRCCommandTestCase
):
class
SDistTestCase
(
Base
PyPIRCCommandTestCase
):
def
setUp
(
self
):
# PyPIRCCommandTestCase creates a temp dir already
...
...
Lib/distutils/tests/test_upload.py
Dosyayı görüntüle @
606e5a6e
...
...
@@ -12,7 +12,7 @@ from distutils.core import Distribution
from
distutils.errors
import
DistutilsError
from
distutils.log
import
ERROR
,
INFO
from
distutils.tests.test_config
import
PYPIRC
,
PyPIRCCommandTestCase
from
distutils.tests.test_config
import
PYPIRC
,
Base
PyPIRCCommandTestCase
PYPIRC_LONG_PASSWORD
=
"""
\
[distutils]
...
...
@@ -66,7 +66,7 @@ class FakeOpen(object):
return
self
.
code
class
uploadTestCase
(
PyPIRCCommandTestCase
):
class
uploadTestCase
(
Base
PyPIRCCommandTestCase
):
def
setUp
(
self
):
super
(
uploadTestCase
,
self
)
.
setUp
()
...
...
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