Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test for overflow conditions in all appropriate btree types.
- Loading branch information
Showing
28 changed files
with
143 additions
and
572 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1 @@ | ||
import importlib | ||
import sys | ||
import types | ||
|
||
from BTrees import _FAMILIES | ||
|
||
from ._test_builder import update_module | ||
|
||
# If there is no .py file on disk, create the module in memory. | ||
# This is helpful during early development. However, it | ||
# doesn't work with zope-testrunner's ``-m`` filter. | ||
for family in _FAMILIES: | ||
mod_qname = "BTrees.tests.test_" + family + 'BTree' | ||
try: | ||
importlib.import_module(mod_qname) | ||
except ImportError: | ||
btree = importlib.import_module("BTrees." + family + 'BTree') | ||
mod = types.ModuleType(mod_qname) | ||
update_module(vars(mod), btree) | ||
sys.modules[mod_qname] = mod | ||
globals()[mod_qname.split('.', 1)[1]] = mod | ||
# Make this a package. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.