diff --git a/satpy/tests/writer_tests/test_cf.py b/satpy/tests/writer_tests/test_cf.py
index <HASH>..<HASH> 100644
--- a/satpy/tests/writer_tests/test_cf.py
+++ b/satpy/tests/writer_tests/test_cf.py
@@ -328,7 +328,6 @@ class TestCFWriter(unittest.TestCase):
             scn.save_datasets(filename=filename,
                               header_attrs=header_attrs,
                               writer='cf')
-            import netCDF4 as nc4
             with xr.open_dataset(filename) as f:
                 self.assertTrue(f.attrs['sensor'] == 'SEVIRI')
                 self.assertTrue('sensor' in f.attrs.keys())
Remove unused import in cf writer tests