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
4460abea
Kaydet (Commit)
4460abea
authored
Agu 11, 2011
tarafından
Éric Araujo
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use our existing drop-in, no-op decorator instead of redefining it.
Patch by Francisco Martin Brugue.
üst
54dbfbd6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
test_pypi_xmlrpc.py
Lib/packaging/tests/test_pypi_xmlrpc.py
+2
-6
No files found.
Lib/packaging/tests/test_pypi_xmlrpc.py
Dosyayı görüntüle @
4460abea
...
@@ -3,18 +3,14 @@
...
@@ -3,18 +3,14 @@
from
packaging.pypi.xmlrpc
import
Client
,
InvalidSearchField
,
ProjectNotFound
from
packaging.pypi.xmlrpc
import
Client
,
InvalidSearchField
,
ProjectNotFound
from
packaging.tests
import
unittest
from
packaging.tests
import
unittest
from
packaging.tests.support
import
fake_dec
try
:
try
:
import
threading
import
threading
from
packaging.tests.pypi_server
import
use_xmlrpc_server
from
packaging.tests.pypi_server
import
use_xmlrpc_server
except
ImportError
:
except
ImportError
:
threading
=
None
threading
=
None
def
use_xmlrpc_server
():
use_xmlrpc_server
=
fake_dec
def
_use
(
func
):
def
__use
(
*
args
,
**
kw
):
return
func
(
*
args
,
**
kw
)
return
__use
return
_use
@unittest.skipIf
(
threading
is
None
,
"Needs threading"
)
@unittest.skipIf
(
threading
is
None
,
"Needs threading"
)
...
...
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