Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review 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
mantidproject
mantid
Commits
8fe6ac59
Commit
8fe6ac59
authored
7 years ago
by
Martyn Gigg
Browse files
Options
Downloads
Patches
Plain Diff
Fix errorformatter test for Python 2/3 compatability.
Refs #21251
parent
9621a648
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
qt/python/mantidqt/widgets/codeeditor/test/test_errorformatter.py
+3
-1
3 additions, 1 deletion
...n/mantidqt/widgets/codeeditor/test/test_errorformatter.py
with
3 additions
and
1 deletion
qt/python/mantidqt/widgets/codeeditor/test/test_errorformatter.py
+
3
−
1
View file @
8fe6ac59
...
@@ -62,8 +62,10 @@ foo()
...
@@ -62,8 +62,10 @@ foo()
# stacktrace will contain file names that are not portable so don't do equality check
# stacktrace will contain file names that are not portable so don't do equality check
error_lines
=
error
.
splitlines
()
error_lines
=
error
.
splitlines
()
# python 3 has a slightly different format of the exception error so just check it looks
# approximate correct
expected_lines
=
[
expected_lines
=
[
"
NameError:
global name
'
_local
'
is not defined
"
,
"
NameError:
.*
'
_local
'
.*
"
,
'
File
"
.*test_errorformatter.py
"
, line 56, in test_standard_exception
'
,
'
File
"
.*test_errorformatter.py
"
, line 56, in test_standard_exception
'
,
'
exec(.*)
'
,
'
exec(.*)
'
,
'
File
"
<string>
"
, line 8, in <module>
'
,
'
File
"
<string>
"
, line 8, in <module>
'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment