Skip to content

Commit

Permalink
Ignore first # comment in file_compare
Browse files Browse the repository at this point in the history
  • Loading branch information
jvanstraten committed Jul 15, 2021
1 parent 03e7386 commit a3f7867
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions tests/test_cqasm.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,14 @@
import os
import filecmp
import unittest
from utils import file_compare
from openql import openql as ql

curdir = os.path.dirname(os.path.realpath(__file__))
platf = ql.Platform("starmon", "none")

output_dir = os.path.join(curdir, 'test_output')

def file_compare(fn1, fn2):
isSame = False
with open(fn1, 'r') as f1:
with open(fn2, 'r') as f2:
a = f1.read()
b = f2.read()
f1.close()
f2.close()
isSame = (a==b)
return isSame

class Test_cqasm(unittest.TestCase):

@classmethod
Expand Down

0 comments on commit a3f7867

Please sign in to comment.