web2py --run-system-tests

98 views
Skip to first unread message

Kiran Subbaraman

unread,
Jan 21, 2014, 12:16:12 AM1/21/14
to web...@googlegroups.com
Hello,
I was trying to figure out how to run tests against web2py (in the case where I contribute changes to web2py).
Ran
python web2py.py --help


This listed --run-system-tests as an option

Ran this, and this is the output I see (I have to kill the process; unable to stop it otherwise)

testInvalidUrls
(gluon.tests.test_is_url.TestIsGenericUrl) ... ok
testPrepending
(gluon.tests.test_is_url.TestIsGenericUrl) ... ok
testValidUrls
(gluon.tests.test_is_url.TestIsGenericUrl) ... ok
testInvalidUrls
(gluon.tests.test_is_url.TestIsHttpUrl) ... ok
testPrepending
(gluon.tests.test_is_url.TestIsHttpUrl) ... ok
testValidUrls
(gluon.tests.test_is_url.TestIsHttpUrl) ... ok
testExceptionalUse
(gluon.tests.test_is_url.TestIsUrl) ... ok
testModeGeneric
(gluon.tests.test_is_url.TestIsUrl) ... ok
testModeHttp
(gluon.tests.test_is_url.TestIsUrl) ... ok
testRun
(gluon.tests.test_dal.TestJoin) ... ok
test_reads_and_writes
(gluon.tests.test_languages.TestLanguagesParallel) ... Traceback (most recent call last):
 
File "<string>", line 1, in <module>
 
File "D:\programs\open\python27\lib\multiprocessing\forking.py", line 380, in main
Traceback (most recent call last):
 
File "<string>", line 1, in <module>
    prepare
(preparation_data)
 
File "D:\programs\open\python27\lib\multiprocessing\forking.py", line 380, in main
 
File "D:\programs\open\python27\lib\multiprocessing\forking.py", line 488, in prepare
        prepare
(preparation_data)
assert main_name not in sys.modules, main_name
Traceback (most recent call last):
 
File "D:\programs\open\python27\lib\multiprocessing\forking.py", line 488, in prepare
AssertionError  File "<string>", line 1, in <module>
 
File "D:\programs\open\python27\lib\multiprocessing\forking.py", line 380, in main
   
Traceback (most recent call last):
   
Traceback (most recent call last):
 
File "<string>", line 1, in <module>
:   File "D:\programs\open\python27\lib\multiprocessing\forking.py", line 380, in main
 
File "<string>", line 1, in <module>
Traceback (most recent call last):
   
assert main_name not in sys.modules, main_name
Traceback (most recent call last):
_  
File "<string>", line 1, in <module>
 
File "D:\programs\open\python27\lib\multiprocessing\forking.py", line 380, in main
prepare
(preparation_data)
 
File "<string>", line 1, in <module>
prepare
(preparation_data)
AssertionErrorTraceback (most recent call last):
_main__  
File "D:\programs\open\python27\lib\multiprocessing\forking.py", line 380, in main
    prepare
(preparation_data)
 
File "D:\programs\open\python27\lib\multiprocessing\forking.py", line 488, in prepare
:       File "<string>", line 1, in <module>
 
File "D:\programs\open\python27\lib\multiprocessing\forking.py", line 488, in prepare
Traceback (most recent call last):
 
File "D:\programs\open\python27\lib\multiprocessing\forking.py", line 380, in main
 
File "D:\programs\open\python27\lib\multiprocessing\forking.py", line 488, in prepare
_prepare
(preparation_data)
 
File "D:\programs\open\python27\lib\multiprocessing\forking.py", line 380, in main


I am running these tests on Window 8.1, from within the power-shell. I am suspecting this is an OS related issue; where I need to run the tests on a *nix box?

Massimo Di Pierro

unread,
Jan 21, 2014, 8:39:52 AM1/21/14
to web...@googlegroups.com
Windows has no fork. I do not think we have ever run tests on windows. Try with cygwin

Niphlod

unread,
Jan 21, 2014, 10:59:41 AM1/21/14
to web...@googlegroups.com
windows has it. but the guy who wrote those tests never give attention to the win world. When I run tests on windows, I delete that file.

Kiran Subbaraman

unread,
Feb 12, 2014, 12:38:47 AM2/12/14
to web...@googlegroups.com
Just checked with cygwin, same issue. Doesn't work in cygwin either
Reply all
Reply to author
Forward
0 new messages