test-clang-import.py: make it python2 compatible

This commit is contained in:
Daniel Marjamäki 2020-09-03 19:04:42 +02:00
parent efa113db55
commit 115ad374ba
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
# python3 -m pytest test-clang-import.py
# python -m pytest test-clang-import.py
import os
import re
@ -24,7 +24,7 @@ def get_debug_section(title, stdout):
return s[pos1:pos2-1]
def check_symbol_database(code:str):
def check_symbol_database(code):
testfile = 'test.cpp'
with open(testfile, 'w+t') as f:
f.write(code)