WanderInCode / pyodbc

Automatically exported from code.google.com/p/pyodbc
MIT No Attribution
0 stars 0 forks source link

SQL Server test suite runs test_drivers on Linux, which can't succeed #287

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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.

Original issue reported on code.google.com by timothy....@gmail.com on 21 Sep 2012 at 7:42

GoogleCodeExporter commented 8 years ago

Original comment by mkleehammer on 26 Sep 2012 at 8:48