diff options
Diffstat (limited to 'tests/gis_tests/geos_tests/test_io.py')
-rw-r--r-- | tests/gis_tests/geos_tests/test_io.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/gis_tests/geos_tests/test_io.py b/tests/gis_tests/geos_tests/test_io.py index b9d24cc63e..cab4b0ed5b 100644 --- a/tests/gis_tests/geos_tests/test_io.py +++ b/tests/gis_tests/geos_tests/test_io.py @@ -56,15 +56,17 @@ class GEOSIOTest(SimpleTestCase): # Creating a WKBReader instance wkb_r = WKBReader() - hex = b"000000000140140000000000004037000000000000" - wkb = memoryview(binascii.a2b_hex(hex)) - ref = GEOSGeometry(hex) + hex_bin = b"000000000140140000000000004037000000000000" + hex_str = "000000000140140000000000004037000000000000" + wkb = memoryview(binascii.a2b_hex(hex_bin)) + ref = GEOSGeometry(hex_bin) # read() should return a GEOSGeometry on either a hex string or # a WKB buffer. g1 = wkb_r.read(wkb) - g2 = wkb_r.read(hex) - for geom in (g1, g2): + g2 = wkb_r.read(hex_bin) + g3 = wkb_r.read(hex_str) + for geom in (g1, g2, g3): self.assertEqual(ref, geom) bad_input = (1, 5.23, None, False) |