This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author akira
Recipients BreamoreBoy, akira, eric.araujo, ezio.melotti, kristjan.jonsson, michael.foord, pitrou, r.david.murray, serhiy.storchaka, stutzbach, vzhong, zach.ware
Date 2014-08-05.03:14:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
About the name: abstract_tests could be used e.g.:

  class AbcSetTests(TestCase):
      # test abc.Set
      Set = abstract_property()

      def setUp(self):
          self.set = self.Set('abc')

      def test_difference(self):
      def test_union(self):

It is clear that AbcSetTests do not run because the class is abstract
(can't create an instance).  It is clear that to create a concrete test,
you need to subclass the abstract class (serve as a base class):

  class BuiltinSetTests(AbcSetTests):
      # test builtins.set
      Set = set

  class FrozenSetTests(AbcSetTests):
      # test frozenset
      Set = frozenset

It might not be necessary to enforce all abstract constraints in the
implementation initially. The only thing that needs to be implemented is
that tests from @abstract_tests decorated class should not be run.
Date User Action Args
2014-08-05 03:15:00akirasetrecipients: + akira, pitrou, kristjan.jonsson, stutzbach, ezio.melotti, eric.araujo, r.david.murray, michael.foord, BreamoreBoy, zach.ware, serhiy.storchaka, vzhong
2014-08-05 03:14:59akirasetmessageid: <>
2014-08-05 03:14:59akiralinkissue14534 messages
2014-08-05 03:14:59akiracreate