[New-bugs-announce] [issue33744] Fix and improve tests for the uu module

Serhiy Storchaka report at bugs.python.org
Sun Jun 3 05:18:11 EDT 2018


New submission from Serhiy Storchaka <storchaka+cpython at gmail.com>:

Separate tests in test_uu leak files of depend on the file leaked in other tests.

$ ./python -m test -m test_decode test_uu 
...
Warning -- files was modified by test_uu
  Before: []
  After:  ['@test_12637_tmpi'] 
test_uu failed (env changed)

$ ./python -m test -m test_decode_filename test_uu
...
Warning -- files was modified by test_uu
  Before: []
  After:  ['@test_12627_tmpi'] 
test_uu failed (env changed)

$ ./python -m test -m test_decodetwice test_uu
...
test test_uu failed -- Traceback (most recent call last):
  File "/home/serhiy/py/cpython/Lib/test/test_uu.py", line 263, in test_decodetwice
    f = open(self.tmpin, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '@test_12622_tmpi'

----------
assignee: serhiy.storchaka
components: Tests
messages: 318530
nosy: serhiy.storchaka
priority: normal
severity: normal
status: open
title: Fix and improve tests for the uu module
type: behavior
versions: Python 2.7, Python 3.6, Python 3.7, Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33744>
_______________________________________


More information about the New-bugs-announce mailing list