summaryrefslogtreecommitdiffstats
path: root/src/tests/pysss_murmur-test.py
diff options
context:
space:
mode:
authorBohuslav Kabrda <bkabrda@redhat.com>2014-12-12 11:04:40 +0100
committerJakub Hrozek <jhrozek@redhat.com>2015-02-13 18:36:50 +0100
commit9687d7db79e15846de385537a99525d11cae6a15 (patch)
treed8d201e1a95841acd1cd1e8b0b2d92038590b053 /src/tests/pysss_murmur-test.py
parentdc13b1aff629b0271eb6b75a9f3bdb43c9767093 (diff)
downloadsssd-9687d7db79e15846de385537a99525d11cae6a15.tar.gz
sssd-9687d7db79e15846de385537a99525d11cae6a15.tar.xz
sssd-9687d7db79e15846de385537a99525d11cae6a15.zip
Python3 support in SSSD
https://fedorahosted.org/sssd/ticket/2017 (cherry picked from commit 341a00311680a440d7f979f06c34c70d86c9367a)
Diffstat (limited to 'src/tests/pysss_murmur-test.py')
-rwxr-xr-xsrc/tests/pysss_murmur-test.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/tests/pysss_murmur-test.py b/src/tests/pysss_murmur-test.py
index ee0e8b8a0..41cb350f7 100755
--- a/src/tests/pysss_murmur-test.py
+++ b/src/tests/pysss_murmur-test.py
@@ -17,6 +17,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+from __future__ import print_function
import unittest
import sys
@@ -46,6 +47,8 @@ class PySssMurmurImport(unittest.TestCase):
" Make sure we load the in-tree module "
self.system_path = sys.path[:]
sys.path = [ MODPATH ]
+ print (os.getcwd())
+ print(MODPATH)
def tearDown(self):
" Restore the system path "
@@ -55,8 +58,8 @@ class PySssMurmurImport(unittest.TestCase):
" Import the module and assert it comes from tree "
try:
import pysss_murmur
- except ImportError, e:
- print >>sys.stderr, "Could not load the pysss_murmur module. Please check if it is compiled"
+ except ImportError as e:
+ print("Could not load the pysss_murmur module. Please check if it is compiled", file=sys.stderr)
raise e
self.assertEqual(pysss_murmur.__file__, MODPATH + "/pysss_murmur.so")