Skip to content

Commit

Permalink
Merge pull request #33560 from davidlange6/dl210428
Browse files Browse the repository at this point in the history
remove Python2 unit tests ; migrate scripts using uproot to use python3
  • Loading branch information
cmsbuild committed Apr 30, 2021
2 parents 87a7cf9 + 3a563aa commit 6c9e4f8
Show file tree
Hide file tree
Showing 11 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion DQMServices/Components/scripts/dqmdumpme.py
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
from __future__ import print_function
import sys
import numpy
Expand Down
2 changes: 1 addition & 1 deletion DQMServices/Components/scripts/dqmiodumpindices.py
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
from __future__ import print_function

import uproot
Expand Down
2 changes: 1 addition & 1 deletion DQMServices/Components/scripts/dqmiodumpmetadata.py
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
from __future__ import print_function

import uproot
Expand Down
2 changes: 1 addition & 1 deletion DQMServices/Components/scripts/dqmiolistmes.py
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
from __future__ import print_function

import uproot
Expand Down
1 change: 0 additions & 1 deletion PhysicsTools/PythonAnalysis/test/BuildFile.xml
Expand Up @@ -50,7 +50,6 @@
<test name="import-bottleneck" command="python3 -c 'import bottleneck'"/>
<test name="import-certifi" command="python3 -c 'import certifi'"/>
<test name="import-chardet" command="python3 -c 'import chardet'"/>
<test name="import-cjson" command="python2 -c 'import cjson'"/>
<test name="import-click" command="python3 -c 'import click'"/>
<test name="import-climate" command="python3 -c 'import climate'"/>
<test name="import-cycler" command="python3 -c 'import cycler'"/>
Expand Down
2 changes: 1 addition & 1 deletion PhysicsTools/PythonAnalysis/test/testBottleneck.py
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3


import bottleneck
Expand Down
2 changes: 1 addition & 1 deletion PhysicsTools/PythonAnalysis/test/testDownhill.py
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

from __future__ import print_function
import downhill
Expand Down
2 changes: 1 addition & 1 deletion PhysicsTools/PythonAnalysis/test/testPandas.py
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

from __future__ import print_function
import matplotlib
Expand Down
2 changes: 1 addition & 1 deletion PhysicsTools/PythonAnalysis/test/testRootNumpy.py
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
#taken from root_numpy examples
#https://rootpy.github.io/root_numpy/auto_examples/tmva/plot_regression.html
import matplotlib
Expand Down
2 changes: 1 addition & 1 deletion PhysicsTools/PythonAnalysis/test/testTables.py
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# test for pytables
# taken from https://kastnerkyle.github.io/posts/using-pytables-for-larger-than-ram-data-processing/
Expand Down
2 changes: 1 addition & 1 deletion PhysicsTools/PythonAnalysis/test/testUncertainties.py
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

#example taken from https://pypi.python.org/pypi/uncertainties/3.0.1
from __future__ import print_function
Expand Down

0 comments on commit 6c9e4f8

Please sign in to comment.