Commits

Palmer, 2E0EOL  committed a4918b3

Eliminate backup file.

  • Participants
  • Parent commits 895432d
  • Tags python-greenlet-0.3.1-1

Comments (0)

Files changed (1)

File tests/test_leaks.py~

-import unittest
-import sys
-
-import greenlet
-
-class ArgRefcountTests(unittest.TestCase):
-    def test_arg_refs(self):
-        args = ('a', 'b', 'c')
-        g = greenlet.greenlet(
-            lambda *args: greenlet.getcurrent().parent.switch(*args))
-        for i in xrange(100):
-            g.switch(*args)
-        self.assertEquals(sys.getrefcount(args), 3)
-
-    def test_kwarg_refs(self):
-        kwargs = {}
-        g = greenlet.greenlet(
-            lambda **kwargs: greenlet.getcurrent().parent.switch(**kwargs))
-        for i in xrange(100):
-            g.switch(**kwargs)
-        self.assertEquals(sys.getrefcount(kwargs), 2)