Commit 5d78aeb9 authored by Jason R. Coombs's avatar Jason R. Coombs

Fix test failures on Python 2 and suppress test failures when PEP 420 is not available. Ref #805.

parent 13838fb8
from __future__ import absolute_import
from __future__ import absolute_import, unicode_literals
import os
import textwrap
import sys
import subprocess
import pytest
class TestNamespaces:
@staticmethod
......@@ -46,6 +48,8 @@ class TestNamespaces:
tmpl = '__import__("site").addsitedir({target_str!r})'
sc.write_text(tmpl.format(**locals()), encoding='utf-8')
@pytest.mark.xfail(sys.version_info < (3, 3),
reason="Requires PEP 420")
def test_mixed_site_and_non_site(self, tmpdir):
"""
Installing two packages sharing the same namespace, one installed
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment