Pylint and the Module hashlib has no md5 member Error

How to avoid PyLint's Module 'hashlib' has no 'md5' member error when using hashlib's md5() function in your code, and the consequences of doing so.

I do not use md5 much at all these days, as it is known to be fairly unsafe; having said that, md5 does still have its uses when it comes to comparing file likeness in non-critical applications. It just so happens that PyLint does not seem to like invoking hashlib with specific constructors and will therefore mark down code ratings as a result. See the example below:

>>> HASH = hashlib.md5() >>> HASH.update('Test my hash') >>> HASH.hexdigest() 'f94b71b31c1d09d352db8b59d4f98892'

View comments.

more ...

Adding MySQL Support to the QFTest Jython Client

So, you want to be able to get QFTest to talk to your MySQL database server during test execution; just a small matter of getting the Jython client to play ball - easy when you know how.

This shows how to add MySQL support to the QFTest Jython client. It requires the installation of MySQL Connector/J on to the host system and a small amount of hacking of the QFTest code.

View comments.

more ...