Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
unittest_and_doctest
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Brady James Garvin
unittest_and_doctest
Merge requests
!1
Updated doctest's output to reflect error message found in summer 2019.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Updated doctest's output to reflect error message found in summer 2019.
bohn/unittest_and_doctest:patch-1
into
master
Overview
0
Commits
1
Changes
1
Merged
Christopher Bohn
requested to merge
bohn/unittest_and_doctest:patch-1
into
master
5 years ago
Overview
0
Commits
1
Changes
1
Expand
When running doctest for
parse('invalid')
:
error message encountered during lesson prep for soft 162 was different than error message in doctest
changed doctest to reflect current error message
Possible discussion point for future is that error messages may change in future versions of Python, causing false-failures of tests
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
8cee2715
1 commit,
5 years ago
1 file
+
1
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
examples.py
+
1
−
1
Options
@@ -11,7 +11,7 @@ def parse(pair):
>>>
parse
(
'
invalid
'
)
Traceback
(
most
recent
call
last
):
...
ValueError
:
n
eed
more
than
1
value
to
unpack
ValueError
:
n
ot
enough
value
s
to
unpack
(
expected
2
,
got
1
)
Likewise if there is more than one separator:
>>>
parse
(
'
first: second: third
'
)
Loading