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
14268533
Kaydet (Commit)
14268533
authored
May 03, 2013
tarafından
Brett Cannon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Move test_imp over to unittest.main()
üst
130e4819
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
16 deletions
+7
-16
test_imp.py
Lib/test/test_imp.py
+7
-16
No files found.
Lib/test/test_imp.py
Dosyayı görüntüle @
14268533
try
:
import
_thread
except
ImportError
:
_thread
=
None
import
imp
import
importlib
import
os
...
...
@@ -17,6 +21,7 @@ def requires_load_dynamic(meth):
'imp.load_dynamic() required'
)(
meth
)
@unittest.skipIf
(
_thread
is
None
,
'_thread module is required'
)
class
LockTests
(
unittest
.
TestCase
):
"""Very basic test of import lock functions."""
...
...
@@ -446,20 +451,5 @@ class NullImporterTests(unittest.TestCase):
os
.
rmdir
(
name
)
def
test_main
():
tests
=
[
ImportTests
,
PEP3147Tests
,
ReloadTests
,
NullImporterTests
,
]
try
:
import
_thread
except
ImportError
:
pass
else
:
tests
.
append
(
LockTests
)
support
.
run_unittest
(
*
tests
)
if
__name__
==
"__main__"
:
test_
main
()
unittest
.
main
()
\ No newline at end of file
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