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
9bcfacd4
Kaydet (Commit)
9bcfacd4
authored
May 24, 2011
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #12167: packaging.tests.test_dist unloads the temporary module
Fix a reference leak.
üst
79d1b1ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
test_dist.py
Lib/packaging/tests/test_dist.py
+2
-0
No files found.
Lib/packaging/tests/test_dist.py
Dosyayı görüntüle @
9bcfacd4
...
...
@@ -13,6 +13,7 @@ from packaging.errors import PackagingModuleError, PackagingOptionError
from
packaging.tests
import
TESTFN
,
captured_stdout
from
packaging.tests
import
support
,
unittest
from
packaging.tests.support
import
create_distribution
from
test.support
import
unload
class
test_dist
(
Command
):
...
...
@@ -224,6 +225,7 @@ class DistributionTestCase(support.TempdirManager,
# prepare the call recorders
sys
.
path
.
append
(
temp_home
)
self
.
addCleanup
(
sys
.
path
.
remove
,
temp_home
)
self
.
addCleanup
(
unload
,
module_name
)
record
=
__import__
(
module_name
)
.
record
old_run
=
cmd
.
run
...
...
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