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
bc74e5be
Kaydet (Commit)
bc74e5be
authored
Agu 23, 2008
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add NEWS note and test for last commit
üst
2658260f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
test_sys.py
Lib/test/test_sys.py
+6
-0
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/test/test_sys.py
Dosyayı görüntüle @
bc74e5be
...
...
@@ -62,6 +62,12 @@ class SysModuleTest(unittest.TestCase):
self
.
assert_
(
err
.
getvalue
()
.
endswith
(
"ValueError: 42
\n
"
))
def
test_excepthook
(
self
):
with
test
.
support
.
captured_output
(
"stderr"
)
as
stderr
:
sys
.
excepthook
(
1
,
'1'
,
1
)
self
.
assert_
(
"TypeError: print_exception(): Exception expected for "
\
"value, str found"
in
stderr
.
getvalue
())
# FIXME: testing the code for a lost or replaced excepthook in
# Python/pythonrun.c::PyErr_PrintEx() is tricky.
...
...
Misc/NEWS
Dosyayı görüntüle @
bc74e5be
...
...
@@ -26,6 +26,9 @@ What's new in Python 3.0b3?
Core and Builtins
-----------------
- Issue #3653: Fix a segfault when sys.excepthook was called with invalid
arguments.
- Issue #2394: implement more of the memoryview API, with the caveat that
only one-dimensional contiguous buffers are supported and exercised right
now. Slicing, slice assignment and comparison (equality and inequality)
...
...
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