Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
src/sage/numerical/backends/generic_backend.pyx: Restore _test_ncols_…
Browse files Browse the repository at this point in the history
…nonnegative, with comment
  • Loading branch information
Matthias Koeppe committed Feb 1, 2021
1 parent c81c8db commit 0592226
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/sage/numerical/backends/generic_backend.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -867,6 +867,14 @@ cdef class GenericBackend:
"""

raise NotImplementedError()

def _test_ncols_nonnegative(self, **options):
# Trac #31103: This method has already been migrated to pytest (generic_backend_test)
# and should be removed as soon as the external sage_numerical_backends packages
# are updated to invoke pytest as part of their testsuite.
tester = self._tester(**options)
p = self
tester.assertGreaterEqual(self.ncols(), 0)

cpdef int nrows(self):
"""
Expand Down

0 comments on commit 0592226

Please sign in to comment.