mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Used "is" for comparisons with None.
This commit is contained in:
@@ -1345,7 +1345,7 @@ class DocTestRunner:
|
||||
# exception message will be in group(2)
|
||||
m = re.match(r'(.*)\.(\w+:.+\s)', exc_msg)
|
||||
# make sure there's a match
|
||||
if m != None:
|
||||
if m is not None:
|
||||
f_name = m.group(1)
|
||||
# check to see if m.group(1) contains the module name
|
||||
if f_name == exception[0].__module__:
|
||||
|
||||
Reference in New Issue
Block a user