aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2016-07-03 21:35:07 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2016-07-03 21:35:07 -0400
commit5d72f0fe493251975b497c26344078c52054067a (patch)
tree6cc2ca323c00d19aefcd816de071e96e32953726
parentf2312d9701a560544006c9e2e0067413ac9f605e (diff)
downloadsteuermann-5d72f0fe493251975b497c26344078c52054067a.tar.gz
Python 3k compat.
-rw-r--r--tests/hosts.py14
-rw-r--r--tests/misc.py2
2 files changed, 8 insertions, 8 deletions
diff --git a/tests/hosts.py b/tests/hosts.py
index c1305a8..9039cd8 100644
--- a/tests/hosts.py
+++ b/tests/hosts.py
@@ -3,19 +3,19 @@ import steuermann.run as run
r = run.runner(0,0)
def test_1() :
- print "SECTIONS",r.cfg.sections()
+ print("SECTIONS",r.cfg.sections())
def test_2() :
- print r.get_host_info('rhe4-32')
+ print(r.get_host_info('rhe4-32'))
def test_3() :
- print r.get_host_info('leopard')
+ print(r.get_host_info('leopard'))
-print "XXXXXXXXXX"
+print("XXXXXXXXXX")
test_1()
-print "XXXXXXXXXX"
+print("XXXXXXXXXX")
test_2()
-print "XXXXXXXXXX"
+print("XXXXXXXXXX")
test_3()
-print "XXXXXXXXXX"
+print("XXXXXXXXXX")
diff --git a/tests/misc.py b/tests/misc.py
index c1d12aa..1cbde09 100644
--- a/tests/misc.py
+++ b/tests/misc.py
@@ -1,5 +1,5 @@
-import nodes
+from steuermann import nodes
yes_list = (
( 'a:b/c', 'a:b/c' ),