File tree Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change 4242 """
4343 )
4444 exit ()
45- try :
46- onWindows = bool (sys .getwindowsversion ()) # seems to work on all versions of Python
47- except :
48- onWindows = False
4945
5046# create a random name for temporary table names
5147_alphabet = (
8985doSqlServerTest = "--mssql" in sys .argv or doAllTests
9086doMySqlTest = "--mysql" in sys .argv or doAllTests
9187doPostgresTest = "--pg" in sys .argv or doAllTests
92- doTimeTest = ("--time" in sys .argv or doAllTests ) and onWindows
88+ doTimeTest = ("--time" in sys .argv or doAllTests ) and sys . platform == "win32"
9389
9490# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
9591# # start your environment setup here v v v
Original file line number Diff line number Diff line change 2929print (adodbapi .version )
3030print ("Tested with dbapi20 %s" % dbapi20 .__version__ )
3131
32- try :
33- onWindows = bool (sys .getwindowsversion ()) # seems to work on all versions of Python
34- except :
35- onWindows = False
36-
3732node = platform .node ()
3833
3934conn_kws = {}
5651)
5752connStr = "%(provider)s; %(security)s; Initial Catalog=%(name)s;Data Source=%(host)s"
5853
59- if onWindows and node != "z-PC" :
54+ if sys . platform == "win32" and node != "z-PC" :
6055 pass # default should make a local SQL Server connection
6156elif node == "xxx" : # try Postgres database
6257 _computername = "25.223.161.222"
You can’t perform that action at this time.
0 commit comments