1. 27 12月, 2020 1 次提交
    • J
      Remove unnecessary uses of six.ensure_(binary|str|text) · c115cdc8
      Jon Dufresne 提交于
      Now that Python 2 is not supported, the bytes/str boundaries are more
      clear and explicit. Using six.ensure_* methods for backwards
      compatibility is no longer necessary as the types are known and verified
      using mypy.
      
      One exception is tests/lib/wheel.py which allows tests to pass test
      setup data as either bytes or str.
      
      The module operations.install.wheel also remains untouched as it is
      especially delicate to bytes/str mixups and the current version is
      working.
      c115cdc8
  2. 26 12月, 2020 2 次提交
    • J
      Use f-strings for simple string formatting · cdcf74fb
      Jon Dufresne 提交于
      Use pyupgrade to convert simple string formatting to use f-string
      syntax. pyupgrade is intentionally timid and will not create an f-string
      if it would make the expression longer or if the substitution parameters
      are anything but simple names or dotted names.
      cdcf74fb
    • J
      Remove object from class definitions · 09b3d3a5
      Jon Dufresne 提交于
      Unnecessary since dropping Python 2 support. In Python 3, all classes
      are new style classes.
      09b3d3a5
  3. 25 12月, 2020 1 次提交
    • J
      Drop u prefix from str literals · 2e380249
      Jon Dufresne 提交于
      Unnecessary since dropping Python 2 support.
      
      This makes one test case from test_str_to_display a duplicate and so has
      been removed.
      2e380249
  4. 22 12月, 2020 1 次提交
  5. 23 9月, 2020 1 次提交
  6. 01 2月, 2020 1 次提交
    • C
      Add wheel builder test helper · 6d8a58f7
      Chris Hunt 提交于
      As we introduce stricter metadata parsing, we will need to ensure that
      the wheel files used in our tests are compliant (except in the specific
      way that we're testing against).
      
      Currently we have a large number of test cases relying on undocumented or
      under-documented wheel files that have various inconsistencies
      (incorrect name, missing fields) that are unrelated to the features
      actually under test.
      
      With a new wheel builder helper function, we will be able to replace all
      of our instances of pre-built wheel test fixtures with dynamically-generated
      files in code that are correct by default.
      6d8a58f7