[python-hdf5storage] 59/84: Fixed issue where a local variable having the same name as a global was confusting.

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Feb 29 08:25:04 UTC 2016


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to annotated tag 0.1.10
in repository python-hdf5storage.

commit c19a43017bd2f0b57453973aed5d0572e895c7f1
Author: Freja Nordsiek <fnordsie at gmail.com>
Date:   Mon Aug 17 22:29:17 2015 -0400

    Fixed issue where a local variable having the same name as a global was confusting.
---
 tests/test_write_readback.py | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/tests/test_write_readback.py b/tests/test_write_readback.py
index fcacf18..148a23d 100644
--- a/tests/test_write_readback.py
+++ b/tests/test_write_readback.py
@@ -287,21 +287,21 @@ class TestPythonMatlabFormat(object):
             yield self.check_numpy_scalar, dt
 
     def test_numpy_array_1d(self):
-        dtypes = copy.deepcopy(self.dtypes)
-        dtypes.append('object')
-        for dt in dtypes:
+        dts = copy.deepcopy(self.dtypes)
+        dts.append('object')
+        for dt in dts:
             yield self.check_numpy_array, dt, 1
 
     def test_numpy_array_2d(self):
-        dtypes = copy.deepcopy(self.dtypes)
-        dtypes.append('object')
-        for dt in dtypes:
+        dts = copy.deepcopy(self.dtypes)
+        dts.append('object')
+        for dt in dts:
             yield self.check_numpy_array, dt, 2
 
     def test_numpy_array_3d(self):
-        dtypes = copy.deepcopy(self.dtypes)
-        dtypes.append('object')
-        for dt in dtypes:
+        dts = copy.deepcopy(self.dtypes)
+        dts.append('object')
+        for dt in dts:
             yield self.check_numpy_array, dt, 3
 
     def test_numpy_empty(self):

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-hdf5storage.git



More information about the debian-science-commits mailing list