summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorgfyoung <gfyoung17@gmail.com>2015-12-20 01:08:29 -0800
committergfyoung <gfyoung17@gmail.com>2015-12-20 01:08:29 -0800
commit0574f62bf58eada5860fe0620151aede85a8dae4 (patch)
tree03c72921d245369a4e4042344fe877fc05e8583b /tools
parent144c34b8ecd051e05a93c6268290eadb1827afb0 (diff)
downloadpython-numpy-0574f62bf58eada5860fe0620151aede85a8dae4.tar.gz
python-numpy-0574f62bf58eada5860fe0620151aede85a8dae4.tar.bz2
python-numpy-0574f62bf58eada5860fe0620151aede85a8dae4.zip
MAINT: Remove commented out code blocks
Diffstat (limited to 'tools')
-rw-r--r--tools/swig/test/testFortran.py10
-rw-r--r--tools/win32build/misc/x86analysis.py9
2 files changed, 0 insertions, 19 deletions
diff --git a/tools/swig/test/testFortran.py b/tools/swig/test/testFortran.py
index c77d728e9..b7783be90 100644
--- a/tools/swig/test/testFortran.py
+++ b/tools/swig/test/testFortran.py
@@ -24,16 +24,6 @@ class FortranTestCase(unittest.TestCase):
self.typeStr = "double"
self.typeCode = "d"
- # This test used to work before the update to avoid deprecated code. Now it
- # doesn't work. As best I can tell, it never should have worked, so I am
- # commenting it out. --WFS
- # def testSecondElementContiguous(self):
- # "Test Fortran matrix initialized from reshaped default array"
- # print(self.typeStr, "... ", end="", file=sys.stderr)
- # second = Fortran.__dict__[self.typeStr + "SecondElement"]
- # matrix = np.arange(9).reshape(3, 3).astype(self.typeCode)
- # self.assertEquals(second(matrix), 3)
-
# Test (type* IN_FARRAY2, int DIM1, int DIM2) typemap
def testSecondElementFortran(self):
"Test Fortran matrix initialized from reshaped NumPy fortranarray"
diff --git a/tools/win32build/misc/x86analysis.py b/tools/win32build/misc/x86analysis.py
index 0b5586406..870e2c980 100644
--- a/tools/win32build/misc/x86analysis.py
+++ b/tools/win32build/misc/x86analysis.py
@@ -132,8 +132,6 @@ def cntset(seq):
return cnt
def main():
- #parser = optparse.OptionParser()
- #parser.add_option("-f", "--filename
args = sys.argv[1:]
filename = args[0]
analyse(filename)
@@ -146,11 +144,6 @@ def analyse(filename):
sse = has_sse(inst)
sse2 = has_sse2(inst)
sse3 = has_sse3(inst)
- #mmx = has_mmx(inst)
- #ppro = has_ppro(inst)
- #print(sse)
- #print(sse2)
- #print(sse3)
print("SSE3 inst %d" % cntset(sse3))
print("SSE2 inst %d" % cntset(sse2))
print("SSE inst %d" % cntset(sse))
@@ -158,5 +151,3 @@ def analyse(filename):
if __name__ == '__main__':
main()
- #filename = "/usr/lib/sse2/libatlas.a"
- ##filename = "/usr/lib/sse2/libcblas.a"