You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In trying to debug a very odd failure of my script where one of arguments was being removed from sys.argv, I found that the root cause is that pytables removes the flag --heavy from sys.argv purely due to import tables in a user script.
import tables triggers from tables.tests import print_versions, test, on line 133 of tables/__init__.py, which further triggers from tables.tests.test_all import print_versions, test, suite, and then from tables.tests import common.
In trying to debug a very odd failure of my script where one of arguments was being removed from
sys.argv
, I found that the root cause is that pytables removes the flag--heavy
fromsys.argv
purely due toimport tables
in a user script.import tables
triggersfrom tables.tests import print_versions, test
, on line 133 oftables/__init__.py
, which further triggersfrom tables.tests.test_all import print_versions, test, suite
, and thenfrom tables.tests import common
.The result is that this line gets executed, which removes
--heavy
fromsys.argv
, purely by importingtables
:https://github.com/PyTables/PyTables/blob/develop/tables/tests/common.py#L56-L58
The text was updated successfully, but these errors were encountered: