~jtaylor/ubuntu/raring/python-numpy/1.7.1-merge

« back to all changes in this revision

Viewing changes to numpy/matrixlib/tests/test_regression.py

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2012-10-22 15:26:41 UTC
  • mfrom: (7.1.12 experimental)
  • Revision ID: package-import@ubuntu.com-20121022152641-j87bd9p003ii5qum
Tags: 1:1.7.0~b2-1ubuntu1
* Merge with Debian; remaining changes:
  - debian/patches/20_disable-plot-extension.patch
     Disable plot_directive extension, and catch ImportErrors when
     matplotlib cannot be imported, which allows us to remove
     python-matplotlib from dependencies.  This is required because
     python-numpy is in main, while python-matplotlib is in universe.
  - Build using dh_python2
    add bin/f2py* to .install files

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
    def test_matrix_properties(self,level=rlevel):
13
13
        """Ticket #125"""
14
14
        a = np.matrix([1.0],dtype=float)
15
 
        assert(type(a.real) is np.matrix)
16
 
        assert(type(a.imag) is np.matrix)
 
15
        assert_(type(a.real) is np.matrix)
 
16
        assert_(type(a.imag) is np.matrix)
17
17
        c,d = np.matrix([0.0]).nonzero()
18
 
        assert(type(c) is np.matrix)
19
 
        assert(type(d) is np.matrix)
 
18
        assert_(type(c) is np.matrix)
 
19
        assert_(type(d) is np.matrix)
20
20
 
21
21
    def test_matrix_multiply_by_1d_vector(self, level=rlevel) :
22
22
        """Ticket #473"""