[New-bugs-announce] [issue31611] Tests failures using -u largefile when the disk is full

STINNER Victor report at bugs.python.org
Wed Sep 27 08:29:24 EDT 2017


New submission from STINNER Victor <victor.stinner at gmail.com>:

I ran the Python test suite on Windows on a freshly installed Python 3.7a1 and I got errors: bpo-31606.

I created a separated issue for tests failing because my disk has low free space.


On my Windows VM, I have a single 40 GB disk with 1.36 GB free.

C:\Users\haypo\AppData\Local\Programs\Python\Python37>python -m test -v -u all test_largefile

======================================================================
ERROR: test_truncate (test.test_largefile.PyLargeFileTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\haypo\AppData\Local\Programs\Python\Python37\lib\test\test_largefile.py", line 37, in setUp
    f.flush()
  File "C:\Users\haypo\AppData\Local\Programs\Python\Python37\lib\_pyio.py", line 1226, in flush
    self._flush_unlocked()
  File "C:\Users\haypo\AppData\Local\Programs\Python\Python37\lib\_pyio.py", line 1233, in _flush_unlocked
    n = self.raw.write(self._write_buf)
  File "C:\Users\haypo\AppData\Local\Programs\Python\Python37\lib\_pyio.py", line 1630, in write
    return os.write(self._fd, b)
OSError: [Errno 28] No space left on device

(other tests fail with similar message)



test_io:

======================================================================
ERROR: test_large_file_ops (test.test_io.CIOTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\haypo\AppData\Local\Programs\Python\Python37\lib\test\test_io.p
y", line 574, in test_large_file_ops
    self.large_file_ops(f)
  File "C:\Users\haypo\AppData\Local\Programs\Python\Python37\lib\test\test_io.p
y", line 355, in large_file_ops
    self.assertEqual(f.write(b"xxx"), 3)
OSError: [Errno 28] No space left on device

======================================================================
ERROR: test_large_file_ops (test.test_io.PyIOTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\haypo\AppData\Local\Programs\Python\Python37\lib\test\test_io.py", line 574, in test_large_file_ops
    self.large_file_ops(f)
  File "C:\Users\haypo\AppData\Local\Programs\Python\Python37\lib\test\test_io.py", line 355, in large_file_ops
    self.assertEqual(f.write(b"xxx"), 3)
  File "C:\Users\haypo\AppData\Local\Programs\Python\Python37\lib\_pyio.py", line 1630, in write
    return os.write(self._fd, b)
OSError: [Errno 28] No space left on device

----------
components: Tests
messages: 303130
nosy: haypo
priority: normal
severity: normal
status: open
title: Tests failures using -u largefile when the disk is full
versions: Python 3.7

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


More information about the New-bugs-announce mailing list