[Erp5-report] r34197 luke - /erp5/trunk/buildout/tests/assertSoftware.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Mar 29 19:37:37 CEST 2010


Author: luke
Date: Mon Mar 29 19:37:37 2010
New Revision: 34197

URL: http://svn.erp5.org?rev=34197&view=rev
Log:
 - check that generated python act as real 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=34197&r1=34196&r2=34197&view=diff
==============================================================================
--- erp5/trunk/buildout/tests/assertSoftware.py [utf8] (original)
+++ erp5/trunk/buildout/tests/assertSoftware.py [utf8] Mon Mar 29 19:37:37 2010
@@ -43,6 +43,14 @@
       self.assertEqual('(2, 4)', result)
     finally:
       os.unlink(name)
+
+  def test_use_generated_python_as_normal_interpreter(self):
+    """
+      TODO: Add doc string.
+    """
+    stdout, stderr = subprocess.Popen([sys.executable, '-V'],
+        stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()
+    self.assertTrue('2.4' in stderr)
 
   def test_required_libraries(self):
     """




More information about the Erp5-report mailing list