Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed #25663 -- Added checking of the number of points for LinearRing and LineString. #5550

Closed
wants to merge 1 commit into from

Conversation

sir-sigurd
Copy link
Member

@@ -28,7 +27,7 @@


@skipUnless(HAS_GEOS, "Geos is required.")
class GEOSTest(unittest.TestCase, TestDataMixin):
class GEOSTest(TestCase, TestDataMixin):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use a SimpleTestCase instead as it provides assertRaisesMessage and avoids wrapping each test case in a transaction which is not required here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed, thanks for the note.

self._checkdim(ndim)
if ncoords < self._minlength:
raise TypeError(
'`%s` requires at least %d point, got %s.' % (self.__class__.__name__, self._minlength, ncoords)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

point -> points

@timgraham
Copy link
Member

merged in 1e35dd1, thanks!

For future reference, in Django I haven't seen your convention of including backticks around class names in commit messages, exception messages, etc, so I suggest to be consistent with that.

@timgraham timgraham closed this Nov 18, 2015
@sir-sigurd sir-sigurd deleted the check-linear-init-args branch November 19, 2015 03:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants