Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
A
astor
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
astor
Commits
c559f6d5
Unverified
Kaydet (Commit)
c559f6d5
authored
May 19, 2019
tarafından
Berker Peksag
Kaydeden (comit)
GitHub
May 19, 2019
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Update test_code_gen.py
üst
3382de74
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
16 deletions
+1
-16
test_code_gen.py
tests/test_code_gen.py
+1
-16
No files found.
tests/test_code_gen.py
Dosyayı görüntüle @
c559f6d5
...
@@ -166,33 +166,18 @@ class CodegenTestCase(unittest.TestCase, Comparisons):
...
@@ -166,33 +166,18 @@ class CodegenTestCase(unittest.TestCase, Comparisons):
@unittest.skipUnless
(
sys
.
version_info
>=
(
3
,
8
,
0
,
"alpha"
,
4
),
@unittest.skipUnless
(
sys
.
version_info
>=
(
3
,
8
,
0
,
"alpha"
,
4
),
"positional only arguments introduced in Python 3.8"
)
"positional only arguments introduced in Python 3.8"
)
def
test_pos_only_arguments
(
self
):
def
test_pos
itional
_only_arguments
(
self
):
source
=
"""
source
=
"""
def test(a, b, /, c, *, d, **kwargs):
def test(a, b, /, c, *, d, **kwargs):
pass
pass
def test(a=3, b=4, /, c=7):
def test(a=3, b=4, /, c=7):
pass
pass
def test(a, b=4, /, c=8, d=9):
def test(a, b=4, /, c=8, d=9):
pass
pass
"""
"""
self
.
assertSrcRoundtrips
(
source
)
self
.
assertSrcRoundtrips
(
source
)
with
self
.
assertRaises
(
SyntaxError
):
invalid_source
=
"""
def test(p1, p2=None, /, p_or_kw, *, kw):
pass
def test(p1=None, p2, /, p_or_kw=None, *, kw):
pass
def test(p1=None, p2, /):
pass
"""
self
.
assertSrcRoundtrips
(
invalid_source
)
def
test_pass_arguments_node
(
self
):
def
test_pass_arguments_node
(
self
):
source
=
canonical
(
"""
source
=
canonical
(
"""
...
...
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