Commits

Armin Rigo committed f9a6556

Re-add support for "-k core".

  • Participants
  • Parent commits b050a24

Comments (0)

Files changed (1)

File lib-python/conftest.py

         return self._compiler #or pypy_option.compiler 
     compiler = property(compiler)
 
-    def getoptions(self): 
-        l = []
-        for name in ['core']:
-            if getattr(self, name): 
-                l.append(name)
-        for name in self.usemodules: 
-            l.append(name)
-        return l 
-
     def ismodified(self): 
         return modregrtestdir.join(self.basename).check() 
 
         
         return exit_status, test_stdout, test_stderr
 
+    def _keywords(self):
+        lst = list(py.test.collect.Item._keywords(self))
+        regrtest = self.parent.regrtest
+        if regrtest.core:
+            lst.append('core')
+        return lst
+
 #
 # Sanity check  (could be done more nicely too)
 #