RE: [Pydev-users] Renaming test case file causes major failure
Brought to you by:
fabioz
From: Carroll, B. <Bar...@ps...> - 2006-04-27 16:54:07
|
Fabio: Ah! The 'wild' in 'wild import' refers to the 'wild card' "*" character! It makes perfect sense now. Thanks. Thanks also for figuring out and explaining my bug so quickly. I forgot to mention that the failure did not occur when the renamed module was run from a command line. I was really perplexed. I will open a report today. =20 Your timely support is among the best I've seen. In my opinion it is one of PyDev's strongest selling points. I will be sure to include it in my evaluation. Thanks again. =20 > -----Original Message----- > Date: Wed, 26 Apr 2006 07:57:03 -0300 > From: "Fabio Zadrozny" <fa...@gm...> > To: pyd...@li... > Subject: Re: [Pydev-users] Renaming test case file causes major failure > Reply-To: pyd...@li... >=20 > ------=3D_Part_1795_22336485.1146049023500 > Content-Type: text/plain; charset=3DWINDOWS-1252 > Content-Transfer-Encoding: quoted-printable > Content-Disposition: inline >=20 > Hi Barry, >=20 > The message you're seeing is from code-analysis, and it means that you > have > a number of tokens from a wild import that you're not using. >=20 > You can correct it by not using a wild import and just using the needed > tokens or by using (take a look at > http://www.fabioz.com/pydev/manual_adv_code_analysis.html for details on > code-analysis). >=20 > As for the tests not running that's strange, couldn't reproduce that > behaviour here... Actually, scratch that... I've found it, the reason is > that you're renaming it to the same name of the parent package, so, you > can > rename the test for anything but the same name of the parent package... >=20 > That's because your structure becomes >=20 > encodetests/ > __init__.py > encodetests.py >=20 > And the unit-testing module tries to import the module encodetests.py and > ends up with the module encodetests.__init__.py, where it cannot find any > unit-test... So, that's a bug (if you could report it in the tracker it > would be nice...). I'll have to think about it some more to see how to fix > it. >=20 > Cheers, >=20 > Fabio >=20 <<snip>> > Regards, =20 Barry bar...@ps... 541-302-1107 ________________________ We who cut mere stones must always be envisioning cathedrals. -Quarry worker's creed |