A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2010-October/105078.html below:

[Python-Dev] r85960 - python/branches/py3k/Lib/test/test_mailbox.py

[Python-Dev] r85960 - python/branches/py3k/Lib/test/test_mailbox.pyAntoine Pitrou solipsis at pitrou.net
Sat Oct 30 14:12:05 CEST 2010
On Sat, 30 Oct 2010 02:13:01 +0200 (CEST)
brett.cannon <python-checkins at python.org> wrote:
> Author: brett.cannon
> Date: Sat Oct 30 02:13:00 2010
> New Revision: 85960
> 
> Log:
> Silence some ResourceWarning in test_mailbox by using file context managers.

Unfortunately, these file-like objects don't support the context
management protocol:

======================================================================
ERROR: test_get_file (test.test_mailbox.TestMaildir)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/test/test_mailbox.py",
line 168, in test_get_file with self._box.get_file(key0) as file:
AttributeError: __exit__

======================================================================
ERROR: test_get_file (test.test_mailbox.TestMbox)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/test/test_mailbox.py",
line 168, in test_get_file with self._box.get_file(key0) as file:
AttributeError: __exit__

======================================================================
ERROR: test_get_file (test.test_mailbox.TestMMDF)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/test/test_mailbox.py",
line 168, in test_get_file with self._box.get_file(key0) as file:
AttributeError: __exit__

======================================================================
ERROR: test_get_file (test.test_mailbox.TestMH)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/test/test_mailbox.py",
line 168, in test_get_file with self._box.get_file(key0) as file:
AttributeError: __exit__




More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4