Skip to content

Commit

Permalink
fixing for py2
Browse files Browse the repository at this point in the history
  • Loading branch information
toumorokoshi committed Jan 22, 2016
1 parent a5ebc9f commit e3ff532
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/rules/test_was_changed.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ def main(build):
# here. I think it's not considering
# milliseconds.
time.sleep(1)
os.utime(f_path)
os.utime(f_path, None)
build.run_task("main")
assert len(g) == 2
2 changes: 1 addition & 1 deletion uranium/rules/was_changed.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def after(self, build):

@property
def key(self):
return "{}.{}.{}".format(
return "{0}.{1}.{2}".format(
KEY, self._path, self.func.__name__
)

Expand Down

0 comments on commit e3ff532

Please sign in to comment.