Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
13c53c64
Commit
13c53c64
authored
Aug 22, 2002
by
Greg Ward
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename base test case class to (yawn) BaseTestCase.
parent
ee413849
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Lib/test/test_textwrap.py
Lib/test/test_textwrap.py
+3
-3
No files found.
Lib/test/test_textwrap.py
View file @
13c53c64
...
@@ -14,7 +14,7 @@ from test import test_support
...
@@ -14,7 +14,7 @@ from test import test_support
from
textwrap
import
TextWrapper
,
wrap
,
fill
from
textwrap
import
TextWrapper
,
wrap
,
fill
class
Wrapper
TestCase
(
unittest
.
TestCase
):
class
Base
TestCase
(
unittest
.
TestCase
):
'''Parent class with utility methods for textwrap tests.'''
'''Parent class with utility methods for textwrap tests.'''
def
show
(
self
,
textin
):
def
show
(
self
,
textin
):
...
@@ -38,7 +38,7 @@ class WrapperTestCase(unittest.TestCase):
...
@@ -38,7 +38,7 @@ class WrapperTestCase(unittest.TestCase):
self
.
check
(
result
,
expect
)
self
.
check
(
result
,
expect
)
class
WrapTestCase
(
Wrapper
TestCase
):
class
WrapTestCase
(
Base
TestCase
):
def
setUp
(
self
):
def
setUp
(
self
):
self
.
wrapper
=
TextWrapper
(
width
=
45
,
fix_sentence_endings
=
True
)
self
.
wrapper
=
TextWrapper
(
width
=
45
,
fix_sentence_endings
=
True
)
...
@@ -163,7 +163,7 @@ How *do* you spell that odd word, anyways?
...
@@ -163,7 +163,7 @@ How *do* you spell that odd word, anyways?
class
IndentTestCases
(
Wrapper
TestCase
):
class
IndentTestCases
(
Base
TestCase
):
# called before each test method
# called before each test method
def
setUp
(
self
):
def
setUp
(
self
):
...
...
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