Fixed bug introduced in revision 1.27

This commit is contained in:
Armin Rigo 2003-10-24 17:15:29 +00:00
parent 4894c30626
commit 1b3c04b510

View file

@ -504,7 +504,7 @@ class TestLoader:
except ImportError: except ImportError:
del parts_copy[-1] del parts_copy[-1]
if not parts_copy: raise if not parts_copy: raise
parts = parts[1:] parts = parts[1:]
obj = module obj = module
for part in parts: for part in parts:
parent, obj = obj, getattr(obj, part) parent, obj = obj, getattr(obj, part)