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 b2ff232 commit 079807a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions testsuite/MDAnalysisTests/coordinates/test_netcdf.py
Original file line number Diff line number Diff line change
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 079807a

Please sign in to comment.