[pypy-commit] pypy cleanup-tests: trash this file
bdkearns
noreply at buildbot.pypy.org
Sun Feb 10 05:01:36 CET 2013
Author: Brian Kearns <bdkearns at gmail.com>
Branch: cleanup-tests
Changeset: r61021:70eaa166d819
Date: 2013-02-09 23:00 -0500
http://bitbucket.org/pypy/pypy/changeset/70eaa166d819/
Log: trash this file
diff --git a/pypy/module/test_lib_pypy/sample_aop_code.py b/pypy/module/test_lib_pypy/sample_aop_code.py
deleted file mode 100644
--- a/pypy/module/test_lib_pypy/sample_aop_code.py
+++ /dev/null
@@ -1,50 +0,0 @@
-code = """
-def foo(b, c):
- '''
- pre:
- b < c
- '''
- print 'foo'
- a = 2
- d = bar(a)
- print d
- return b+a+c+d
-
-
-def bar(val):
- print 'bar', val
- return 42
-
-def baz(b,c):
- try:
- return foo(b,c)
- finally:
- bar(3)
-
-class Mumble:
- def __init__(self, param):
- self.p = param
- def frobble(self, b):
- return 3 * self.p + b
- def __del__(self):
- print 'Mumble goes poof'
-
-def truc():
- m = Mumble(2)
- r = m.frobble(1)
- print 'truc', r, 'expected 7'
- return r
-"""
-import os, sys
-import os.path as osp
-
-def _make_filename(name):
- dir = sys.path[0] # see setup_class()
- if not name.endswith('.py'):
- name += ".py"
- return osp.join(dir, name)
-
-def write_module(name):
- f = open(_make_filename(name), 'w')
- f.write(code)
- f.close()
More information about the pypy-commit
mailing list