Skip to content

Commit

Permalink
Merge pull request #79 from WhyNotHugo/ignore-E741
Browse files Browse the repository at this point in the history
Ignore flake8's E741
  • Loading branch information
Hugo Osvaldo Barrera committed Nov 2, 2017
2 parents 6221363 + bbf8035 commit 5acef67
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion setup.cfg
@@ -1,7 +1,8 @@
[flake8]
ignore = E741
exclude=.tox,build,.eggs
application-import-names=txdbus,tests
import-order-style=smarkets

[bdist_wheel]
universal = 1
universal = 1
10 changes: 5 additions & 5 deletions tests/test_marshal.py
Expand Up @@ -62,18 +62,18 @@ def test_tuple(self):
self.t(('foo', 1), '(si)')

def test_dict(self):
self.t({'foo': 1}, 'a{si}')
self.t({'foo': 1}, 'a{si}')

def test_dict_multiple_elements_same_type(self):
self.t({'foo': 1, 'bar': 2}, 'a{si}')
self.t({'foo': 1, 'bar': 2}, 'a{si}')

def test_dict_of_variants(self):
self.t({'foo': 1, 'bar': '2'}, 'a{sv}')
self.t({'foo': 1, 'bar': '2'}, 'a{sv}')

def test_fail(self):
class I(object):
class SomeClass(object):
pass
self.assertRaises(m.MarshallingError, m.sigFromPy, I())
self.assertRaises(m.MarshallingError, m.sigFromPy, SomeClass())

def test_class(self):
class V(object):
Expand Down

0 comments on commit 5acef67

Please sign in to comment.