[Python-Dev] Typo in pty.py

Phillip Porch root@theporch.com
Mon, 3 Jul 2000 08:46:00 -0500 (CDT)


I was compiling and testing the current snapshot of python (current as of
7:00 AM CDT 7/3/00) and found that test_pty failed. Here is the output of
the test.

[sco root-tty01 src] ./python Lib/test/test_pty.py
Calling master_open()
Got master_fd '6', slave_name '/dev/ttyp1'
Calling slave_open('/dev/ttyp1')
Got slave_fd '7'
Writing to slave_fd
I wish to buy a fish license.
For my pet fish, Eric.
calling pty.fork()
Traceback (most recent call last):
  File "Lib/test/test_pty.py", line 50, in ?
    pid, master_fd = pty.fork()
  File "./Lib/pty.py", line 95, in fork
    master_fd, slave_fd = openpty() 
  File "./Lib/pty.py", line 28, in openpty
    slave_fd = _slave_open(slave_name)
NameError: _slave_open


I believe there is a typo on line 28 in Lib/pty.py... the call should not
be _slave_open but slave_open. I made that change and the test ran fine.


-- 
Phillip P. Porch <root@sco.theporch.com>  NIC:PP1573     finger for 
http://www.theporch.com  UTM - 16 514546E 3994565N          PGP key