Update of /cvsroot/monetdb/sql/src/test/Users/Tests
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv30868/src/test/Users/Tests

Modified Files:
        unknown_user.SQL.py 
Log Message:
propagated changes of Thursday Nov 12 2009
from the Nov2009 branch to the development trunk

  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2009/11/12 - sjoerd: src/test/Users/Tests/unknown_user.SQL.py,1.1.20.1
  Use new way of starting clients from Python.
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Index: unknown_user.SQL.py
===================================================================
RCS file: /cvsroot/monetdb/sql/src/test/Users/Tests/unknown_user.SQL.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- unknown_user.SQL.py 7 Oct 2009 12:20:22 -0000       1.3
+++ unknown_user.SQL.py 12 Nov 2009 15:27:25 -0000      1.4
@@ -1,8 +1,4 @@
-import os, sys
+from MonetDBtesting import process
 
-os.environ['DOTMONETDBFILE'] = '.nouser'
-f = open(os.environ['DOTMONETDBFILE'], 'w')
-f.write('user=this_user_does_not_exist\npassword=this_password_does_not_exist\n')
-f.close()
-os.system(os.getenv('SQL_CLIENT'))
-os.unlink(os.environ['DOTMONETDBFILE'])
+clt = process.client('sql', user = 'this_user_does_not_exist', passwd = 
'this_password_does_not_exist')
+clt.wait()


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to