Skip to content

Commit

Permalink
Update tests for Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
pfernique committed Sep 6, 2017
1 parent db3644c commit 3a07c37
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/test_feedback.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
##################################################################################

import autowig
import six

import unittest
from nose.plugins.attrib import attr
Expand Down Expand Up @@ -143,9 +144,10 @@ def test_with_none_overload_export(self, overload="none"):
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
prev, curr = s.communicate()

while not prev == curr:
while curr and not prev == curr:
prev = curr
curr = curr.decode('ascii', 'ignore')
if six.PY3:
curr = curr.decode('ascii', 'ignore')
code = autowig.feedback(curr, '.', asg)
if code:
exec(code, locals())
Expand Down

0 comments on commit 3a07c37

Please sign in to comment.