Skip to content

Commit

Permalink
Fix flake8 warnings in testKernel.py
Browse files Browse the repository at this point in the history
  • Loading branch information
r-owen committed Mar 23, 2017
1 parent 82a450c commit e0d5188
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/testKernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -707,9 +707,9 @@ def basicTests(self, kernel, nKernelParams, nSpatialParams=0, dimMustMatch=True)

# test a range of numbers of parameters, including both valid and invalid sized tuples.
for nsp in range(nSpatialParams + 2):
spatialParamsForOneKernel = [1.0,]*nsp
spatialParamsForOneKernel = [1.0]*nsp
for nkp in range(nKernelParams + 2):
spatialParams = [spatialParamsForOneKernel,]*nkp
spatialParams = [spatialParamsForOneKernel]*nkp
if ((nkp == nKernelParams) and ((nsp == nSpatialParams) or (nkp == 0))):
kernel.setSpatialParameters(spatialParams)
if nsp == 0:
Expand Down Expand Up @@ -820,6 +820,7 @@ class TestMemory(lsst.utils.tests.MemoryTestCase):
def setup_module(module):
lsst.utils.tests.init()


if __name__ == "__main__":
lsst.utils.tests.init()
unittest.main()

0 comments on commit e0d5188

Please sign in to comment.