~a-roehler/python-mode/XEmacs-compat-test

« back to all changes in this revision

Viewing changes to test/py-bug-numbered-tests.el

  • Committer: Andreas Roehler
  • Date: 2011-10-27 10:14:29 UTC
  • Revision ID: andreas.roehler@online.de-20111027101429-1f5sg5jj4ro3ar5k
Pymacs integrated

No separate install required any more, works
out-of-the-box.

Customize `py-install-directory', if Pymacs should run from
other place than default set by python-mode.el.

If `py-install-directory' is nil, python-mode assumes
 it's default directory `pymacs' beneath location where
 python-mode.el resides

Show diffs side-by-side

added added

removed removed

Lines of Context:
135
135
        (insert teststring)
136
136
        (funcall testname)))))
137
137
 
 
138
(defvar python-mode-teststring "class OrderedDict1(dict):
 
139
    \"\"\"
 
140
    This implementation of a dictionary keeps track of the order
 
141
    in which keys were inserted.
 
142
    \"\"\"
 
143
 
 
144
    def __init__(self, d={}):
 
145
        self._keys = d.keys()
 
146
        dict.__init__(self, d)
 
147
 
 
148
    def f():
 
149
        \"\"\"
 
150
        class for in 'for in while with blah'
 
151
        \"\"\"
 
152
        if a:
 
153
 
 
154
            ar_atpt_python_list_roh = ([
 
155
                'python-expression',
 
156
 
 
157
    #     def ar_thingatpt_write_lists (&optional datei):
 
158
            'python-partial-expression',
 
159
            'python-statement',
 
160
            ])
 
161
"
 
162
  "String used for tests by python-mode-test.el")
 
163
 
138
164
(defun sexp-commands-lp:328778-test (&optional arg load-branch-function)
139
165
  "With ARG greater 1 keep test buffer open.
140
166
If no `load-branch-function' is specified, make sure the appropriate branch is loaded. Otherwise default python-mode will be checked.
1900
1926
(defun py-complete-lp:858621-base ()
1901
1927
    (goto-char 52)
1902
1928
    (completion-at-point)
1903
 
    (sit-for 1) 
1904
1929
    (assert (eq 54 (point)) nil "py-complete-lp:858621-test failed"))
1905
1930
 
1906
1931