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
e7cbd3f0
Kaydet (Commit)
e7cbd3f0
authored
Tem 13, 2013
tarafından
Terry Jan Reedy
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #18365: 2.7 corrections so tests run
üst
d781b07e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
mock_tk.py
Lib/idlelib/idle_test/mock_tk.py
+1
-1
test_text.py
Lib/idlelib/idle_test/test_text.py
+3
-3
No files found.
Lib/idlelib/idle_test/mock_tk.py
Dosyayı görüntüle @
e7cbd3f0
...
@@ -114,7 +114,7 @@ class Text(object):
...
@@ -114,7 +114,7 @@ class Text(object):
try
:
try
:
index
=
index
.
lower
()
index
=
index
.
lower
()
except
AttributeError
:
except
AttributeError
:
raise
TclError
(
'bad text index "
%
s"'
%
index
)
from
None
raise
TclError
(
'bad text index "
%
s"'
%
index
)
lastline
=
len
(
self
.
data
)
-
1
# same as number of text lines
lastline
=
len
(
self
.
data
)
-
1
# same as number of text lines
if
index
==
'insert'
:
if
index
==
'insert'
:
...
...
Lib/idlelib/idle_test/test_text.py
Dosyayı görüntüle @
e7cbd3f0
# Test mock_tk.Text class against tkinter.Text class by running same tests with both.
# Test mock_tk.Text class against tkinter.Text class by running same tests with both.
import
unittest
import
unittest
from
test.support
import
requires
from
test.
test_
support
import
requires
from
_tkinter
import
TclError
from
_tkinter
import
TclError
import
t
kinter
as
tk
import
T
kinter
as
tk
class
TextTest
(
object
):
class
TextTest
(
object
):
...
@@ -214,7 +214,7 @@ class TkTextTest(TextTest, unittest.TestCase):
...
@@ -214,7 +214,7 @@ class TkTextTest(TextTest, unittest.TestCase):
@classmethod
@classmethod
def
setUpClass
(
cls
):
def
setUpClass
(
cls
):
requires
(
'gui'
)
requires
(
'gui'
)
from
t
kinter
import
Tk
,
Text
from
T
kinter
import
Tk
,
Text
cls
.
Text
=
Text
cls
.
Text
=
Text
cls
.
root
=
Tk
()
cls
.
root
=
Tk
()
...
...
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