Issue #30 wontfix

Renaming codefile doesn't make pytddmon red

Olof Bjarnason
repo owner created an issue

If test_some.py imports some.py, and all unit tests pass, then pytddmon is green.

But renaming some.py should then make pytddmon red (since test_some is dependent upon a module called some!), but that does not happen.

Comments (1)

  1. Olof Bjarnason reporter

    This is not a problem with pytddmon.py, it's the general behaviour of Python (CPython at least). It's because renaming a .py doesn't automagically rename/remove it's corresponding .pyc file. So the (old) .pyc file is loaded instead of the original .py file, hence the unit test doing the import won't fail because of the rename.

    The problem is solved in Python3.2. Read PEP3147 (http://www.python.org/dev/peps/pep-3147/) for more details. Because of this, this "bug" is something that will solve itself in the future.

  2. Log in to comment