Re: Can someone here shed some light on this ctypes/sqlite3 failure?

Gerhard Häring <[email protected]>
Newsgroups gmane.comp.python.db.pysqlite.user
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[email protected] wrote:
> A number of us are having trouble with sqlite3 in Python in the presence of
> ctypes on Macs.  The information as I know it is here:
> 
>     https://sourceforge.net/support/tracker.php?aid=1581906
> 
> Can anyone on this list shed some light on the problem?  Thomas Heller
> (ctypes author) has so far been unable to reproduce it in his environment,
> though several others of us with similar Mac OSX environments have.
> 
> Any help appreciated...

I don't have a Mac, but after reading the messages, please try this:

In the file pysqlite2/test/dbapi.py (or equivalent in Python core version),
remove the ThreadSuite tests, quickly by removing thread_suite from

    return unittest.TestSuite((module_suite, connection_suite,
cursor_suite, thread_suite, constructor_suite, ext_suite, closed_suite))

or the hack I always do, make the "Check" an "XCheck" in

    thread_suite = unittest.makeSuite(ThreadTests, "Check")

and run the tests again.

- -- Gerhard
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGhi2DdIO4ozGCH14RAruIAJ4x6zPpnc8oJIYZ2c5mzUoAo7YGlQCfSLgy
rcgNtlATxl8p8CnYDyCClAg=
=gA8t
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.