Skip to content

Commit

Permalink
eat it py27...
Browse files Browse the repository at this point in the history
  • Loading branch information
marscher committed Jun 15, 2018
1 parent a4bf317 commit c0d37b0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pyemma/coordinates/tests/test_readers.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,14 @@ def max_chunksize_from_config(itemsize):

class GenerateTestMatrix(type):
def __new__(mcs, name, bases, attr):
from functools import partialmethod
from functools import partial

class partialmethod(partial):
def __get__(self, instance, owner):
if instance is None:
return self
return partial(self.func, instance,
*(self.args or ()), **(self.keywords or {}))
new_test_methods = {}

test_templates = {k: v for k, v in attr.items() if k.startswith('_test') }
Expand Down

0 comments on commit c0d37b0

Please sign in to comment.