Skip to content

Commit c2074ca

Browse files
committed
update
1 parent eb4fcf0 commit c2074ca

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎test/test_ncrc.py‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import unittest
22
import netCDF4
3+
from netCDF4 import __has_nc_rc_set__
34

45
class NCRCTestCase(unittest.TestCase):
56
def setUp(self):
@@ -9,9 +10,10 @@ def tearDown(self):
910
pass
1011

1112
def runTest(self):
12-
"""testing access of data over http using opendap"""
13-
netCDF4.rc_set('foo','bar')
14-
assert netCDF4.rc_get('foo') == 'bar'
13+
"""test rc_get, rc_set functions"""
14+
if __has_nc_rc_set__:
15+
netCDF4.rc_set('foo','bar')
16+
assert netCDF4.rc_get('foo') == 'bar'
1517

1618
if __name__ == '__main__':
1719
unittest.main()

0 commit comments

Comments
 (0)