Skip to content

Commit

Permalink
fix tests as run by buildout
Browse files Browse the repository at this point in the history
  • Loading branch information
davisagli committed Mar 22, 2013
1 parent 92d70ac commit 69a822f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -6,6 +6,6 @@ python:
install:
- pip install nose
script:
- nosetests --with-doctest --doctest-options=+IGNORE_EXCEPTION_DETAIL
- nosetests --with-doctest
notifications:
email: false
20 changes: 10 additions & 10 deletions src/ExtensionClass/tests.py
Expand Up @@ -117,12 +117,12 @@ def proper_error_on_deleattr():
... del self.gee
>>> a=A()
>>> a.foo()
>>> a.foo() # doctest: +IGNORE_EXCEPTION_DETAIL
Traceback (most recent call last):
...
AttributeError: 'A' object has no attribute 'gee'
>>> a.bar()
>>> a.bar() # doctest: +IGNORE_EXCEPTION_DETAIL
Traceback (most recent call last):
...
AttributeError: 'A' object has no attribute 'gee'
Expand All @@ -135,7 +135,7 @@ def test_NoInstanceDictionaryBase():
"""
>>> class B(NoInstanceDictionaryBase): pass
...
>>> B().__dict__
>>> B().__dict__ # doctest: +IGNORE_EXCEPTION_DETAIL
Traceback (most recent call last):
...
AttributeError: ...
Expand All @@ -145,7 +145,7 @@ def test_NoInstanceDictionaryBase():
>>> class BB(B): pass
...
>>> b = BB()
>>> b.__dict__
>>> b.__dict__ # doctest: +IGNORE_EXCEPTION_DETAIL
Traceback (most recent call last):
...
AttributeError: ...
Expand Down Expand Up @@ -190,7 +190,7 @@ def test_basic_pickling():
"""
>>> x = Simple('x', aaa=1, bbb='foo')
>>> x.__getnewargs__()
>>> x.__getnewargs__() # doctest: +IGNORE_EXCEPTION_DETAIL
Traceback (most recent call last):
...
AttributeError: ...
Expand Down Expand Up @@ -294,7 +294,7 @@ def test_pickling_w_slots_only():
"""
>>> x = SubSlotted('x', 'y', 'z')
>>> x.__getnewargs__()
>>> x.__getnewargs__() # doctest: +IGNORE_EXCEPTION_DETAIL
Traceback (most recent call last):
...
AttributeError: ...
Expand Down Expand Up @@ -349,7 +349,7 @@ def test_pickling_w_slots():
"""
>>> x = SubSubSlotted('x', 'y', 'z', aaa=1, bbb='foo')
>>> x.__getnewargs__()
>>> x.__getnewargs__() # doctest: +IGNORE_EXCEPTION_DETAIL
Traceback (most recent call last):
...
AttributeError: ...
Expand Down Expand Up @@ -393,7 +393,7 @@ def test_pickling_w_slots_w_empty_dict():
"""
>>> x = SubSubSlotted('x', 'y', 'z')
>>> x.__getnewargs__()
>>> x.__getnewargs__() # doctest: +IGNORE_EXCEPTION_DETAIL
Traceback (most recent call last):
...
AttributeError: ...
Expand Down Expand Up @@ -455,14 +455,14 @@ def test_setattr_on_extension_type():
1
0
>>> Base.__foo__ = 1
>>> Base.__foo__ = 1 # doctest: +IGNORE_EXCEPTION_DETAIL
Traceback (most recent call last):
...
TypeError: can't set attributes of built-in/extension type """ \
"""'ExtensionClass.Base' if the attribute name begins """ \
"""and ends with __ and contains only 4 _ characters
>>> Base.__foo__
>>> Base.__foo__ # doctest: +IGNORE_EXCEPTION_DETAIL
Traceback (most recent call last):
...
AttributeError: ...
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Expand Up @@ -4,7 +4,7 @@ envlist =

[testenv]
commands =
nosetests --with-doctest --doctest-options=+IGNORE_EXCEPTION_DETAIL
nosetests --with-doctest
deps =
nose

Expand All @@ -18,7 +18,7 @@ setenv =
basepython =
python2.7
commands =
nosetests --with-xunit --with-xcoverage --with-doctest --doctest-options=+IGNORE_EXCEPTION_DETAIL
nosetests --with-xunit --with-xcoverage --with-doctest
deps =
nose
coverage
Expand Down

0 comments on commit 69a822f

Please sign in to comment.