diff options
| author | Pete Zaitcev <zaitcev@kotori.zaitcev.us> | 2015-04-02 21:47:18 -0600 |
|---|---|---|
| committer | Pete Zaitcev <zaitcev@kotori.zaitcev.us> | 2015-04-02 21:47:18 -0600 |
| commit | 0155a20b64c248b5c874ce2f8d39f4c0c09c54b2 (patch) | |
| tree | 5165e68c180ba9c5ca93cfe7988cc32bd965cfb1 /test | |
| parent | 9b2ed408c1ff526799d72350cf6c953f105f2b2f (diff) | |
| download | pyeclib-0155a20b64c248b5c874ce2f8d39f4c0c09c54b2.tar.gz | |
Fix a few print statements for py3
Fedora packaging mandates support for py3 nowadays, so I have to
fix stuff like this. Interestingly enough, we don't seem to need
from future import __print_statement__ here.
Diffstat (limited to 'test')
| -rw-r--r-- | test/test_pyeclib_api.py | 2 | ||||
| -rw-r--r-- | test/test_pyeclib_c.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/test_pyeclib_api.py b/test/test_pyeclib_api.py index b00abc0..71552c1 100644 --- a/test/test_pyeclib_api.py +++ b/test/test_pyeclib_api.py @@ -536,7 +536,7 @@ class TestPyECLibDriver(unittest.TestCase): pyeclib_driver.reconstruct([fragments[0]], [1,2,3,4,5,6]) except ECDriverError as e: hit_exception = True - print e.error_str.__str__() + print(e.error_str.__str__()) self.assertTrue(e.error_str.__str__().find("Insufficient number of fragments") > -1) self.assertTrue(hit_exception) diff --git a/test/test_pyeclib_c.py b/test/test_pyeclib_c.py index c7ebb83..eaa93dc 100644 --- a/test/test_pyeclib_c.py +++ b/test/test_pyeclib_c.py @@ -40,7 +40,7 @@ def collect_available_backends(): else: handle = pyeclib_c.init(10, 4, ec_type.value) available_backends.append(ec_type.name) - print ec_type.name + print(ec_type.name) except: pass return available_backends |
