Skip to content

Commit

Permalink
✅ test data for python 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
caryan committed Apr 26, 2016
1 parent 3352383 commit 5a732b5
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test_Sequences.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,17 @@ def compare_sequences(self, seqDir):
truthDirectory = self.truth_dir + os.path.sep + seqDir

filenames = os.listdir(searchDirectory)

#look for py27 versions
py27_files = [f for f in filenames if f[-8:] == "_py27.h5"]
if py27_files:
if sys.version[0] > 2:
#strip them out for python3 (and above?)
filenames = [f for f in filenames if f[-8:] != "_py27.h5"]
else:
#otherwise strip the non "_py27" version
filenames = [f for f in filenames if f.replace(".h5", "_py27.h5") not in py27_files]

for filename in filenames:
truthFile = truthDirectory + os.path.sep + filename
testFile = searchDirectory + os.path.sep + filename
Expand Down
3 changes: 3 additions & 0 deletions tests/test_data/awg/TestAPS1/SingleQubitRB/RB/RB-APS2_py27.h5
Git LFS file not shown
3 changes: 3 additions & 0 deletions tests/test_data/awg/TestAPS2/SingleQubitRB/RB/RB-APS1_py27.h5
Git LFS file not shown
3 changes: 3 additions & 0 deletions tests/test_data/awg/TestAPS2/SingleQubitRB/RB/RB-APS2_py27.h5
Git LFS file not shown

0 comments on commit 5a732b5

Please sign in to comment.