[Scons-dev] Unit testing with mock?

Alexandre Feblot alexandre.feblot at gmail.com
Fri Oct 23 03:21:58 EDT 2015


Hi,
Please, please, please, 
Don't!
Don't force people to install additional modules. 
One of Python benefits is how rich its standard distribution is, compared to perl for example, allowing to distribute code that you know will work everywhere without additional requirement. 
Please don't break that. 

Alexandre

> Le 22 oct. 2015 à 23:58, Pawel Tomulik <ptomulik at meil.pw.edu.pl> a écrit :
> 
> Hi,
> 
> If I would like to contribute a module to scons, would it be acceptable
> to use mocks (https://pypi.python.org/pypi/mock) in unit tests? From
> what I see, none of the existsing unit tests in SCons use mocks, perhaps
> for a reason? Is it forbidden? Is there an alternative without using the
> module?
> 
> The mock module is not included in the basic python distribution, it has
> to be installed, for example with pip (it's a backport of unittest.mock
> available in python >=3.3).
> 
> 
> Best regards!
> 
> -- 
> Paweł Tomulik
> 
> _______________________________________________
> Scons-dev mailing list
> Scons-dev at scons.org
> https://pairlist2.pair.net/mailman/listinfo/scons-dev


More information about the Scons-dev mailing list