Source

mino-pypy / pypy / interpreter / test / test_main.py

Author Commit Message Labels Comments Date
Alex Gaynor
(alex, fijal): fix interpreter tests
Branches
kill-faking
Alex Gaynor
Try to propogate the immutability of defaults through the code more, fixes the 3 failing pypy_c tests
Armin Rigo
Create the temporary module/package files in udir, not in the current directory.
Armin Rigo
issue145 in-progress Patch by leo.soto: add the -m command-line option to py.py. The same needs to be done for pypy-c now...
holger krekel
merge of the dist-interpapp branch where Samuele Armin and me worked for 9 days (summing up to a hundred commits, as you may have noticed in your inbox). Major results (apart from little stuff here and there) are: - a new app2interp mechanism that is now indepedent from the interp2app implementation - a new way to do "mixed modules" which contain applevel and interplevel definitions. We also ported the builtin and sys module and they now live as packages/directory structures. in pypy/module/sys2/__init__.py and pypy/module/builtin/__i…
Armin Rigo
Merge, last step: copy branch as head.
holger krekel
read file with universal readline (fixes bug on win) and use asserts more directly.
holger krekel
ported all the rest of the interpreter tests moved create-space-magic to setup_class because there doesn't appear to be a use case for doing it at setup_method time but there is one (in test_module) for having it already at class-level.
holger krekel
avoid using yet another class from CPython (StringIO) and just use a file (which we have to "fake" anyway)
Armin Rigo
Moved the branch back into the trunk.
holger krekel
fixed Stefan's somewhat optimistic test.py -> testit.py renaming. Actually we have a lot of references to our test module (in all of our test files) so they need fixing. And i don't like the "testit" name so i will change that soon, i guess.
holger krekel
the final merge of the builtinrefactor branch into the trunk. See http://codespeak.net/pipermail/pypy-dev/2003q3/001012.html for in-depth discussion and description of what is new.
Jacob Hallén
Added eval_string to main.py
holger krekel
Refactored our Test "Framework". - got rid of duplicate code, removed all testsupport/cts/all/whatnot files. - concentrate most of the test functionality in tool/test.py - factored out automatic path manipulation in "autopath.py" whose master version lives in tool/autopath.py and can be started to update the others. - modified interactive.py and main.py to use the new "-S" "-T" objectspace selection via cmdline. Comm…
Michael Hudson-Doyle
rehash main.py slightly to enable rewrite of test_main; rewrite test_main so it works when part of a larger suite.
Samuele Pedroni
working test for print len(aStr) where aStr = 'hello world'
Michael Hudson-Doyle
rewrite tests as unittests; add test of run_string
Michael Hudson-Doyle
this very basic test works with the stdobjspace, if you comment out the softspace handling stuff