From c7d120ec1cb16f9f125d159c4add6910e35755ec Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Wed, 29 Jun 2011 13:55:26 -0500 Subject: [PATCH] we want second resolution on mtime --- _pytest/assertion/rewrite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_pytest/assertion/rewrite.py b/_pytest/assertion/rewrite.py index e401f041d..d4908a467 100644 --- a/_pytest/assertion/rewrite.py +++ b/_pytest/assertion/rewrite.py @@ -147,7 +147,7 @@ def _compute_pyc_location(source_path): def _use_cached_pyc(source, cache): try: - mtime = source.mtime() + mtime = int(source.mtime()) fp = cache.open("rb") try: data = fp.read(8)