Skip to content

Commit

Permalink
Fix test_netcdf.py
Browse files Browse the repository at this point in the history
  • Loading branch information
utkbansal committed Jun 21, 2017
1 parent 84aba6a commit bb7f638
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions testsuite/MDAnalysisTests/coordinates/test_netcdf.py
Expand Up @@ -158,6 +158,9 @@ def test_dt(self):


class _NCDFWriterTest(TestCase):

__test__ = False

@dec.skipif(module_not_found("netCDF4"), "Test skipped because netCDF is not available.")
def setUp(self):
self.universe = mda.Universe(self.topology, self.filename)
Expand Down Expand Up @@ -313,10 +316,10 @@ def test_write_AtomGroup(self):
err_msg="unitcells are not identical")

class TestNCDFWriter(_NCDFWriterTest, RefVGV):
pass
__test__ = True

class TestNCDFWriterTZ2(_NCDFWriterTest, RefTZ2):
pass
__test__ = True

class TestNCDFWriterVelsForces(TestCase):
"""Test writing NCDF trajectories with a mixture of options"""
Expand Down

0 comments on commit bb7f638

Please sign in to comment.