[pyrepl-checkins] pyrepl/pyrepl/tests __init__.py,1.1,1.2 basic.py,1.1,1.2 bugs.py,1.1,1.2 infrastructure.py,1.1,1.2 wishes.py,1.1,1.2

mwh@codespeak.net mwh@codespeak.net
Tue, 11 May 2004 19:20:38 +0200 (MEST)


Update of /cvs/pyrepl/pyrepl/pyrepl/tests
In directory thoth.codespeak.net:/tmp/cvs-serv13715/tests

Modified Files:
	__init__.py basic.py bugs.py infrastructure.py wishes.py 
Log Message:
Various changes:

 * it's 2004 now!
 * make Reader and subclasses new-style classes
   - make the inheritance hierachy look like this
                     Reader
                    /      \
      HistoricalReader   CompletingReader
                    \      /
                PythonicReader
    - needed to slightly change the way keymaps are built
 * assorted fixes to handle unbound keys and unspecified commands better
 * using codecs.getreader() in unix_console turned out to hurt
 * unshag UnixConsole.getpending()



Index: __init__.py
===================================================================
RCS file: /cvs/pyrepl/pyrepl/pyrepl/tests/__init__.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** __init__.py	4 Feb 2003 18:47:07 -0000	1.1
--- __init__.py	11 May 2004 17:20:35 -0000	1.2
***************
*** 1 ****
--- 1,20 ----
+ #   Copyright 2000-2004 Michael Hudson mwh@python.net
+ #
+ #                        All Rights Reserved
+ #
+ #
+ # Permission to use, copy, modify, and distribute this software and
+ # its documentation for any purpose is hereby granted without fee,
+ # provided that the above copyright notice appear in all copies and
+ # that both that copyright notice and this permission notice appear in
+ # supporting documentation.
+ #
+ # THE AUTHOR MICHAEL HUDSON DISCLAIMS ALL WARRANTIES WITH REGARD TO
+ # THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+ # AND FITNESS, IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL,
+ # INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
+ # RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
+ # CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
+ # CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ 
  # moo

Index: basic.py
===================================================================
RCS file: /cvs/pyrepl/pyrepl/pyrepl/tests/basic.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** basic.py	4 Feb 2003 18:47:07 -0000	1.1
--- basic.py	11 May 2004 17:20:35 -0000	1.2
***************
*** 1,2 ****
--- 1,21 ----
+ #   Copyright 2000-2004 Michael Hudson mwh@python.net
+ #
+ #                        All Rights Reserved
+ #
+ #
+ # Permission to use, copy, modify, and distribute this software and
+ # its documentation for any purpose is hereby granted without fee,
+ # provided that the above copyright notice appear in all copies and
+ # that both that copyright notice and this permission notice appear in
+ # supporting documentation.
+ #
+ # THE AUTHOR MICHAEL HUDSON DISCLAIMS ALL WARRANTIES WITH REGARD TO
+ # THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+ # AND FITNESS, IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL,
+ # INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
+ # RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
+ # CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
+ # CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ 
  from pyrepl.console import Event
  from pyrepl.tests.infrastructure import ReaderTestCase, EA, run_testcase

Index: bugs.py
===================================================================
RCS file: /cvs/pyrepl/pyrepl/pyrepl/tests/bugs.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** bugs.py	4 Feb 2003 18:47:07 -0000	1.1
--- bugs.py	11 May 2004 17:20:35 -0000	1.2
***************
*** 1,2 ****
--- 1,21 ----
+ #   Copyright 2000-2004 Michael Hudson mwh@python.net
+ #
+ #                        All Rights Reserved
+ #
+ #
+ # Permission to use, copy, modify, and distribute this software and
+ # its documentation for any purpose is hereby granted without fee,
+ # provided that the above copyright notice appear in all copies and
+ # that both that copyright notice and this permission notice appear in
+ # supporting documentation.
+ #
+ # THE AUTHOR MICHAEL HUDSON DISCLAIMS ALL WARRANTIES WITH REGARD TO
+ # THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+ # AND FITNESS, IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL,
+ # INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
+ # RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
+ # CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
+ # CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ 
  from pyrepl.console import Event
  from pyrepl.tests.infrastructure import ReaderTestCase, EA, run_testcase

Index: infrastructure.py
===================================================================
RCS file: /cvs/pyrepl/pyrepl/pyrepl/tests/infrastructure.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** infrastructure.py	4 Feb 2003 18:47:07 -0000	1.1
--- infrastructure.py	11 May 2004 17:20:35 -0000	1.2
***************
*** 1,2 ****
--- 1,21 ----
+ #   Copyright 2000-2004 Michael Hudson mwh@python.net
+ #
+ #                        All Rights Reserved
+ #
+ #
+ # Permission to use, copy, modify, and distribute this software and
+ # its documentation for any purpose is hereby granted without fee,
+ # provided that the above copyright notice appear in all copies and
+ # that both that copyright notice and this permission notice appear in
+ # supporting documentation.
+ #
+ # THE AUTHOR MICHAEL HUDSON DISCLAIMS ALL WARRANTIES WITH REGARD TO
+ # THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+ # AND FITNESS, IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL,
+ # INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
+ # RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
+ # CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
+ # CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ 
  from pyrepl.reader import Reader
  from pyrepl.console import Console, Event

Index: wishes.py
===================================================================
RCS file: /cvs/pyrepl/pyrepl/pyrepl/tests/wishes.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** wishes.py	4 Feb 2003 18:47:07 -0000	1.1
--- wishes.py	11 May 2004 17:20:35 -0000	1.2
***************
*** 1,2 ****
--- 1,21 ----
+ #   Copyright 2000-2004 Michael Hudson mwh@python.net
+ #
+ #                        All Rights Reserved
+ #
+ #
+ # Permission to use, copy, modify, and distribute this software and
+ # its documentation for any purpose is hereby granted without fee,
+ # provided that the above copyright notice appear in all copies and
+ # that both that copyright notice and this permission notice appear in
+ # supporting documentation.
+ #
+ # THE AUTHOR MICHAEL HUDSON DISCLAIMS ALL WARRANTIES WITH REGARD TO
+ # THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+ # AND FITNESS, IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL,
+ # INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
+ # RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
+ # CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
+ # CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ 
  from pyrepl.console import Event
  from pyrepl.tests.infrastructure import ReaderTestCase, EA, run_testcase