From 2981bece55929f4c1c4bc01c8a54d1aaee3b0ab9 Mon Sep 17 00:00:00 2001 From: Demian Brecht Date: Fri, 2 Oct 2015 13:03:43 -0700 Subject: [PATCH] pyflakes fix --- _pytest/python.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_pytest/python.py b/_pytest/python.py index 7833c1cf0..b04297b95 100644 --- a/_pytest/python.py +++ b/_pytest/python.py @@ -1214,7 +1214,7 @@ def raises(expected_exception, *args, **kwargs): assert 1 == 1 # this will execute as expected raise OSError(errno.EEXISTS, 'directory exists') - assert err.errno = errno.EEXISTS # this will now execute + assert err.errno = errno.EEXISTS # this will now execute Or you can specify a callable by passing a to-be-called lambda::