You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
On my laptop (Ubuntu 17.10, Python 2.7.14 in a virtualenv), `test_regular_mod` fails with ``` AssertionError: "\nimport sys\n\n\ndef say_hi():\n print 'hi'\n" != '\x03\xf3\r\n\xbbW\xd5Yc\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00@\x00\x00\x00s\x19\x00\x00\x00d\x00\x00d\x01\x00l\x00\x00Z\x00\x00d\x02\x00\x84\x00\x00Z\x01\x00d\x01\x00S(\x03\x00\x00\x00i\xff\xff\xff\xffNc\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00C\x00\x00\x00s\t\x00\x00\x00d\x01\x00GHd\x00\x00S(\x02\x00\x00\x00Nt\x02\x00\x00\x00hi(\x00\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00sF\x00\x00\x00/home/alex/src/mitogen/tests/data/module_finder_testmod/regular_mod.pyt\x06\x00\x00\x00say_hi\x05\x00\x00\x00s\x02\x00\x00\x00\x00\x01(\x02\x00\x00\x00t\x03\x00\x00\x00sysR\x01\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00sF\x00\x00\x00/home/alex/src/mitogen/tests/data/module_finder_testmod/regular_mod.pyt\x08\x00\x00\x00<module>\x02\x00\x00\x00s\x02\x00\x00\x00\x0c\x03' ``` `__file__` contains the path of the compiled `.pyc`, not the `.py` source file. |
8 years ago | |
|---|---|---|
| .. | ||
| data | 8 years ago | |
| README.md | 8 years ago | |
| build_docker_image.py | 8 years ago | |
| call_function_test.py | 8 years ago | |
| channel_test.py | 8 years ago | |
| fakessh_test.py | 8 years ago | |
| first_stage_test.py | 8 years ago | |
| id_allocation_test.py | 8 years ago | |
| importer_test.py | 8 years ago | |
| local_test.py | 8 years ago | |
| master_test.py | 8 years ago | |
| module_finder_test.py | 8 years ago | |
| nested_test.py | 8 years ago | |
| responder_test.py | 8 years ago | |
| select_test.py | 8 years ago | |
| ssh_test.py | 8 years ago | |
| testlib.py | 8 years ago | |
| utils_test.py | 8 years ago | |
README.md
Warning
This directory is full of disorganized crap, including random hacks I checked in that I'd like to turn into tests. The effort to write tests only really started in September 2017. Pull requests in this area are very welcome!