Skip to content

Commit

Permalink
Update test_basic.py for Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
pfernique committed Sep 5, 2017
1 parent 012a274 commit 33a05f9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ class TestBasic(unittest.TestCase):

@classmethod
def setUpClass(cls):
autowig.parser.plugin = 'libclang'
if six.PY2:
autowig.parser.plugin = 'libclang'
autowig.generator.plugin = 'boost_python_internal'
cls.tgt = Path('.').abspath()/'doc'/'examples'/'basic'/'src'/'py'
cls.src = Path(sys.prefix).abspath()/'include'/'basic'
Expand Down Expand Up @@ -104,4 +105,4 @@ def test_boost_python_pattern_generator(self):
plugin = autowig.generator.plugin
autowig.generator.plugin = 'boost_python_pattern'
self.test_mapping_export()
autowig.generator.plugin = plugin
autowig.generator.plugin = plugin

0 comments on commit 33a05f9

Please sign in to comment.