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 AUTHORS.rst
include CONTRIBUTING.md include CONTRIBUTING.rst
include HISTORY.md include HISTORY.rst
include LICENSE include LICENSE
include README.md include README.rst
recursive-include tests * recursive-include tests *
recursive-exclude * __pycache__ recursive-exclude * __pycache__

View File

@ -1,13 +1,11 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
try: try:
from setuptools import setup from setuptools import setup
except ImportError: except ImportError:
from distutils.core import setup from distutils.core import setup
with open('README.rst') as readme_file: with open('README.rst') as readme_file:
readme = readme_file.read() readme = readme_file.read()
@ -25,7 +23,7 @@ test_requirements = [
setup( setup(
name='polyloader', name='polyloader',
version='0.1.0', 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, long_description=readme + '\n\n' + history,
author='Kenneth M. "Elf" Sternberg', author='Kenneth M. "Elf" Sternberg',
author_email='elf.sternberg@gmail.com', author_email='elf.sternberg@gmail.com',

View File

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