[Python-Dev] More joy with test_strptime (original) (raw)

Tim Peters tim.peters at gmail.com
Mon Jul 12 20:50:35 CEST 2004


[Brett]

Nuts. Some code somewhere must be importing strptime through time and that is holding a reference to the original copy of 'time' that was imported and then when testsite deletes sys.modules["time"] teststrptime imports 'time' again since it can't find a reference and uses that to monkey-patch which strptime itself never sees since it holds the reference to the original imported 'time'.

I can't make time to respond now, but I wanted to make sure to get another copy of that explanation into the archives for posterity .



More information about the Python-Dev mailing list