Skip to content
Snippets Groups Projects
  1. May 28, 2017
  2. May 13, 2017
  3. Nov 10, 2016
  4. Apr 02, 2016
  5. Dec 07, 2015
  6. Aug 13, 2015
    • Katsunori FUJIWARA's avatar
      tests: make filterpyflakes.py read target files relatively to cwd · 48671378daeb
      Katsunori FUJIWARA authored
      Before this patch, 'filterpyflakes.py' reads target files relatively
      to own location.
      
      But this prevents third party tools from using it in own source tree,
      because their files are placed separately from 'filterpyflakes.py'.
      
      In fact, 'test-check-pyflakes.t', which is the only user of
      'filterpyflakes.py', changes current working directory (cwd) to the
      root of "test target" source tree before using it. Therefore,
      composing the root of source tree in 'filterpyflakes.py' is redundant.
      
      This patch makes 'filterpyflakes.py' read target files relatively to
      cwd by invoking 'open()' without any path composition. This also
      removes importing 'os' module, because there is no user of it after
      this patch.
      
      This is a one of preparation of issue4677.
      48671378daeb
  7. May 14, 2014
  8. May 08, 2014
    • Katsunori FUJIWARA's avatar
      tests: ignore "undefined name 'memoryview'" pyflakes error on earlier Python · 4adc090fa2fb
      Katsunori FUJIWARA authored
      Before this patch, "test-check-pyflakes.t" shows unexpected "undefined
      name 'memoryview'" error for "mercurial/util.py" on Python 2.6.x or
      earlier, because they don't define symbol 'memoryview'.
      
      This patch introduces excluding patterns into "filterpyflakes.py" to
      ignore "undefined name 'memoryview'" pyflakes error on Python 2.6.x or
      earlier
      4adc090fa2fb
  9. Apr 29, 2014
    • Yuya Nishihara's avatar
      test-pyflakes: detect undefined name error · 0768cda8b579
      Yuya Nishihara authored
      It should be able to catch the following mistakes at 2606e7f227f6:
      
          mercurial/exchange.py:590: undefined name 'UnknownPartError'
          mercurial/match.py:346: undefined name 'pat'
          mercurial/win32.py:365: undefined name '_ERROR_NO_MORE_FILES'
          tests/killdaemons.py:46: undefined name 'check'
      0768cda8b579
  10. Oct 03, 2013
  11. Jul 01, 2013
  12. Jun 26, 2013
    • Simon Heimberg's avatar
      tests: simplify and document the sorting of pyflake messages · 77440de177f7
      Simon Heimberg authored
      The pyflake messages are simply ordered by message type, path, line no (and
      message text).
      The message type is taken from the order of the filters.
      
      The previous ordering looks complicated and illogically.
      It was the following order (r'\3:\5:\4:\1:\2:' + line):
        message (\3 and \5)
        var name (\4)
        path (\1)
        line no (\2)
        line reference
      Ordering by var name before path looks illogically for me.
      77440de177f7
  13. May 06, 2011
  14. May 01, 2011
Loading