| Issue 287: | SQL Server test suite runs test_drivers on Linux, which can't succeed | |
| 1 person starred this issue and may be notified of changes. | Back to list |
1. On Linux, build pyodbc in local copy of pyodbc source code repository.
2. Run tests:
$ python3.2 tests3/sqlservertests.py DSN=SQLSERVER_2012_EXPRESS_64_BIT
Results are:
======================================================================
ERROR: test_drivers (__main__.SqlServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests3/sqlservertests.py", line 1256, in test_drivers
drivers = pyodbc.drivers()
AttributeError: 'module' object has no attribute 'drivers'
----------------------------------------------------------------------
Ran 190 tests in 27.203s
FAILED (errors=1)
Looking at pyodbcmodule.cpp, it seems that drivers is an attribute that pyodbc only supports on Windows, so I would expect this test not to run on Linux.
I am using pyodbc 3.0.0 on Ubuntu 7.04 with Python 3.2.3.
Sep 26, 2012
Project Member
#1
mkleehammer
Status:
Accepted
|