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
8eeb1dcb
Kaydet (Commit)
8eeb1dcb
authored
Haz 28, 2010
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
testcapi tests are definitely cpython only
üst
5871a8d7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
test_exceptions.py
Lib/test/test_exceptions.py
+3
-1
No files found.
Lib/test/test_exceptions.py
Dosyayı görüntüle @
8eeb1dcb
...
@@ -6,7 +6,7 @@ import unittest
...
@@ -6,7 +6,7 @@ import unittest
import
pickle
,
cPickle
import
pickle
,
cPickle
from
test.test_support
import
(
TESTFN
,
unlink
,
run_unittest
,
captured_output
,
from
test.test_support
import
(
TESTFN
,
unlink
,
run_unittest
,
captured_output
,
check_warnings
)
check_warnings
,
cpython_only
)
from
test.test_pep352
import
ignore_deprecation_warnings
from
test.test_pep352
import
ignore_deprecation_warnings
# XXX This is not really enough, each *operation* should be tested!
# XXX This is not really enough, each *operation* should be tested!
...
@@ -147,6 +147,7 @@ class ExceptionTests(unittest.TestCase):
...
@@ -147,6 +147,7 @@ class ExceptionTests(unittest.TestCase):
ckmsg
(
s
,
"'continue' not properly in loop"
)
ckmsg
(
s
,
"'continue' not properly in loop"
)
ckmsg
(
"continue
\n
"
,
"'continue' not properly in loop"
)
ckmsg
(
"continue
\n
"
,
"'continue' not properly in loop"
)
@cpython_only
def
testSettingException
(
self
):
def
testSettingException
(
self
):
# test that setting an exception at the C level works even if the
# test that setting an exception at the C level works even if the
# exception object can't be constructed.
# exception object can't be constructed.
...
@@ -571,6 +572,7 @@ class TestSameStrAndUnicodeMsg(unittest.TestCase):
...
@@ -571,6 +572,7 @@ class TestSameStrAndUnicodeMsg(unittest.TestCase):
self
.
assertRaises
(
UnicodeEncodeError
,
str
,
e
)
self
.
assertRaises
(
UnicodeEncodeError
,
str
,
e
)
self
.
assertEqual
(
unicode
(
e
),
u'f
\xf6\xf6
'
)
self
.
assertEqual
(
unicode
(
e
),
u'f
\xf6\xf6
'
)
@cpython_only
def
test_exception_with_doc
(
self
):
def
test_exception_with_doc
(
self
):
import
_testcapi
import
_testcapi
doc2
=
"This is a test docstring."
doc2
=
"This is a test docstring."
...
...
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