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
38d4d4a3
Kaydet (Commit)
38d4d4a3
authored
Haz 02, 2006
tarafından
Neal Norwitz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix memory leak found by valgrind.
üst
e152aab9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
test_exceptions.py
Lib/test/test_exceptions.py
+4
-2
exceptions.c
Objects/exceptions.c
+0
-1
No files found.
Lib/test/test_exceptions.py
Dosyayı görüntüle @
38d4d4a3
...
@@ -265,7 +265,9 @@ class ExceptionTests(unittest.TestCase):
...
@@ -265,7 +265,9 @@ class ExceptionTests(unittest.TestCase):
if
(
e
is
not
exc
and
# needed for sampleUnicode errors
if
(
e
is
not
exc
and
# needed for sampleUnicode errors
type
(
e
)
is
not
exc
):
type
(
e
)
is
not
exc
):
raise
raise
for
checkArgName
in
expected
.
keys
():
# Verify no ref leaks in Exc_str()
s
=
str
(
e
)
for
checkArgName
in
expected
:
self
.
assertEquals
(
repr
(
getattr
(
e
,
checkArgName
)),
self
.
assertEquals
(
repr
(
getattr
(
e
,
checkArgName
)),
repr
(
expected
[
checkArgName
]),
repr
(
expected
[
checkArgName
]),
'exception "
%
s", attribute "
%
s"'
%
'exception "
%
s", attribute "
%
s"'
%
...
@@ -273,7 +275,7 @@ class ExceptionTests(unittest.TestCase):
...
@@ -273,7 +275,7 @@ class ExceptionTests(unittest.TestCase):
# test for pickling support
# test for pickling support
new
=
pickle
.
loads
(
pickle
.
dumps
(
e
,
random
.
randint
(
0
,
2
)))
new
=
pickle
.
loads
(
pickle
.
dumps
(
e
,
random
.
randint
(
0
,
2
)))
for
checkArgName
in
expected
.
keys
()
:
for
checkArgName
in
expected
:
self
.
assertEquals
(
repr
(
getattr
(
e
,
checkArgName
)),
self
.
assertEquals
(
repr
(
getattr
(
e
,
checkArgName
)),
repr
(
expected
[
checkArgName
]),
repr
(
expected
[
checkArgName
]),
'pickled exception "
%
s", attribute "
%
s'
%
'pickled exception "
%
s", attribute "
%
s'
%
...
...
Objects/exceptions.c
Dosyayı görüntüle @
38d4d4a3
...
@@ -619,7 +619,6 @@ EnvironmentError_str(PyEnvironmentErrorObject *self)
...
@@ -619,7 +619,6 @@ EnvironmentError_str(PyEnvironmentErrorObject *self)
PyTuple_SET_ITEM
(
tuple
,
1
,
Py_None
);
PyTuple_SET_ITEM
(
tuple
,
1
,
Py_None
);
}
}
Py_INCREF
(
repr
);
PyTuple_SET_ITEM
(
tuple
,
2
,
repr
);
PyTuple_SET_ITEM
(
tuple
,
2
,
repr
);
rtnval
=
PyString_Format
(
fmt
,
tuple
);
rtnval
=
PyString_Format
(
fmt
,
tuple
);
...
...
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