summaryrefslogtreecommitdiffstats
path: root/test/SConsignFile
Commit message (Collapse)AuthorAgeFilesLines
* Normalized all sconsfiles and sub-sconsfiles to use algorithm if not ↵Jacob Cassagnol2021-11-108-63/+81
| | | | | | | | | defaulted to md5. Dir search now excludes all types of sconsfiles that are now created. Environment now defaults to the current scons filename instead of .sconsfile Sconsign now has a function used by a lot of code that gets the default sconsign filename Any tests referring to .sconsfile have now been changed, including one old legacy test.
* [PR #3836] fix misplaced docstrings on two tests [ci skip]Mats Wichmann2020-12-132-6/+2
| | | | Signed-off-by: Mats Wichmann <mats@linux.com>
* Fix broken mod to (unused) testMats Wichmann2020-12-081-1/+1
| | | | | | | | | An edit to the use-dbhash.py test file missed a bit. Might as well fix, although the test is always skipped since the Python dbm module it tests does not exist in any current Python version. Signed-off-by: Mats Wichmann <mats@linux.com>
* [PR #3836] quiet sider complaints on explicit-dbm-module.pyMats Wichmann2020-12-051-3/+0
| | | | Signed-off-by: Mats Wichmann <mats@linux.com>
* [PR #3836] while we're at it, update SConsignFile testsMats Wichmann2020-12-058-91/+85
| | | | | | | Formatting, copyright header, make sure to null out tools to speed up Windeows. Signed-off-by: Mats Wichmann <mats@linux.com>
* [PR #3836] add example of SConsign(dbm_modue=...) (skip appveyor)Mats Wichmann2020-12-041-0/+87
| | | | | | | | | | | | | It wasn't clear that you need to pass the module name to SConsignFile, the expectation might be to pass a string, so clarified and an example added to show it. Some of the wording was simplified a bit. Added a testcase of explicity passing dbm_module=SCons.dblite, as this should work. Signed-off-by: Mats Wichmann <mats@linux.com>
* Run autoflake on codeMats Wichmann2020-09-214-16/+6
| | | | | | | | | | Eliminate unneeded imports, and a few unneeded statements - usually "pass" where it is not syntactically needed. A couple of import try blocks were eliminated or changed when they're "cannot happen" due to current floor Python version. Signed-off-by: Mats Wichmann <mats@linux.com>
* [ci skip] typo in error message in testWilliam Deegan2020-01-021-2/+2
|
* Fix use-dbm test to work with sconsign files using dbm but where the ↵William Deegan2020-01-011-7/+10
| | | | underlying dbm implementation still writes the file without applying a suffix (like .db). This is due to Travis-ci's py3.8's dbm not applying suffix. Which seems unusual, but still valid
* set tools=[] for test/SConsignFile/use-dbm.pyWilliam Deegan2019-12-281-1/+3
|
* Tweak a few testsMats Wichmann2019-05-301-4/+9
| | | | | | | | | | | | | "for i in range(len(foo))" idiom changed to iterate directly over lists instead of indexing them. zip() generates the iterator in the case with two lists. reversed() used for the Windows drive-letter test. gdbm is not gone, just renamed. change test to find under either name. Use a context manager for closing StringIO objects opened for capturing standard I/O streams. Signed-off-by: Mats Wichmann <mats@linux.com>
* [PY 3.8] test fixes for file closings, rawstringsMats Wichmann2019-04-256-24/+12
| | | | | | | On a linux host (missing some things that may be on the Travis CI setup), Py3.8a3 now shows 19 fails, 1048 pass, with 84 Warning: messages. Signed-off-by: Mats Wichmann <mats@linux.com>
* py2/3 set python path to be raw string literal py3 was trying to interpret ↵William Deegan2017-05-161-1/+1
| | | | path as unicode
* py2/3 use dbm.ndbm on py3 and plain dbm doesn't create .sconsign.db, but ↵William Deegan2017-04-241-3/+9
| | | | rather .sconsign and causes test to fail. Continue to use dbm on py2 as dbm.ndbm doesn't exist there
* Fix dumbdbm/dbm.dumb for py2/3William Deegan2017-04-011-4/+9
|
* check for correct gdbm module to decide to skip or not py2/3William Deegan2017-03-201-1/+1
|
* Commit resolved conflicted merge.Russel Winder2016-04-104-4/+4
|\
| * Fix for backslash being treated as an escape characterThomas Tanner2016-01-304-4/+4
| | | | | | | | | | On my windows system, my python is in c:\apps\32\python. Theres a lot of places where that \32 gets turned into an ascii character and the unit tests don't run.
* | Result of raw 2to3 run (2to3-2.7); checkpoint for python3 conversion.Gary Oberbrunner2013-09-224-4/+4
|/
* Add tests of using SConsignFile() with Python dbm modules.Steven Knight2010-08-214-0/+395
| | | | | Related fixes: explicitly close the db when we close it, and add a .close() method to dblite.py.
* Add emacs and vim editing settings to the bottom of *.py files.Steven Knight2009-02-093-0/+18
|
* Windows portability (path names in expected output).Steven Knight2008-09-221-2/+7
|
* Issue 1693: make the subdirectory in which the .sconsign file willSteven Knight2008-09-143-0/+226
| | | | appear (if it doesn't already exist. (Damyan Pepper, Jim Randall)
* Revert the previous change, I overlooked some regression test failures.Steven Knight2008-09-133-226/+0
|
* Issue 1693: Make the directory in which the .sconsign file will live,Steven Knight2008-09-133-0/+226
if the directory doesn't already exist. (Damyan Pepper, Jim Randall)