Rename dir to dirname in qa/rpc-tests/util.py #5282

pull kanzure wants to merge 1 commits into bitcoin:master from kanzure:dont-override-dir-in-qa-rpc-tests changing 1 files +8 −8
  1. kanzure commented at 3:20 PM on November 14, 2014: contributor

    Rename "dir" to "dirname" because "dir" is the name of a function in python, and it is a generally good idea to not override existing functions, even if dir is unlikely to be used.

  2. don't override dir() in qa rpc tests
    Replace "dir" with "dirname" in util.py in qa/rpc-tests/ because "dir"
    is the name of a function in python.
    a7af9839d6
  3. gavinandresen commented at 6:53 PM on November 14, 2014: contributor

    ACK.

    Thinking out loud: it would be super spiffy if changes to our .py files were automagically run through one or more of the python lint tools as part of the Travis pull-testing process.....

  4. theuni commented at 9:31 PM on November 14, 2014: member

    @gavinandresen That does sound nice. Do you happen to know of any tools that will do linting at runtime? With all the JIT work these days, I'd think there would be something to handle it in one step, so that we could get error-checking as a side-effect of running as usual.

  5. kanzure commented at 9:52 PM on November 14, 2014: contributor
  6. laanwj commented at 10:21 AM on November 17, 2014: member

    Does travis have a way to display warnings? I wouldn't want all the tests to fail because of a false positive in some linter. My experience is that they're quite false-positive-heavy.

  7. laanwj commented at 10:24 AM on November 17, 2014: member

    ACK commithash a7af9839d688bee9b0b15add61259140b3c00014 https://dev.visucore.com/bitcoin/acks/5282

  8. laanwj merged this on Nov 17, 2014
  9. laanwj closed this on Nov 17, 2014

  10. laanwj referenced this in commit 09481eec88 on Nov 17, 2014
  11. theuni commented at 6:23 PM on November 17, 2014: member

    @laanwj You can check the build logs, but I assume you're asking if we can separate out real warnings from the rest of the log? Afaik that's not possible atm.

  12. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-02 18:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me