From 72ac1ccabacf86711d7385af729426697a3c1cb6 Mon Sep 17 00:00:00 2001 From: Santiago Pestarini Date: Sun, 26 May 2013 21:10:52 -0300 Subject: [PATCH] parentheses for print So to be compatible with python3 --- tests/scaffold_tests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/scaffold_tests.py b/tests/scaffold_tests.py index 486873a..b5856fc 100644 --- a/tests/scaffold_tests.py +++ b/tests/scaffold_tests.py @@ -7,10 +7,10 @@ def setup(): os.mkdir(target_dir) #Create a temporary directory that we will delete later upon test completion - print "root test directory: {dir}".format(dir=target_dir) + print("root test directory: {dir}".format(dir=target_dir)) def teardown(): - print "attempting to tear down {dir}".format(dir=target_dir) + print("attempting to tear down {dir}".format(dir=target_dir)) shutil.rmtree(target_dir) #Recursively deletes the directory and all of its contents def test_create_folder_path(): @@ -77,4 +77,4 @@ def assert_file_exists(target_dir, sub_dir, filename): if sub_dir == None: #If we don't have a sub-directory assert os.path.exists(os.path.join(target_dir, filename)) else: - assert os.path.exists(os.path.join(os.path.join(target_dir, sub_dir), filename)) \ No newline at end of file + assert os.path.exists(os.path.join(os.path.join(target_dir, sub_dir), filename))