Fixed build issue. Skipped pypy bytecode-without-source tests.

This commit is contained in:
Elf M. Sternberg 2016-07-03 16:43:09 -07:00
parent 3d02248afe
commit be7c4e4d21
3 changed files with 9 additions and 7 deletions

View File

@ -1,8 +1,8 @@
include AUTHORS.md
include CONTRIBUTING.md
include HISTORY.md
include AUTHORS.rst
include CONTRIBUTING.rst
include HISTORY.rst
include LICENSE
include README.md
include README.rst
recursive-include tests *
recursive-exclude * __pycache__

View File

@ -1,13 +1,11 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
@ -25,7 +23,7 @@ test_requirements = [
setup(
name='polyloader',
version='0.1.0',
description="Importlib shim that enables mixed syntax in Python packages and executables.",
description="Importlib shim that enables heterogeneous syntax in Python packages.",
long_description=readme + '\n\n' + history,
author='Kenneth M. "Elf" Sternberg',
author_email='elf.sternberg@gmail.com',

View File

@ -55,6 +55,8 @@ class Test_Imports(object):
else:
assert(False)
@pytest.mark.skipif(hasattr(sys, 'pypy_version_info'),
reason="PyPy won't load bytecode if source not present.")
def test_import(self):
sys.path.insert(0, os.curdir)
ext = 'py'
@ -139,6 +141,8 @@ class Test_Imports(object):
assert(orig_path == new_os.path)
assert(orig_getenv != new_os.getenv)
@pytest.mark.skipif(hasattr(sys, 'pypy_version_info'),
reason="PyPy won't load bytecode if source not present.")
def test_module_with_large_stack(self, module='longlist'):
# Regression test for http://bugs.python.org/issue561858.
filename = module + os.extsep + 'py'