[ https://issues.apache.org/jira/browse/TINKERPOP-1537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15625405#comment-15625405 ]
Marko A. Rodriguez commented on TINKERPOP-1537: ----------------------------------------------- Ah. Yea, that is my bad. Can you handle this and push it to {{tp32/}}? I don't think you need a PR as its pretty basic. I would just test it locally and CTR it. If {{cpu_count()}} doesn't work (for whatever reason), just remove the {{workers=4}} parameter. Its not necessary. > Python tests should not use hard-coded number of workers > -------------------------------------------------------- > > Key: TINKERPOP-1537 > URL: https://issues.apache.org/jira/browse/TINKERPOP-1537 > Project: TinkerPop > Issue Type: Bug > Affects Versions: 3.2.3 > Reporter: Daniel Kuppitz > > https://github.com/apache/tinkerpop/blob/tp32/gremlin-python/src/main/jython/tests/driver/test_driver_remote_connection.py#L88 > This test will fail on systems with less than 4 CPUs. Instead we should use > something like {{min(4, multiprocessing.cpu_count())}}. > Also see: > http://stackoverflow.com/questions/1006289/how-to-find-out-the-number-of-cpus-using-python -- This message was sent by Atlassian JIRA (v6.3.4#6332)