diff --git a/setup.py b/setup.py index 35f53c4..f5e0373 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ name="pytest-testmon", description="selects tests affected by changes files and methods", long_description=long_description, - version='1.0.0', + version="1.0.1", license="AGPL", platforms=["linux", "osx", "win32"], packages=["testmon",], diff --git a/testmon/testmon_core.py b/testmon/testmon_core.py index c677f07..d59efaf 100644 --- a/testmon/testmon_core.py +++ b/testmon/testmon_core.py @@ -109,7 +109,7 @@ def get_file(self, filename): code, checksum = read_file_with_checksum( os.path.join(self.rootdir, filename) ) - if code: + if checksum: fs_mtime = os.path.getmtime(os.path.join(self.rootdir, filename)) self.cache[filename] = Module( source_code=code,