aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-02-27 10:02:30 -0800
committerAlon Zakai <alonzakai@gmail.com>2014-02-27 10:02:44 -0800
commit628bdda744eb55ebbeec42dc564792e955afec50 (patch)
treed2464409fed839742c64f706ba48e1a0de8c5b24 /tests
parent13fd9405aa4ede0d0713cb08ed0840bc753e1828 (diff)
fix test_source_map
Diffstat (limited to 'tests')
-rw-r--r--tests/test_core.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_core.py b/tests/test_core.py
index 26bb71ef..6d341192 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -6141,7 +6141,7 @@ def process(filename):
# can do an apples-to-apples comparison by compiling with the same file name
shutil.move(out_filename, no_maps_filename)
with open(no_maps_filename) as f: no_maps_file = f.read()
- no_maps_file = re.sub(' *//@.*$', '', no_maps_file, flags=re.MULTILINE)
+ no_maps_file = re.sub(' *//[@#].*$', '', no_maps_file, flags=re.MULTILINE)
Building.COMPILER_TEST_OPTS.append('-g4')
def build_and_check():
@@ -6154,7 +6154,7 @@ def process(filename):
# this is worth checking because the parser AST swaps strings for token
# objects when generating source maps, so we want to make sure the
# optimizer can deal with both types.
- out_file = re.sub(' *//@.*$', '', out_file, flags=re.MULTILINE)
+ out_file = re.sub(' *//[@#].*$', '', out_file, flags=re.MULTILINE)
def clean(code):
code = re.sub(r'\n+[ \n]*\n+', '\n', code)
code = code.replace('{\n}', '{}')