Skip to content

Commit

Permalink
move to python3
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlange6 committed Jul 13, 2021
1 parent 964d203 commit f6af4d0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Geometry/CMSCommonData/test/run_DOMCount.py
@@ -1,4 +1,4 @@
#! /usr/bin/env python
#! /usr/bin/env python3

from __future__ import print_function
from FWCore.ParameterSet.pfnInPath import pfnInPath
Expand Down
4 changes: 2 additions & 2 deletions PhysicsTools/PatAlgos/python/tools/helpers.py
Expand Up @@ -420,8 +420,8 @@ def testContains(self):
p.c = cms.EDProducer("ac", src=cms.InputTag("b"))
p.s1 = cms.Sequence(p.a*p.b*p.c)
p.s2 = cms.Sequence(p.b*p.c)
self.assert_( contains(p.s1, "a") )
self.assert_( not contains(p.s2, "a") )
self.assertTrue( contains(p.s1, "a") )
self.assertTrue( not contains(p.s2, "a") )
def testJetCollectionString(self):
self.assertEqual(jetCollectionString(algo = 'Foo', type = 'Bar'), 'patJetsFooBar')
self.assertEqual(jetCollectionString(prefix = 'prefix', algo = 'Foo', type = 'Bar'), 'prefixPatJetsFooBar')
Expand Down
2 changes: 1 addition & 1 deletion PhysicsTools/PatAlgos/test/runtests.sh
Expand Up @@ -6,7 +6,7 @@ for file in ${CMSSW_BASE}/src/PhysicsTools/PatAlgos/python/tools/*.py
do
bn=`basename $file`
if [ "$bn" != "__init__.py" ]; then
python "$file" || die "unit tests for $bn failed" $?
python3 "$file" || die "unit tests for $bn failed" $?
fi
done

Expand Down

0 comments on commit f6af4d0

Please sign in to comment.