mirror of
https://github.com/django/django.git
synced 2025-10-27 15:46:10 +00:00
Fixed #28996 -- Simplified some boolean constructs and removed trivial continue statements.
This commit is contained in:
committed by
Tim Graham
parent
4bcec02368
commit
a38ae914d8
@@ -81,11 +81,7 @@ class DistanceTest(TestCase):
|
||||
# Now performing the `dwithin` queries on a geodetic coordinate system.
|
||||
for dist in au_dists:
|
||||
with self.subTest(dist=dist):
|
||||
if isinstance(dist, D) and not oracle:
|
||||
type_error = True
|
||||
else:
|
||||
type_error = False
|
||||
|
||||
type_error = isinstance(dist, D) and not oracle
|
||||
if isinstance(dist, tuple):
|
||||
if oracle or spatialite:
|
||||
# Result in meters
|
||||
|
||||
Reference in New Issue
Block a user