Skip to content

Commit

Permalink
BUG: fixed packaging import
Browse files Browse the repository at this point in the history
The packaging routine requires importing `version` from the packaging module.
  • Loading branch information
aburrell committed Feb 22, 2022
1 parent 098adc3 commit aa062e5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pysatModels/tests/test_utils_extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from io import StringIO
import logging
import numpy as np
import packaging
from packaging import version as pack_version
import pytest

import pysat
Expand Down Expand Up @@ -360,8 +360,8 @@ def test_success_for_some_already_ran_data(self):
return


@pytest.mark.skipif(packaging.version.Version(pysat.__version__)
< packaging.version.Version('3.1.0'),
@pytest.mark.skipif(pack_version.Version(pysat.__version__)
< pack_version.Version('3.1.0'),
reason=''.join(('Requires test model in pysat ',
' v3.1 or later.')))
class TestUtilsAltitudePressure(object):
Expand Down Expand Up @@ -481,8 +481,8 @@ def test_alternate_output_names(self):
return


@pytest.mark.skipif(packaging.version.Version(pysat.__version__)
< packaging.version.Version('3.1.0'),
@pytest.mark.skipif(pack_version.Version(pysat.__version__)
< pack_version.Version('3.1.0'),
reason=''.join(('Requires `max_latitude` test Instrument ',
'support in pysat v3.1 or later.')))
class TestUtilsExtractInstModIrregView(object):
Expand Down

0 comments on commit aa062e5

Please sign in to comment.