diff --git a/.travis.yml b/.travis.yml index dba75a4..9c78e80 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,7 +2,7 @@ language: python python: - 2.7 - - pypy + - pypy-5.4.1 env: global: @@ -13,10 +13,11 @@ env: matrix: exclude: - - python: pypy + - python: pypy-5.4.1 env: DATAFS_TEST_ENV=xarray install: + - export BOTO_CONFIG=/dev/null - pip install --upgrade pip - if [[ "$DATAFS_TEST_ENV" == "xarray" ]]; then if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then @@ -75,6 +76,7 @@ services: before_install: - docker pull tray/dynamodb-local - docker run -d -p 8000:8000 tray/dynamodb-local -inMemory -port 8000 + - export BOTO_CONFIG=/dev/null notifications: email: diff --git a/examples/snippets/pythonapi_finding_archives.py b/examples/snippets/pythonapi_finding_archives.py index f0cce82..9c30cec 100644 --- a/examples/snippets/pythonapi_finding_archives.py +++ b/examples/snippets/pythonapi_finding_archives.py @@ -110,11 +110,22 @@ .. code-block:: python - >>> api.listdir('impactlab') - [u'labor', u'climate', u'conflict', u'mortality'] + >>> api.listdir('impactlab') # doctest: +SKIP + ['labor', 'climate', 'conflict', 'mortality'] .. EXAMPLE-BLOCK-3-END +And the actual test: + +.. code-block:: python + + >>> (set(api.listdir('impactlab')) == set([ + ... 'labor', 'climate', 'conflict', 'mortality'])) + ... + True + + + Example 4 --------- diff --git a/tests/cli_snippets/test_cli_finding_archives.py b/tests/cli_snippets/test_cli_finding_archives.py index 3d0c18d..2f1248d 100644 --- a/tests/cli_snippets/test_cli_finding_archives.py +++ b/tests/cli_snippets/test_cli_finding_archives.py @@ -9,11 +9,13 @@ def test_cli_listdir(cli_validator_listdir): Snippet 1 +This test can't currently be tested with clatter, due to unpredictable ordering + .. EXAMPLE-BLOCK-1-START .. code-block:: bash - $ datafs listdir impactlab + $ datafs listdir impactlab # doctest: +SKIP labor climate conflict