Skip to content

Commit 97efc1c

Browse files
authored
Merge pull request #114 from nicoddemus/release-1.4.33-2nd-attempt
Release 1.4.33 2nd attempt
2 parents 0e37a0a + 8699a97 commit 97efc1c

File tree

9 files changed

+21
-32
lines changed

9 files changed

+21
-32
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.dump eol=lf

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ __pycache__/
88

99
*.egg-info
1010
.eggs/
11+
12+
dist/*

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ matrix:
1111
allow_failures:
1212
- python: pypy
1313
cache: python
14-
install: pip install tox
15-
script: tox -e py
14+
install: pip install tox-travis
15+
script: tox

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
include CHANGELOG
22
include AUTHORS
3-
include README.txt
3+
include README.rst
44
include setup.py
55
include LICENSE
66
include conftest.py

py/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
py.test and pylib: rapid testing and development utils
2+
pylib: rapid testing and development utils
33
44
this module uses apipkg.py for lazy-loading sub modules
55
and classes. The initpkg-dictionary below specifies
@@ -8,7 +8,7 @@
88
99
(c) Holger Krekel and others, 2004-2014
1010
"""
11-
__version__ = '1.4.33.dev1'
11+
__version__ = '1.4.33'
1212

1313
from py import _apipkg
1414

testing/code/test_assertion.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def f(x=3):
108108
assert f(x=5)
109109
except AssertionError:
110110
e = exvalue()
111-
assert "x=5" in e.msg
111+
assert "x=5" in str(e)
112112

113113
# These tests should both fail, but should fail nicely...
114114
class WeirdRepr:
@@ -121,16 +121,16 @@ def bug_test_assert_repr():
121121
assert v == 1
122122
except AssertionError:
123123
e = exvalue()
124-
assert e.msg.find('WeirdRepr') != -1
125-
assert e.msg.find('second line') != -1
124+
assert str(e).find('WeirdRepr') != -1
125+
assert str(e).find('second line') != -1
126126
assert 0
127127

128128
def test_assert_non_string():
129129
try:
130130
assert 0, ['list']
131131
except AssertionError:
132132
e = exvalue()
133-
assert e.msg.find("list") != -1
133+
assert str(e).find("list") != -1
134134

135135
def test_assert_implicit_multiline():
136136
try:
@@ -139,7 +139,7 @@ def test_assert_implicit_multiline():
139139
2, 3]
140140
except AssertionError:
141141
e = exvalue()
142-
assert e.msg.find('assert [1, 2, 3] !=') != -1
142+
assert str(e).find('assert [1, 2, 3] !=') != -1
143143

144144

145145
def test_assert_with_brokenrepr_arg():
@@ -154,14 +154,14 @@ def test_multiple_statements_per_line():
154154
a = 1; assert a == 2
155155
except AssertionError:
156156
e = exvalue()
157-
assert "assert 1 == 2" in e.msg
157+
assert "assert 1 == 2" in str(e)
158158

159159
def test_power():
160160
try:
161161
assert 2**3 == 7
162162
except AssertionError:
163163
e = exvalue()
164-
assert "assert (2 ** 3) == 7" in e.msg
164+
assert "assert (2 ** 3) == 7" in str(e)
165165

166166

167167
class TestView:
@@ -285,8 +285,8 @@ def __init__(self, *args):
285285
super(SomeEx, self).__init__()
286286
try:
287287
raise SomeEx("hello")
288-
except AssertionError:
289-
s = str(exvalue())
288+
except AssertionError as e:
289+
s = str(e)
290290
assert 're-run' not in s
291291
assert 'could not determine' in s
292292

testing/path/test_local.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def __init__(self, path):
3535
self._path = path
3636
def __fspath__(self):
3737
return self._path
38-
return FakeFSPathClass("this/is/a/fake/path")
38+
return FakeFSPathClass(os.path.join("this", "is", "a", "fake", "path"))
3939

4040
class TestLocalPath(common.CommonFSTests):
4141
def test_join_normpath(self, tmpdir):

testing/test_iniconfig.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def test_iniconfig_section_first(tmpdir):
153153
excinfo = py.test.raises(ParseError, """
154154
IniConfig("x", data='name=1')
155155
""")
156-
assert excinfo.value.msg == "no section header defined"
156+
assert "no section header defined" in str(excinfo.value)
157157

158158
def test_iniconig_section_duplicate_fails():
159159
excinfo = py.test.raises(ParseError, r"""

tox.ini

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
[tox]
2-
envlist=py26,py27,py33,py34,py35,external
3-
# py27-xdist causes problems with svn, py25 requires virtualenv==1.9.1
4-
#indexserver=
5-
# default=http://pypi.testrun.org
2+
envlist=py26,py27,py33,py34,py35
63

74
[testenv]
85
changedir=testing
@@ -23,17 +20,6 @@ changedir=testing
2320
commands=
2421
{envpython} -m pytest --confcutdir=.. -rfsxX --junitxml={envlogdir}/junit-{envname}0.xml {posargs:io_ code}
2522

26-
[testenv:py25]
27-
setenv = PIP_INSECURE=1
28-
29-
[testenv:external]
30-
deps=
31-
pytest
32-
jinja2
33-
decorator
34-
commands=
35-
py.test --confcutdir=.. -rfsxX --junitxml={envlogdir}/junit-{envname}.xml {posargs:code}
36-
3723
[pytest]
3824
rsyncdirs = conftest.py py doc testing
39-
addopts = -rxXf
25+
addopts = -ra

0 commit comments

Comments
 (0)