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
39cdfff6
Kaydet (Commit)
39cdfff6
authored
Ock 06, 2006
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add compiler test regarding optional arguments.
üst
74ef694d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
test_compiler.py
Lib/test/test_compiler.py
+4
-1
No files found.
Lib/test/test_compiler.py
Dosyayı görüntüle @
39cdfff6
...
@@ -12,7 +12,6 @@ class CompilerTest(unittest.TestCase):
...
@@ -12,7 +12,6 @@ class CompilerTest(unittest.TestCase):
# standard library and its test suite. This doesn't verify
# standard library and its test suite. This doesn't verify
# that any of the code is correct, merely the compiler is able
# that any of the code is correct, merely the compiler is able
# to generate some kind of code for it.
# to generate some kind of code for it.
libdir
=
os
.
path
.
dirname
(
unittest
.
__file__
)
libdir
=
os
.
path
.
dirname
(
unittest
.
__file__
)
testdir
=
os
.
path
.
dirname
(
test
.
test_support
.
__file__
)
testdir
=
os
.
path
.
dirname
(
test
.
test_support
.
__file__
)
...
@@ -36,6 +35,10 @@ class CompilerTest(unittest.TestCase):
...
@@ -36,6 +35,10 @@ class CompilerTest(unittest.TestCase):
def
testNewClassSyntax
(
self
):
def
testNewClassSyntax
(
self
):
compiler
.
compile
(
"class foo():pass
\n\n
"
,
"<string>"
,
"exec"
)
compiler
.
compile
(
"class foo():pass
\n\n
"
,
"<string>"
,
"exec"
)
def
testSyntaxErrors
(
self
):
self
.
assertRaises
(
SyntaxError
,
compiler
.
compile
,
"def foo(a=1,b):pass
\n\n
"
,
"<string>"
,
"exec"
)
def
testLineNo
(
self
):
def
testLineNo
(
self
):
# Test that all nodes except Module have a correct lineno attribute.
# Test that all nodes except Module have a correct lineno attribute.
...
...
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