Amir Szekely added the comment:
Reproduction details:
[root@meh /]# uname -a
Linux meh 2.6.32-131.17.1.el6-0.0.3.smp.pae.gcc4.1.x86.i686 #1 SMP Tue Dec 20
02:40:22 PST 2011 i686 GNU/Linux
[root@meh /]# pwd
/
[root@meh /]# dd if=/dev/zero of=/tmp/BIG bs=4M
dd: writing `/tmp/BIG': No space left on device
31+0 records in
30+0 records out
127254528 bytes (127 MB) copied, 3.7028 s, 34.4 MB/s
[root@meh /]# ls
bin boot dev etc home initrd lib lost+found media mnt opt proc root
sbin srv sys tmp usr var
[root@meh /]# python -c "import tempfile; tempfile.mktemp()"
Traceback (most recent call last):
File "<string>", line 1, in ?
File "/usr/lib/python2.4/tempfile.py", line 362, in mktemp
dir = gettempdir()
File "/usr/lib/python2.4/tempfile.py", line 268, in gettempdir
tempdir = _get_default_tempdir()
File "/usr/lib/python2.4/tempfile.py", line 214, in _get_default_tempdir
raise IOError, (_errno.ENOENT,
IOError: [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp',
'/usr/tmp', '/']
[root@meh /]# ls
bin boot dev etc home initrd lib lost+found media mnt opt proc
-qE-nI root sbin srv sys tmp usr var
[root@meh /]#
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue16800>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com