Re: [Zope-dev] doctest in python and zope.testing have a bug, where do I report?

2009-08-14 Thread Chris Withers
Gediminas Paulauskas wrote:
> https://bugs.launchpad.net/zope.testing

Done:
https://bugs.launchpad.net/zope.testing/+bug/413685
http://bugs.python.org/issue6703

cheers,

Chris

-- 
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] doctest in python and zope.testing have a bug, where do I report?

2009-08-11 Thread Gediminas Paulauskas
On Tue, Aug 11, 2009 at 3:57 PM, Chris Withers wrote:
> Chris Withers wrote:
>> ValueError: Module-relative files may not have absolute paths
>
> Okay, so this is because the check is this little gem:
>
> if path.startswith('/'):
>   raise ValueError, 'Module-relative files may not have absolute paths'
>
> Cross platform FAIL :-(
>
> A few questions:
>
> - how can this actually be written in a cross platform way? Absolute
> paths start with a drive letter on Windows, no?

os.path.isabs(path)

> - why are absolute paths bad here anyway? The code that causes this
> problem was:
>
>     return DocFileSuite(
>         optionflags=REPORT_NDIFF|ELLIPSIS,
>         *glob(join(dirname(__file__),pardir,'docs','*.txt'))
>         )
>
> I have a nagging feeling this has come up before, but still, the above
> seems to be viable if maybe not preferred?

Looks too complicated and yes that check looks redundant to me.

>
> - where do I report the cross platform bug? Python core tracker? What
> about zope.testing? Where does its tracker live now?

https://bugs.launchpad.net/zope.testing
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )