A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2000-July/006277.html below:

[Python-Dev] no test_posix, test_os or test_sys?

[Python-Dev] no test_posix, test_os or test_sys?Skip Montanaro skip@mojam.com (Skip Montanaro)
Wed, 12 Jul 2000 11:25:57 -0500 (CDT)
    Thomas> (I did write the test_pty/test_openpty modules with this in
    Thomas> mind, though:

    Thomas> ## # Please uncomment these if os.isatty() is added.
    Thomas> ## if not os.isatty(master_fd):
    Thomas> ##     raise TestFailed, "master_fd is not a tty"
    Thomas> ## if not os.isatty(slave_fd):
    Thomas> ##     raise TestFailed, "slave_fd is not a tty"

    Thomas> So if you accept the patch, please uncomment those lines ;)

Will do.

    Thomas> However, isatty() is a *very* simple wrapper around a very basic
    Thomas> C function, so I didn't think it warranted a test case. (Like
    Thomas> you pointed out, none of the other functions in posixmodule have
    Thomas> test cases.)

My message wasn't motivated so much with the missing test case for isatty,
but that there are no regression tests at all for os, posix or sys.

Skip




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4