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
b98cb43e
Kaydet (Commit)
b98cb43e
authored
Şub 02, 2009
tarafından
Guilherme Polo
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Moving to importlib
üst
b64c989e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
runtktests.py
Lib/lib-tk/test/runtktests.py
+3
-4
No files found.
Lib/lib-tk/test/runtktests.py
Dosyayı görüntüle @
b98cb43e
...
...
@@ -9,6 +9,7 @@ Extensions also should live in packages following the same rule as above.
import
os
import
sys
import
unittest
import
importlib
import
test.test_support
this_dir_path
=
os
.
path
.
abspath
(
os
.
path
.
dirname
(
__file__
))
...
...
@@ -44,10 +45,8 @@ def get_tests_modules(basepath=this_dir_path, gui=True, packages=None):
for
name
in
filenames
:
try
:
yield
__import__
(
"
%
s.
%
s"
%
(
pkg_name
,
name
[:
-
len
(
py_ext
)]),
fromlist
=
[
''
]
)
yield
importlib
.
import_module
(
".
%
s"
%
name
[:
-
len
(
py_ext
)],
pkg_name
)
except
test
.
test_support
.
ResourceDenied
:
if
gui
:
raise
...
...
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