Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
goanpeca authored and kalefranz committed Sep 3, 2018
1 parent 7b020f8 commit 01076b9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 24 deletions.
6 changes: 4 additions & 2 deletions tests/core/data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@
# Copyright (C) 2012 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
"""
Example packages:
Example packages used in this data testing:
- https://github.com/frejanordsiek/hdf5storage/blob/0.1.15/setup.py
- https://github.com/dask/dask/blob/master/setup.py
- https://github.com/rdegges/django-twilio/blob/master/setup.py
- https://github.com/twilio/twilio-python/blob/master/setup.py
- https://github.com/tox-dev/tox/blob/master/setup.py
- https://github.com/cherrypy/cherrypy/blob/master/setup.py
- https://github.com/jaraco/keyring/blob/master/setup.py
- https://github.com/scrapy/scrapy/blob/master/setup.py
"""

import os
Expand Down
22 changes: 2 additions & 20 deletions tests/core/test_python_dist.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

import os
import tempfile
import sys

from conda.common.compat import odict
from conda.core.prefix_data import PrefixData
Expand All @@ -17,21 +16,6 @@
from .data import METADATA_VERSION_PATHS, PATH_TEST_ENV_1, PATH_TEST_ENV_2


"""
581-582,
653,
669,
680,
838,
846,
884-917,
928-977,
986-992,
1058,
1065-1066
"""


# Helpers
# -----------------------------------------------------------------------------
class DummyPythonRecord:
Expand Down Expand Up @@ -440,10 +424,8 @@ def test_metadata_read_metadata():
temp_path, fpaths = _create_test_files((
('', 'PKG-INFO', 'Unknown-Key: unknown\n'),
))
with pytest.warns(pd.MetadataWarning):
output = func(fpaths[0])

expected_output = odict(unknown_key='unknown')
output = func(fpaths[0])
expected_output = odict()
_print_output(output, expected_output)
assert output == expected_output

Expand Down
5 changes: 3 additions & 2 deletions tests/test_resolve.py
Original file line number Diff line number Diff line change
Expand Up @@ -1005,8 +1005,9 @@ def test_no_features():
]


#@pytest.mark.skipif(datetime.now() < datetime(2018, 9, 1), reason="bogus test; talk with @mcg1969")
#def test_multiple_solution():
@pytest.mark.skipif(datetime.now() < datetime(2018, 9, 1), reason="bogus test; talk with @mcg1969")
def test_multiple_solution():
pass
# index2 = index.copy()
# fn = 'pandas-0.11.0-np16py27_1.tar.bz2'
# res1 = set([fn])
Expand Down

0 comments on commit 01076b9

Please sign in to comment.