<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/test/test_scope.py, branch v3.3.2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_scope.py?h=v3.3.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_scope.py?h=v3.3.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2011-02-21T19:29:56Z</updated>
<entry>
<title>Issue #10990: Prevent tests from clobbering a set trace function.</title>
<updated>2011-02-21T19:29:56Z</updated>
<author>
<name>Brett Cannon</name>
<email>bcannon@gmail.com</email>
</author>
<published>2011-02-21T19:29:56Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=31f5929c1e28adcaa1fdb302da366f3c7a92a98a'/>
<id>urn:sha1:31f5929c1e28adcaa1fdb302da366f3c7a92a98a</id>
<content type='text'>
Many tests simply didn't care if they unset a pre-existing trace function. This
made test coverage impossible. This patch fixes various tests to put back any
pre-existing trace function. It also introduces test.support.no_tracing as a
decorator which will temporarily unset the trace function for tests which
simply fail otherwise.

Thanks to Kristian Vlaardingerbroek for helping to find the cause of various
trace function unsets.
</content>
</entry>
<entry>
<title>#9424: Replace deprecated assert* methods in the Python test suite.</title>
<updated>2010-11-20T19:04:17Z</updated>
<author>
<name>Ezio Melotti</name>
<email>ezio.melotti@gmail.com</email>
</author>
<published>2010-11-20T19:04:17Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b3aedd48621ed9d33b5f42f946b256bce4a50673'/>
<id>urn:sha1:b3aedd48621ed9d33b5f42f946b256bce4a50673</id>
<content type='text'>
</content>
</entry>
<entry>
<title>don't identify the toplevel namespace by name #9997</title>
<updated>2010-10-16T03:45:45Z</updated>
<author>
<name>Benjamin Peterson</name>
<email>benjamin@python.org</email>
</author>
<published>2010-10-16T03:45:45Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=230b20684f6d10044d604bc88065692393037948'/>
<id>urn:sha1:230b20684f6d10044d604bc88065692393037948</id>
<content type='text'>
</content>
</entry>
<entry>
<title>#4617: Previously it was illegal to delete a name from the local</title>
<updated>2010-09-10T21:39:53Z</updated>
<author>
<name>Amaury Forgeot d'Arc</name>
<email>amauryfa@gmail.com</email>
</author>
<published>2010-09-10T21:39:53Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ba117ef7e9b2f7f2fbec62a9fcfe371a68024769'/>
<id>urn:sha1:ba117ef7e9b2f7f2fbec62a9fcfe371a68024769</id>
<content type='text'>
namespace if it occurs as a free variable in a nested block.  This limitation
of the compiler has been lifted, and a new opcode introduced (DELETE_DEREF).

This sample was valid in 2.6, but fails to compile in 3.x without this change::

   &gt;&gt;&gt; def f():
   ...     def print_error():
   ...        print(e)
   ...     try:
   ...        something
   ...     except Exception as e:
   ...        print_error()
   ...        # implicit "del e" here


This sample has always been invalid in Python, and now works::

   &gt;&gt;&gt; def outer(x):
   ...     def inner():
   ...        return x
   ...     inner()
   ...     del x

There is no need to bump the PYC magic number: the new opcode is used
for code that did not compile before.
</content>
</entry>
<entry>
<title>Use the "if 1:" prefix so that quoted code appears nicely</title>
<updated>2010-09-10T19:40:52Z</updated>
<author>
<name>Amaury Forgeot d'Arc</name>
<email>amauryfa@gmail.com</email>
</author>
<published>2010-09-10T19:40:52Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=dfa9b294fac33934547b5f7b7542466c469e6599'/>
<id>urn:sha1:dfa9b294fac33934547b5f7b7542466c469e6599</id>
<content type='text'>
nested inside the test suite.

def test_me():
    exec("""if 1:
        ...code...
        """)

No other change here.
</content>
</entry>
<entry>
<title>revert unintended changes</title>
<updated>2010-07-20T22:39:34Z</updated>
<author>
<name>Benjamin Peterson</name>
<email>benjamin@python.org</email>
</author>
<published>2010-07-20T22:39:34Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=20f9c3c50f5e642295040c05e574ff9dc84bf207'/>
<id>urn:sha1:20f9c3c50f5e642295040c05e574ff9dc84bf207</id>
<content type='text'>
</content>
</entry>
<entry>
<title>move test_trace.py so as not to conflict with future tests for the trace module</title>
<updated>2010-07-20T22:37:19Z</updated>
<author>
<name>Benjamin Peterson</name>
<email>benjamin@python.org</email>
</author>
<published>2010-07-20T22:37:19Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=013783c529cfc459d05d261f5053ad7bf7d88c29'/>
<id>urn:sha1:013783c529cfc459d05d261f5053ad7bf7d88c29</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merged revisions 79100 via svnmerge from</title>
<updated>2010-03-19T19:00:44Z</updated>
<author>
<name>Florent Xicluna</name>
<email>florent.xicluna@gmail.com</email>
</author>
<published>2010-03-19T19:00:44Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9b86b9a086425c9c3a132ccad4ea8875083300c2'/>
<id>urn:sha1:9b86b9a086425c9c3a132ccad4ea8875083300c2</id>
<content type='text'>
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r79100 | florent.xicluna | 2010-03-19 19:34:55 +0100 (ven, 19 mar 2010) | 2 lines

  Various tests cleanup: check_warnings/check_py3k_warnings, unittest.assert* and setUp/tearDown.
........
</content>
</entry>
<entry>
<title>use assert[Not]In where appropriate</title>
<updated>2010-01-19T00:09:57Z</updated>
<author>
<name>Benjamin Peterson</name>
<email>benjamin@python.org</email>
</author>
<published>2010-01-19T00:09:57Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=577473fe687b38c8f01b0c372d6d2563680045b3'/>
<id>urn:sha1:577473fe687b38c8f01b0c372d6d2563680045b3</id>
<content type='text'>
A patch from Dave Malcolm.
</content>
</entry>
<entry>
<title>Merged revisions 73683,73786 via svnmerge from</title>
<updated>2009-07-21T02:51:58Z</updated>
<author>
<name>Alexandre Vassalotti</name>
<email>alexandre@peadrop.com</email>
</author>
<published>2009-07-21T02:51:58Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6f8281865292ff1cec78331cb881fa311c4f6f92'/>
<id>urn:sha1:6f8281865292ff1cec78331cb881fa311c4f6f92</id>
<content type='text'>
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r73683 | georg.brandl | 2009-06-29 10:44:49 -0400 (Mon, 29 Jun 2009) | 1 line

  Fix error handling in PyCode_Optimize, by Alexander Schremmer at EuroPython sprint.
........
  r73786 | benjamin.peterson | 2009-07-02 18:56:16 -0400 (Thu, 02 Jul 2009) | 1 line

  condense with assertRaises
........
</content>
</entry>
</feed>
