1. 10 2月, 2018 2 次提交
  2. 08 2月, 2018 2 次提交
  3. 07 2月, 2018 1 次提交
  4. 06 2月, 2018 2 次提交
  5. 04 2月, 2018 3 次提交
  6. 03 2月, 2018 1 次提交
  7. 01 2月, 2018 1 次提交
    • C
      Python 3: provide a predictive FilterSet.__repr__() implementation · f594df04
      Cleber Rosa 提交于
      There's a difference on how Python 2 and 3 represents a set(), which is true
      for the set derived FilterSet.  It just happens the a tree fingerprint
      depends on its environment, which depends on the FilterSet representation.
      
      Let's provide a predictive __repr__ implementation, and consequently, a
      predictive fingerprint for Trees across Python versions.
      
      This fixes the following unittest failure on Python 3:
      
         FAIL: test_fingerprint (selftests.unit.test_tree.TreeNode)
         ----------------------------------------------------------------------
         Traceback (most recent call last):
           File "/home/cleber/src/avocado/avocado/selftests/unit/test_tree.py", line 63, in test_fingerprint
             "/foo{},{},FilterSet([]),FilterSet([])")
         AssertionError: '/foo{},{},FilterSet(),FilterSet()' != '/foo{},{},FilterSet([]),FilterSet([])'
         - /foo{},{},FilterSet(),FilterSet()
         + /foo{},{},FilterSet([]),FilterSet([])
         ?                     ++            ++
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      f594df04
  8. 29 1月, 2018 1 次提交
  9. 25 1月, 2018 4 次提交
  10. 24 1月, 2018 4 次提交
  11. 23 1月, 2018 9 次提交
  12. 22 1月, 2018 4 次提交
  13. 20 1月, 2018 2 次提交
  14. 19 1月, 2018 4 次提交
    • C
      avocado/utils/filelock.py: use alternative way to get process pid in bytes · 6804537a
      Cleber Rosa 提交于
      PEP461 is only available on Python 3.5.  Our CI (Travis) is set to run
      on Python 3.4, and there's no reason not to be compatible with those
      older Python versions IMO.
      
      Let's then use a syntax that will produce the same content, but will
      work on all Python 3.x versions.
      
      Reference: https://docs.python.org/3.5/whatsnew/3.5.htmlSigned-off-by: NCleber Rosa <crosa@redhat.com>
      6804537a
    • C
      selftests/unit/test_safeloader.py: do not rely on assertRegex* methods · 70d525f1
      Cleber Rosa 提交于
      The prevailing coding style of Avocado (unittest.TestCase) tests is to
      use the specialized assert methods, such as assertNotRegexpMatches.
      
      Unfortunately, the regular expression related assertion methods have
      been through a messy renaming.  In theory, assertNotRegexpMatches and
      assertRegexpMatches should be available in Python 3.0 and 3.1, but not
      in Python >= 3.2, where it got renamed to assertRegex and
      assertNotRegex.
      
      In practice, in my system with Python 3.6.3, I see:
      
      >>> unittest.TestCase.assertNotRegexpMatches
      <function TestCase._deprecate.<locals>.deprecated_func at 0x7f3b85b709d8>
      
      But in Travis, with Python 3.4, it's not available:
      
      ERROR: test_directives_regex (selftests.unit.test_safeloader.DocstringDirectives)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/home/travis/build/avocado-framework/avocado/selftests/unit/test_safeloader.py", line 135, in test_directives_regex
          self.assertNotRegexpMatches(directive, safeloader.DOCSTRING_DIRECTIVE_RE)
      AttributeError: 'DocstringDirectives' object has no attribute 'assertNotRegexpMatches'
      
      Let's simplify things and just use a regex match and check for its
      result.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      70d525f1
    • A
      Merge branch 'ldoktor-utils-soft2' · c1823f4a
      Amador Pahim 提交于
      Signed-off-by: NAmador Pahim <apahim@redhat.com>
      c1823f4a
    • A
      Merge branch 'ldoktor-parallel' · e2d4033c
      Amador Pahim 提交于
      Signed-off-by: NAmador Pahim <apahim@redhat.com>
      e2d4033c