On Feb 17, 2008 7:59 AM, Shawn Walker <[EMAIL PROTECTED]> wrote:
> On Feb 15, 2008 7:31 PM, Dan Price <[EMAIL PROTECTED]> wrote:
> >
>
> As for 
> http://cr.opensolaris.org/~dp/ips-tests/src/tests/api/t_catalog.py.html:
>   95                 # XXX How do we do this on Windows?
>   96                 self.nullf = file("/dev/null", "w")
>
> See:
> http://msdn2.microsoft.com/en-us/library/aa293924(VS.60).aspx
>
> I suspect:
>   96                 self.nullf = file("NUL", "w")
>
> ...will work.

I think os.devnull should be used here. IIRC, it gives the correct
name of null-device according to the platform it is running on.
Like this:

        self.nullf = file(os.devnull, "w")


-- 
Regards,
        Cyril
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to