[New-bugs-announce] [issue25795] test_fork1 cannot be run directly: ./pyhon Lib/test/test_fork1.py

STINNER Victor report at bugs.python.org
Fri Dec 4 05:54:55 EST 2015


New submission from STINNER Victor:

haypo at smithers$ ./python Lib/test/test_fork1.py 
Traceback (most recent call last):
  File "Lib/test/test_fork1.py", line 111, in <module>
    unittest.main()
NameError: name 'unittest' is not defined

According to pyflakes, the error "undefined name 'unittest'" is found in:

- test_fork1
- test_list
- test_pyclbr
- test_telnetlib
- test_tuple
- test_userdict
- test_userlist
- test_wait4

I put the "easy" flag to give a simple issue to newcomers in Python ;-)

Please check other Python version: 2.7 and 3.5. I'm too lazy to check myself :-D

See issue the issue #25783 which is similar.

----------
components: Tests
keywords: easy
messages: 255856
nosy: haypo
priority: normal
severity: normal
status: open
title: test_fork1 cannot be run directly: ./pyhon Lib/test/test_fork1.py
versions: Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25795>
_______________________________________


More information about the New-bugs-announce mailing list