Browse Source

fix pylint similarity warning

Fabian Peter Hammerle 5 years ago
parent
commit
5eb2727163
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/ashs_test.py

+ 1 - 1
tests/ashs_test.py

@@ -29,7 +29,7 @@ from freesurfer_volume_reader.ashs import HippocampalSubfieldsVolumeFile
 ])
 def test_hippocampal_subfields_volume_file_init(volume_file_path, expected_attrs):
     volume_file = HippocampalSubfieldsVolumeFile(path=volume_file_path)
-    assert os.path.basename(volume_file_path) == os.path.basename(volume_file.absolute_path)
+    assert os.path.abspath(volume_file_path) == volume_file.absolute_path
     for attr, value in expected_attrs.items():
         assert value == getattr(volume_file, attr)