Skip to content

Commit

Permalink
Fixed Travis issue on py26 with format of empty field error.
Browse files Browse the repository at this point in the history
Details:

Since 2018-04-27, Travis on Python 2.6 with PACKAGE_LEVEL=latest failed
with 'Error: zero length field name in format' on all testclient .yaml files.

Comparing the Python package versions between 4/26 and 4/27 revealed
only one changed package version: httpretty has increased from 0.8.14
to 0.9.4. It turns out httpretty dropped support for Python 2.6 in
its 0.9 version, and (suspicion) seems to be using format() on
the response we provide in the testclient .yaml files.

This change limits the version of httpretty on Python 2.6 to <0.9.

Signed-off-by: Andreas Maier <maiera@de.ibm.com>
  • Loading branch information
andy-maier committed May 3, 2018
1 parent a62b13e commit 6230b75
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ pytest>=3.0.7,<3.3.0; python_version == '2.6'
pytest>=3.0.7; python_version > '2.6'
# testfixtures 6.0.0 no longer supports py26 and fails on py26 with syntax error
testfixtures>=4.3.3,<6.0.0
httpretty>=0.8.14
httpretty>=0.8.14,<0.9.1; python_version == '2.6'
httpretty>=0.8.14; python_version > '2.6'
lxml>=4.0.0
requests>=2.12.4
decorator>=4.0.11
Expand Down
7 changes: 7 additions & 0 deletions docs/changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ Released: not yet
representation of integer key values in binary, octal or hex format
(part of Issue #904).

* Fixed an issue with running the tests on Travis CI that occurred on
Python 2.6 with the latest package level and that was caused by the fact
that a new version of the "httpretty" Python package was released that
had dropped support for Python 2.6. This was fixed by limiting the
version of httpretty to <0.9 when running on Python 2.6. Note that
this only affects the development environment.

**Enhancements:**

* Extend pywbem MOF compiler to search for dependent classes including:
Expand Down

0 comments on commit 6230b75

Please sign in to comment.