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
ed0b87d7
Kaydet (Commit)
ed0b87d7
authored
Ara 19, 2013
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix the C definition of the sys._debugmallocstats() function: the function has
no parameter
üst
36e96b87
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
test_sys.py
Lib/test/test_sys.py
+3
-0
sysmodule.c
Python/sysmodule.c
+1
-1
No files found.
Lib/test/test_sys.py
Dosyayı görüntüle @
ed0b87d7
...
...
@@ -665,6 +665,9 @@ class SysModuleTest(unittest.TestCase):
ret
,
out
,
err
=
assert_python_ok
(
*
args
)
self
.
assertIn
(
b
"free PyDictObjects"
,
err
)
# The function has no parameter
self
.
assertRaises
(
TypeError
,
sys
.
_debugmallocstats
,
True
)
@unittest.skipUnless
(
hasattr
(
sys
,
"getallocatedblocks"
),
"sys.getallocatedblocks unavailable on this build"
)
def
test_getallocatedblocks
(
self
):
...
...
Python/sysmodule.c
Dosyayı görüntüle @
ed0b87d7
...
...
@@ -1186,7 +1186,7 @@ static PyMethodDef sys_methods[] = {
{
"settrace"
,
sys_settrace
,
METH_O
,
settrace_doc
},
{
"gettrace"
,
sys_gettrace
,
METH_NOARGS
,
gettrace_doc
},
{
"call_tracing"
,
sys_call_tracing
,
METH_VARARGS
,
call_tracing_doc
},
{
"_debugmallocstats"
,
sys_debugmallocstats
,
METH_
VAR
ARGS
,
{
"_debugmallocstats"
,
sys_debugmallocstats
,
METH_
NO
ARGS
,
debugmallocstats_doc
},
{
NULL
,
NULL
}
/* sentinel */
};
...
...
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