Index: Lib/trace.py =================================================================== --- Lib/trace.py (revision 87956) +++ Lib/trace.py (working copy) @@ -131,7 +131,7 @@ class _Ignore: def __init__(self, modules=None, dirs=None): self._mods = set() if not modules else set(modules) - self._dirs = [] if not dirs else [os.path.normpath(d) + self._dirs = [] if not dirs else [os.path.normcase(os.path.normpath(d)) for d in dirs] self._ignore = { '': 1 }