| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
* Replace unittest.makeSuite with unittest.TestLoader().loadTestsFromTestCase
* import unittest from relative import
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
to make tests pass after 2028
Background:
As part of my work on reproducible builds for openSUSE, I check
that software still gives identical build results in the future.
The usual offset is +15 years, because that is how long I expect
some software will be used in some places.
This showed failing tests in our package build.
See https://reproducible-builds.org/ for why this matters.
Note: I tested that i586 builds still pass tests on 2036-12-01
so this change introduces no year2038 problem.
|
| |
|
|
|
|
|
|
|
| |
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 #158
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
I used the output of "2to3 -f import M2Crypto" to figure out
which imports needed to be fixed.
In addition, I added "from __future__ import absolute_import"
to all files that I touched. This brings in the new import behavior,
and works as far back as Python 2.5.0a1. See:
https://docs.python.org/3/library/__future__.html
https://www.python.org/dev/peps/pep-0328/
|
| |
|
|
|
|
|
|
| |
And fix expected values to new certs.
Fix #77
|
|
|
|
|
|
|
| |
Just run
$ find . -name \*.py -exec sed -r -i -e "s/\t/ /g" '{}' \;
$ find . -name \*.py -exec sed -r -i -e "s/[ ]+$//" '{}' \;
|
| |
|
| |
|
|
|
|
|
|
| |
Testing certificates in the testsuite were replaced the ones with
the expiration date Jan 8 15:33:54 2023 GMT which should be
enough for some time.
|
|
|
|
| |
Fixes #48
|
|
test_smime.py.
git-svn-id: http://svn.osafoundation.org/m2crypto/trunk@721 2715db39-9adf-0310-9c64-84f055769b4b
|