[pypy-svn] r60031 - pypy/trunk/lib-python/modified-2.5.2/test
fijal at codespeak.net
fijal at codespeak.net
Thu Nov 20 17:25:28 CET 2008
Author: fijal
Date: Thu Nov 20 17:25:28 2008
New Revision: 60031
Added:
pypy/trunk/lib-python/modified-2.5.2/test/infinite_reload.py
- copied, changed from r59912, pypy/trunk/lib-python/2.5.2/test/infinite_reload.py
pypy/trunk/lib-python/modified-2.5.2/test/test_import.py
- copied, changed from r59912, pypy/trunk/lib-python/2.5.2/test/test_import.py
Log:
Fix test_import.
* We don't import lonely pyc files
* Last test is at least stupid, I think we win there
* Add prints to infinite_reload. Run it on top of CPython and ponder
about results
Copied: pypy/trunk/lib-python/modified-2.5.2/test/infinite_reload.py (from r59912, pypy/trunk/lib-python/2.5.2/test/infinite_reload.py)
==============================================================================
--- pypy/trunk/lib-python/2.5.2/test/infinite_reload.py (original)
+++ pypy/trunk/lib-python/modified-2.5.2/test/infinite_reload.py Thu Nov 20 17:25:28 2008
@@ -3,5 +3,8 @@
# reload()ing. This module is imported by test_import.py:test_infinite_reload
# to make sure this doesn't happen any more.
+print 1
import infinite_reload
+print 2
reload(infinite_reload)
+print 3
Copied: pypy/trunk/lib-python/modified-2.5.2/test/test_import.py (from r59912, pypy/trunk/lib-python/2.5.2/test/test_import.py)
==============================================================================
--- pypy/trunk/lib-python/2.5.2/test/test_import.py (original)
+++ pypy/trunk/lib-python/modified-2.5.2/test/test_import.py Thu Nov 20 17:25:28 2008
@@ -1,4 +1,4 @@
-from test.test_support import TESTFN, TestFailed
+from test.test_support import TESTFN, TestFailed, check_impl_detail
import os
import random
@@ -101,7 +101,7 @@
f = open(filename, 'r')
py_compile.compile(filename)
f.close()
- os.unlink(filename)
+ #os.unlink(filename)
# need to be able to load from current dir
sys.path.append('')
@@ -233,4 +233,5 @@
finally:
sys.path.pop(0)
-test_infinite_reload()
+if check_impl_detail:
+ test_infinite_reload()
More information about the Pypy-commit
mailing list