Skip to content

Commit

Permalink
Fix test failures on Python 2 and suppress test failures when PEP 420…
Browse files Browse the repository at this point in the history
… is not available. Ref #805.
  • Loading branch information
jaraco committed Nov 13, 2016
1 parent 13838fb commit 5d78aeb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion setuptools/tests/test_namespaces.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
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
Expand Down Expand Up @@ -46,6 +48,8 @@ def make_site_dir(target):
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
Expand Down

0 comments on commit 5d78aeb

Please sign in to comment.