A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-December/040567.html below:

[Python-Dev] possible backward incompatibility in test.regrtest

[Python-Dev] possible backward incompatibility in test.regrtest [Python-Dev] possible backward incompatibility in test.regrtestMichael Chermside mcherm at mcherm.com
Mon Dec 1 15:12:08 EST 2003
> Unless I miss something trivial (I hope so), I'd have to give up
> using the test.regrtest module.  I appreciate any comment.

Maybe the thing to do is to change:
>  if test.startswith('test.'):
>      abstest = test
>  else:
>      # Always import it from the test package
>      abstest = 'test.' + test
>  the_package = __import__(abstest, globals(), locals(), [])

to this:

>  if test.startswith('mytest.'):
>      abstest = test
>  else:
>      # Always import it from the test package
>      abstest = 'mytest.' + test
>  the_package = __import__(abstest, globals(), locals(), [])

in your own copy of regrtest. Converting to unittest would be better,
but this is a fix that would at least prevent immediate breakage.

-- Michael Chermside


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4