Commit 17cd5ceb authored by Reinout van Rees's avatar Reinout van Rees

Adjusted test for missing bin dir

parent f31130ae
...@@ -1007,7 +1007,9 @@ scripts in the metadata. We try to detect such scripts anyhow: ...@@ -1007,7 +1007,9 @@ scripts in the metadata. We try to detect such scripts anyhow:
>>> dev_distutils_dir = tmpdir('dev_distutils_dir') >>> dev_distutils_dir = tmpdir('dev_distutils_dir')
>>> dev_distutils_dest = tmpdir('dev_distutils_dest') >>> dev_distutils_dest = tmpdir('dev_distutils_dest')
>>> dev_eggs_dir = os.path.join(dev_distutils_dest, 'develop-eggs') >>> dev_eggs_dir = os.path.join(dev_distutils_dest, 'develop-eggs')
>>> bin_dir = os.path.join(dev_distutils_dest, 'bin')
>>> os.mkdir(dev_eggs_dir) >>> os.mkdir(dev_eggs_dir)
>>> os.mkdir(bin_dir)
>>> write(dev_distutils_dir, 'distutilsscript2', >>> write(dev_distutils_dir, 'distutilsscript2',
... '#!/usr/bin/python\n' ... '#!/usr/bin/python\n'
... '# -*- coding: utf-8 -*-\n' ... '# -*- coding: utf-8 -*-\n'
...@@ -1028,7 +1030,7 @@ scripts in the metadata. We try to detect such scripts anyhow: ...@@ -1028,7 +1030,7 @@ scripts in the metadata. We try to detect such scripts anyhow:
>>> ws = zc.buildout.easy_install.working_set( >>> ws = zc.buildout.easy_install.working_set(
... ['foo2'], sys.executable, [dev_eggs_dir]) ... ['foo2'], sys.executable, [dev_eggs_dir])
>>> scripts = zc.buildout.easy_install.scripts( >>> scripts = zc.buildout.easy_install.scripts(
... ['foo2'], ws, sys.executable, dev_distutils_dest) ... ['foo2'], ws, sys.executable, dest=bin_dir)
>>> scripts >>> scripts
['/dev_distutils_dest/bin/distutilsscript2'] ['/dev_distutils_dest/bin/distutilsscript2']
......
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