Skip to main content

No project description provided

Project description

PyPI version Downloads Downloads


Delayed aka. Soft asserts for python - No Dependenices on any other framework. - Should work with any testing framework.

Install via pip:

pip install delayed-assert 

Install from master:

pip install git+

Import as:

from delayed_assert import delayed_assert

Uses with assert library:

Pass the asserting statement as

lambda: self.assertListEqual([4,5,6,2,5],[7,8])

While I've tested only with unittest asserttion,It should be able to use any assertion library.

Keep in mind that, Python lambda does not support statement inside lambda, so lambda: assert 1 == 1 won't work as it's not valid lambda expression

See for usage.


Credit :

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

delayed_assert-0.3.0.tar.gz (2.5 kB view hashes)

Uploaded source

Built Distribution

delayed_assert-0.3.0-py3-none-any.whl (3.9 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page