[pypy-svn] rev 2073 - pypy/trunk/src/pypy/translator/test
hpk at codespeak.net
hpk at codespeak.net
Sat Oct 25 23:32:43 CEST 2003
Author: hpk
Date: Sat Oct 25 23:32:43 2003
New Revision: 2073
Removed:
pypy/trunk/src/pypy/translator/test/test_flowmodel.py
Log:
removed another obsolete test
Deleted: /pypy/trunk/src/pypy/translator/test/test_flowmodel.py
==============================================================================
--- /pypy/trunk/src/pypy/translator/test/test_flowmodel.py Sat Oct 25 23:32:43 2003
+++ (empty file)
@@ -1,60 +0,0 @@
-
-import autopath
-from pypy.tool import test
-from pypy.objspace.flow.model import *
-
-class DISABLED_TestFlowModel: #(test.IntTestCase):
- def test_flatten(self):
- result = Variable("result")
- endbranch = EndBranch(result)
- block = BasicBlock([result], [result],
- [],
- endbranch)
- fun = FunctionGraph(block, "f")
-
- nodelist = fun.flatten()
- self.assert_(endbranch in nodelist)
- self.assert_(block in nodelist)
- self.assert_(result not in nodelist)
-
- def test_backedge_simple(self):
- result = Variable("result")
- endbranch = EndBranch(result)
- block = BasicBlock([result], [result],
- [],
- endbranch)
- fun = FunctionGraph(block, "f")
- em = fun.mkentrymap()
- self.assertEquals(em[endbranch], [block])
-
- def test_flatten_more(self):
- result = Variable("result")
- endbranch = EndBranch(result)
- block2 = BasicBlock([result], [result], [], endbranch)
- branch = Branch([result], block2)
- block = BasicBlock([result], [result], [], branch)
- fun = FunctionGraph(block, "f")
-
- nodelist = fun.flatten()
- self.assert_(endbranch in nodelist)
- self.assert_(block in nodelist)
- self.assert_(block2 in nodelist)
- self.assert_(branch in nodelist)
- self.assert_(result not in nodelist)
-
- def test_backedge_conditional(self):
- result = Variable("result")
- endbranch = EndBranch(result)
- block3 = BasicBlock([result], [result], [], endbranch)
- block2 = BasicBlock([result], [result], [], endbranch)
- condbranch = ConditionalBranch([result], block2, block3)
- block = BasicBlock([result], [result], [], condbranch)
- fun = FunctionGraph(block, "f")
-
- em = fun.mkentrymap()
- self.assert_(block2 in em[endbranch])
- self.assert_(block3 in em[endbranch])
- self.assertEquals(em[condbranch], [block])
-
-if __name__ == '__main__':
- test.main()
More information about the Pypy-commit
mailing list