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
16a1f634
Kaydet (Commit)
16a1f634
authored
Haz 13, 2009
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
make file closing more robust
üst
94f55837
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
test_import.py
Lib/test/test_import.py
+6
-7
No files found.
Lib/test/test_import.py
Dosyayı görüntüle @
16a1f634
...
@@ -46,13 +46,12 @@ class ImportTest(unittest.TestCase):
...
@@ -46,13 +46,12 @@ class ImportTest(unittest.TestCase):
else
:
else
:
pyc
=
TESTFN
+
".pyc"
pyc
=
TESTFN
+
".pyc"
f
=
open
(
source
,
"w"
)
with
open
(
source
,
"w"
)
as
f
:
print
(
"# This tests Python's ability to import a"
,
ext
,
"file."
,
file
=
f
)
print
(
"# This tests Python's ability to import a"
,
ext
,
"file."
,
file
=
f
)
a
=
random
.
randrange
(
1000
)
a
=
random
.
randrange
(
1000
)
b
=
random
.
randrange
(
1000
)
b
=
random
.
randrange
(
1000
)
print
(
"a ="
,
a
,
file
=
f
)
print
(
"a ="
,
a
,
file
=
f
)
print
(
"b ="
,
b
,
file
=
f
)
print
(
"b ="
,
b
,
file
=
f
)
f
.
close
()
if
TESTFN
in
sys
.
modules
:
if
TESTFN
in
sys
.
modules
:
del
sys
.
modules
[
TESTFN
]
del
sys
.
modules
[
TESTFN
]
...
...
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