Skip to content

Commit 35c5090

Browse files
jswhit2jswhit2
authored andcommitted
Revert "fix version comparison checks in tests."
This reverts commit 08cd4c1.
1 parent 31abf60 commit 35c5090

3 files changed

Lines changed: 2 additions & 6 deletions

File tree

‎Changelog‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
=================================
33
* make sure zstd compression filter test always runs unless specifically disabled, fix cli test so it runs on
44
32-bit x86. New wheels for linux that include plugins (they were left out of the 1.7.5 release).
5-
* fix version comparison logic that was broken when using netcdf-c >= 4.10.0 - this was the cause of
6-
issue #1515 (diskless persisted datasets are no longer persisted).
75

86
version 1.7.5 (tag v1.7.5rel)
97
=============================

‎test/test_masked5.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import unittest
22
import os
33
import tempfile
4-
from packaging.version import Version
54

65
import numpy as np
76
from numpy import ma
@@ -56,7 +55,7 @@ def test_scaled(self):
5655
# issue 730
5756
# this part fails with netcdf 4.1.3
5857
# a bug in vlen strings?
59-
if Version(__netcdf4libversion__) >= Version('4.4.0'):
58+
if __netcdf4libversion__ >= '4.4.0':
6059
assert v2[0] == 'first'
6160
assert v2[1] == '<missing>'
6261

‎test/test_vlen.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import unittest
33
import os
44
import tempfile
5-
from packaging.version import Version
65
from netCDF4 import Dataset
76
import numpy as np
87
from numpy.testing import assert_array_equal
@@ -164,7 +163,7 @@ class VlenAppendTestCase(unittest.TestCase):
164163
def setUp(self):
165164

166165
import netCDF4
167-
if Version(netCDF4.__netcdf4libversion__) < Version("4.4.1"):
166+
if netCDF4.__netcdf4libversion__ < "4.4.1":
168167
self.skip = True
169168
try:
170169
self.skipTest("This test requires NetCDF 4.4.1 or later.")

0 commit comments

Comments
 (0)