SF.net SVN: jython:[7236] trunk/jython/Lib/test/test_scope.py
[email protected] Mon, 14 Mar 2011 04:31:54 +0000
| Newsgroups | gmane.comp.lang.jython.cvs |
|---|---|
| Message-ID | <[email protected]> |
Revision: 7236
http://jython.svn.sourceforge.net/jython/?rev=7236&view=rev
Author: pjenvey
Date: 2011-03-14 04:31:54 +0000 (Mon, 14 Mar 2011)
Log Message:
-----------
reapply our extra_collect fix
Modified Paths:
--------------
trunk/jython/Lib/test/test_scope.py
Modified: trunk/jython/Lib/test/test_scope.py
===================================================================
--- trunk/jython/Lib/test/test_scope.py 2011-03-14 04:29:34 UTC (rev 7235)
+++ trunk/jython/Lib/test/test_scope.py 2011-03-14 04:31:54 UTC (rev 7236)
@@ -1,6 +1,6 @@
import unittest
from test.test_support import (check_syntax_error, _check_py3k_warnings,
- check_warnings, run_unittest)
+ check_warnings, is_jython, run_unittest)
class ScopeTests(unittest.TestCase):
@@ -444,6 +444,11 @@
for i in range(100):
f1()
+ if is_jython:
+ from test_weakref import extra_collect
+ # A lot of garbage
+ for i in range(3):
+ extra_collect()
self.assertEqual(Foo.count, 0)
def testClassAndGlobal(self):
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d