Skip to content

Commit e55f7de

Browse files
committed
Make sure we import the right pygccxml (not an installed version) in test
1 parent 3f7e633 commit e55f7de

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

unittests/misc/test_performance.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,16 @@
88
import time
99
import hotshot
1010
import hotshot.stats
11-
from pygccxml import parser
12-
from pygccxml import declarations
1311

1412
this_module_dir_path = os.path.abspath(
1513
os.path.dirname(sys.modules[__name__].__file__))
1614

17-
sys.path.insert(1, os.path.join(this_module_dir_path, '../'))
15+
sys.path.insert(1, os.path.join(this_module_dir_path, '../../'))
16+
sys.path.insert(2, os.path.join(this_module_dir_path, '../'))
1817

19-
import autoconfig # nopep8
18+
import autoconfig # nopep8
19+
from pygccxml import parser # nopep8
20+
from pygccxml import declarations # nopep8
2021

2122
dcache_file_name = os.path.join(autoconfig.data_directory, 'pygccxml.cache')
2223
if os.path.exists(dcache_file_name):

0 commit comments

Comments
 (0)