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
c6edb372
Commit
c6edb372
authored
Aug 22, 2002
by
Greg Ward
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test an em-dash with adjacent punctuation.
parent
715debd3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
Lib/test/test_textwrap.py
Lib/test/test_textwrap.py
+6
-0
No files found.
Lib/test/test_textwrap.py
View file @
c6edb372
...
...
@@ -166,6 +166,12 @@ What a mess!
"and"
,
" "
,
"another!"
]
self
.
check_split
(
self
.
wrapper
,
text
,
expect
)
text
=
"and then--bam!--he was gone"
expect
=
[
"and"
,
" "
,
"then"
,
"--"
,
"bam!"
,
"--"
,
"he"
,
" "
,
"was"
,
" "
,
"gone"
]
self
.
check_split
(
self
.
wrapper
,
text
,
expect
)
def
test_unix_options
(
self
):
# Test that Unix-style command-line options are wrapped correctly.
# Both Optik (OptionParser) and Docutils rely on this behaviour!
...
...
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