[Python-Dev] [Python-checkins] cpython (3.2): Issue #11919: try to fix test_imp failure on some buildbots.

Jim Jewett jimjjewett at gmail.com
Tue Apr 26 16:03:47 CEST 2011


This seems to be changing what is tested -- are you saying that
filenames with an included directory name are not intended to be
supported?

On 4/25/11, antoine.pitrou <python-checkins at python.org> wrote:
> http://hg.python.org/cpython/rev/2f2c7eb27437
> changeset:   69556:2f2c7eb27437
> branch:      3.2
> parent:      69554:77cf9e4b144b
> user:        Antoine Pitrou <solipsis at pitrou.net>
> date:        Mon Apr 25 21:39:49 2011 +0200
> summary:
>   Issue #11919: try to fix test_imp failure on some buildbots.
>
> files:
>   Lib/test/test_imp.py |  3 ++-
>   1 files changed, 2 insertions(+), 1 deletions(-)
>
>
> diff --git a/Lib/test/test_imp.py b/Lib/test/test_imp.py
> --- a/Lib/test/test_imp.py
> +++ b/Lib/test/test_imp.py
> @@ -171,8 +171,9 @@
>              support.rmtree(test_package_name)
>
>      def test_issue9319(self):
> +        path = os.path.dirname(__file__)
>          self.assertRaises(SyntaxError,
> -                          imp.find_module, "test/badsyntax_pep3120")
> +                          imp.find_module, "badsyntax_pep3120", [path])
>
>
>  class ReloadTests(unittest.TestCase):
>
> --
> Repository URL: http://hg.python.org/cpython
>


More information about the Python-Dev mailing list