_____________________________ Test.test_bdist_egg ______________________________
self = <setuptools.tests.test_bdist_egg.Test object at 0x7fe3b84166a0>
setup_context = local('/tmp/pytest-of-travis/pytest-0/test_bdist_egg0')
user_override = None
def test_bdist_egg(self, setup_context, user_override):
dist = Distribution(dict(
script_name='setup.py',
script_args=['bdist_egg'],
name='foo',
py_modules=['hi']
))
os.makedirs(os.path.join('build', 'src'))
with contexts.quiet():
dist.parse_command_line()
> dist.run_commands()
/home/travis/build/pypa/setuptools/setuptools/tests/test_bdist_egg.py:40:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/opt/python/3.7-dev/lib/python3.7/distutils/dist.py:955: in run_commands
self.run_command(cmd)
/opt/python/3.7-dev/lib/python3.7/distutils/dist.py:974: in run_command
cmd_obj.run()
/home/travis/build/pypa/setuptools/setuptools/command/bdist_egg.py:152: in run
self.run_command("egg_info")
/opt/python/3.7-dev/lib/python3.7/distutils/cmd.py:313: in run_command
self.distribution.run_command(command)
/opt/python/3.7-dev/lib/python3.7/distutils/dist.py:974: in run_command
cmd_obj.run()
/home/travis/build/pypa/setuptools/setuptools/command/egg_info.py:272: in run
writer(self, ep.name, os.path.join(self.egg_info, ep.name))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cmd = <setuptools.command.egg_info.egg_info object at 0x7fe3b82f0a90>
basename = 'entry_points.txt', filename = 'foo.egg-info/entry_points.txt'
def write_entries(cmd, basename, filename):
> ep = cmd.distribution.entry_points
E AttributeError: 'Distribution' object has no attribute 'entry_points'
/home/travis/build/pypa/setuptools/setuptools/command/egg_info.py:669: AttributeError
=== 1 failed, 181 passed, 11 skipped, 2 xfailed, 2 xpassed in 46.12 seconds ====
ERROR: InvocationError: '/home/travis/build/pypa/setuptools/.tox/python/bin/python -m pytest -rsx'
In the last two days, the test_bdist_egg test has started failing on Python 3.6 dev and Python nightly (3.7):