Skip to content

Commit

Permalink
parentheses for print
Browse files Browse the repository at this point in the history
So to be compatible with python3
  • Loading branch information
quijot committed May 27, 2013
1 parent b1f46fb commit 72ac1cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/scaffold_tests.py
Expand Up @@ -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():
Expand Down Expand Up @@ -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))
assert os.path.exists(os.path.join(os.path.join(target_dir, sub_dir), filename))

0 comments on commit 72ac1cc

Please sign in to comment.