Skip to content

Commit

Permalink
change python2 to python3 in a few unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlange6 committed Jun 6, 2021
1 parent c9e232b commit 882d0d5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions PhysicsTools/PythonAnalysis/test/BuildFile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
<test name="import-argparse" command="python3 -c 'import argparse'"/>
<test name="import-autopep8" command="python3 -c 'import autopep8'"/>
<test name="import-avro" command="python3 -c 'import avro'"/>
<test name="import-backports_abc" command="python3 -c 'import backports_abc'"/>
<test name="import-backports.lzma" command="python3 -c 'import backports.lzma'"/>
<test name="import-backports.ssl_match_hostname" command="python3 -c 'import backports.ssl_match_hostname'"/>
<test name="import-bleach" command="python3 -c 'import bleach'"/>
Expand Down Expand Up @@ -89,7 +88,7 @@
<test name="import-notebook" command="python3 -c 'import notebook'"/>
<test name="import-numexpr" command="python3 -c 'import numexpr'"/>
<test name="import-numpy" command="python3 -c 'import numpy'"/>
<test name="import-ordereddict" command="python2 -c 'import ordereddict'"/>
<test name="import-ordereddict" command="python3 -c 'import ordereddict'"/>
<test name="import-packaging" command="python3 -c 'import packaging'"/>
<test name="import-pandas" command="python3 -c 'import pandas'"/>
<test name="import-pandocfilters" command="python3 -c 'import pandocfilters'"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# from https://gist.github.com/IevaZarina/ef63197e089169a9ea9f3109058a9679

from __future__ import print_function
Expand Down
2 changes: 1 addition & 1 deletion PhysicsTools/PythonAnalysis/test/test_pycurl.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import pycurl
c = pycurl.Curl()
c.setopt(c.URL, 'https://cmssdt.cern.ch/SDT/')
Expand Down

0 comments on commit 882d0d5

Please sign in to comment.