summaryrefslogtreecommitdiff
path: root/tests/test_bio_membuf.py
Commit message (Collapse)AuthorAgeFilesLines
* Take care of CRLF x LF difference even for test case.Matěj Cepl2023-03-171-2/+2
| | | | Fixes #331
* test_bio_membuf: Use fork when running on MacOSAllan Que2021-11-121-1/+20
| | | | | | | Restores Python pre-3.8 multiprocessing start method when running test_readline() under MacOS. Fixes #286
* Replace 'from . import' with absolute imports.Matěj Cepl2021-01-141-1/+1
|
* Mass removal of deprecated constructs.Matěj Cepl2020-12-021-2/+2
| | | | | * Replace unittest.makeSuite with unittest.TestLoader().loadTestsFromTestCase * import unittest from relative import
* PEP8isationMatěj Cepl2018-03-201-4/+1
| | | | | | | Specially replace complicated construct with unittest2 to one import to M2Crypto top module. Also, Rand.load_file should have first parameter as bytes(), not str().
* Fix tests to run on Windows.Daniel A. Wozniak2018-02-231-26/+15
|
* M2Crypto.BIO: Fixing BIO for python3Matěj Cepl2017-09-141-1/+1
| | | | | | | | | | | | | | | | | | | | * Instead of unicode use six.text_type * Use bio_new_file in openfile The previously bio_new_fd does not work for unknown reason. I am not sure if _new_file is a reasonable fix for python3 io not based on FILE*, but ... it makes part of test_evp passing. * avoid bytes/str issues. * File: use fd based approach Use file descriptor instead of filename, when opening BIO.File Fix a few issues in test_bio_file: * in tearDown close the fd opened in setUp, not the filename, so test no longer leaks file descriptors * add a hacky check for the fd leak between tests * fix a few ResourceWarnings by closing opened files
* BIO.read should always return bytesMatěj Cepl2017-03-161-0/+6
|
* test_{dh,dsa,rc4,evp,bio_membuf}: proper use of bytes, str, and hashlibMichal Vyskocil2017-03-161-5/+5
| | | | also fix for https://bugzilla.osafoundation.org/show_bug.cgi?id=12972
* Fix params tests.test_bio_membuf.MemoryBuffer.test_readline.run_testMatěj Cepl2016-12-151-1/+1
| | | | | We need to catch whatever comes our way, even though we may throw it away.
* Fix tests.test_bio_membuf.time_limit.Matěj Cepl2016-12-131-1/+4
|
* Celebrating 11 years old bug! Congratulations!Jim Carroll2016-08-031-1/+40
| | | | | The bug so ancient it has even its own answer on the StackOverflow (http://stackoverflow.com/questions/9280550/)!
* Fix whitespace using suggestions from autopep8Craig Rodrigues2015-12-011-1/+0
|
* Make BIO.BIO class into a context manager.Matěj Cepl2015-11-251-0/+12
| | | | | | Also, add some tests. Fix #81
* Strip trailinig spaces and expand tabs.Matěj Cepl2015-11-191-2/+2
| | | | | | | Just run $ find . -name \*.py -exec sed -r -i -e "s/\t/ /g" '{}' \; $ find . -name \*.py -exec sed -r -i -e "s/[ ]+$//" '{}' \;
* Remove more plain assertsMatěj Cepl2015-11-181-5/+7
|
* Change self.assertRaises to context managers.Matěj Cepl2015-10-271-2/+4
|
* Switch unit testing to have at least 2.7 unittest API available.Matěj Cepl2015-10-131-1/+5
| | | | Fixes #48
* Make all test methods start with test_, so that running individual suites works,Heikki Toivonen2006-12-151-7/+7
| | | | | | | | for example: python setup.py test --test-suite=tests.test_x509 -q git-svn-id: http://svn.osafoundation.org/m2crypto/trunk@504 2715db39-9adf-0310-9c64-84f055769b4b
* Removed RCS_id, RCS_ID and _RCS_id from Python files. UnneededHeikki Toivonen2006-03-201-2/+0
| | | | | | bloat, and made working with diffs more difficult than it needed to. git-svn-id: http://svn.osafoundation.org/m2crypto/trunk@383 2715db39-9adf-0310-9c64-84f055769b4b
* Fix $ mess (diff always shows changes).Heikki Toivonen2005-06-091-1/+1
| | | | git-svn-id: http://svn.osafoundation.org/m2crypto/trunk@299 2715db39-9adf-0310-9c64-84f055769b4b
* Prepare for import into CVS.Ng Pheng Siong2002-12-231-3/+3
| | | | git-svn-id: http://svn.osafoundation.org/m2crypto/trunk@141 2715db39-9adf-0310-9c64-84f055769b4b
* Initial revisionNg Pheng Siong2000-11-081-0/+66
git-svn-id: http://svn.osafoundation.org/m2crypto/trunk@77 2715db39-9adf-0310-9c64-84f055769b4b