Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Peter Sherwood
athena
Commits
e95b67cd
Commit
e95b67cd
authored
4 years ago
by
scott snyder
Browse files
Options
Downloads
Patches
Plain Diff
CaloUtils: python 3 fixes
Need to flush output to get consistent output ordering between py2 and py3.
parent
c8918dcd
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
Calorimeter/CaloUtils/test/ToolWithConstants_test.py
+3
-0
3 additions, 0 deletions
Calorimeter/CaloUtils/test/ToolWithConstants_test.py
with
3 additions
and
0 deletions
Calorimeter/CaloUtils/test/ToolWithConstants_test.py
+
3
−
0
View file @
e95b67cd
...
@@ -14,6 +14,7 @@ from __future__ import print_function
...
@@ -14,6 +14,7 @@ from __future__ import print_function
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
from
AthenaPython.PyAthenaComps
import
Alg
,
StatusCode
from
AthenaPython.PyAthenaComps
import
Alg
,
StatusCode
from
AthenaConfiguration.ComponentFactory
import
CompFactory
from
AthenaConfiguration.ComponentFactory
import
CompFactory
import
sys
import
ROOT
import
ROOT
...
@@ -31,6 +32,7 @@ class TestAlg (Alg):
...
@@ -31,6 +32,7 @@ class TestAlg (Alg):
ctx
=
self
.
getContext
()
ctx
=
self
.
getContext
()
print
(
ctx
.
eventID
().
run_number
(),
ctx
.
eventID
().
lumi_block
(),
print
(
ctx
.
eventID
().
run_number
(),
ctx
.
eventID
().
lumi_block
(),
ctx
.
eventID
().
time_stamp
())
ctx
.
eventID
().
time_stamp
())
sys
.
stdout
.
flush
()
self
.
tool1
.
execute
(
ctx
).
ignore
()
self
.
tool1
.
execute
(
ctx
).
ignore
()
self
.
tool2
.
execute
(
ctx
).
ignore
()
self
.
tool2
.
execute
(
ctx
).
ignore
()
...
@@ -45,6 +47,7 @@ class TestAlg (Alg):
...
@@ -45,6 +47,7 @@ class TestAlg (Alg):
tc
=
ROOT
.
CaloRec
.
ToolConstants
()
tc
=
ROOT
.
CaloRec
.
ToolConstants
()
assert
self
.
tool1
.
mergeConstants
(
tc
,
ctx
).
isSuccess
()
assert
self
.
tool1
.
mergeConstants
(
tc
,
ctx
).
isSuccess
()
print
(
'
testMerge:
'
,
tc
.
clsname
(),
tc
.
version
(),
tc
.
toString
(
''
))
print
(
'
testMerge:
'
,
tc
.
clsname
(),
tc
.
version
(),
tc
.
toString
(
''
))
sys
.
stdout
.
flush
()
tc
=
ROOT
.
CaloRec
.
ToolConstants
()
tc
=
ROOT
.
CaloRec
.
ToolConstants
()
tc
.
clsname
(
'
foofoo
'
)
tc
.
clsname
(
'
foofoo
'
)
...
...
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