[Erp5-report] r40110 luke - /erp5/trunk/buildout/tests/assertSoftware.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Nov 9 14:39:46 CET 2010
Author: luke
Date: Tue Nov 9 14:39:45 2010
New Revision: 40110
URL: http://svn.erp5.org?rev=40110&view=rev
Log:
- remove tests for wrong way of using interpreter
Modified:
erp5/trunk/buildout/tests/assertSoftware.py
Modified: erp5/trunk/buildout/tests/assertSoftware.py
URL: http://svn.erp5.org/erp5/trunk/buildout/tests/assertSoftware.py?rev=40110&r1=40109&r2=40110&view=diff
==============================================================================
--- erp5/trunk/buildout/tests/assertSoftware.py [utf8] (original)
+++ erp5/trunk/buildout/tests/assertSoftware.py [utf8] Tue Nov 9 14:39:45 2010
@@ -54,80 +54,6 @@ def readElfAsDict(f):
runpath_list=sorted(runpath_list)
)
-class AssertPythonSoftware(unittest.TestCase):
- """Asserts that python related software is in good shape."""
-
- def test_python_version(self):
- """Check built python version"""
- self.assertEqual((2,4), sys.version_info[:2])
-
- def test_use_generated_python(self):
- """Checks generated python as python"""
- fd, name = tempfile.mkstemp()
- try:
- f = os.fdopen(fd, 'w')
- f.write("""\
-#!%s
-import sys
-print sys.version_info[:2]
- """ % sys.executable)
- f.close()
- f_stat = os.stat(name)
- os.chmod(name, f_stat.st_mode | stat.S_IXUSR)
- result = subprocess.Popen([name], stdout=subprocess.PIPE)\
- .communicate()[0].strip()
- self.assertEqual('(2, 4)', result)
- finally:
- os.unlink(name)
-
- def test_use_generated_python_as_normal_interpreter(self):
- """Checks behaviour of generated python as interpreter"""
- stdout, stderr = subprocess.Popen(["bin/python2.4", "-V"],
- stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()
- self.assertTrue('Python 2.4' in stderr)
-
- def test_required_libraries(self):
- """Checks possibility of importing libraries"""
- ignored_library_list = getCleanList("""
- socks
- """)
- required_library_list = getCleanList("""
- ERP5Diff
- MySQLdb
- SOAPpy
- _ssl
- _xmlplus
- bz2
- cElementTree
- elementtree
- fpconst
- gdbm
- itools
- ldap
- lxml
- mechanize
- memcache
- numpy
- paramiko
- ply
- pytz
- readline
- simplejson
- threadframe
- uuid
- xml
- xml.parsers.expat
- zlib
- """)
- failed_library_list = []
- for lib in required_library_list:
- try:
- __import__(lib)
- except ImportError:
- failed_library_list.append(lib)
- self.assertEqual([], failed_library_list,
- 'Python libraries not found:\n'+'\n'.join(failed_library_list))
-
class AssertLddLibs(unittest.TestCase):
"""Checks for dynamic libraries"""
More information about the Erp5-report
mailing list