Carl Meyer avatar Carl Meyer committed 52db46c

Removed some additional modified- references.

Comments (0)

Files changed (3)


 from pypy.tool.pytest import appsupport 
 from pypy.tool.pytest.confpath import pypydir, libpythondir, \
-                                      regrtestdir, modregrtestdir, testresultdir
+                                      regrtestdir, testresultdir
 pytest_plugins = "resultlog",
 rsyncdirs = ['.', '../pypy/']
         return self._compiler #or pypy_option.compiler 
     compiler = property(compiler)
-    def ismodified(self): 
-        return modregrtestdir.join(self.basename).check() 
     def getfspath(self): 
-        fn = modregrtestdir.join(self.basename)
-        if fn.check(): 
-            return fn 
         fn = regrtestdir.join(self.basename)
         return fn 
     regrtest = parent.config._basename2spec.get(path.basename, None)
     if regrtest is None:
-    if path.dirpath() not in (modregrtestdir, regrtestdir):
+    if path.dirpath() != regrtestdir:
     return RunFileExternal(path.basename, parent=parent, regrtest=regrtest)
         self.fspath = regrtest.getfspath()
     def collect(self): 
-        if self.regrtest.ismodified(): 
-            name = 'modified'
-        else:
-            name = 'unmodified'
-        return [ReallyRunFileExternal(name, parent=self)] 
+        return [ReallyRunFileExternal("module", parent=self)] 
 # testmethod: 
         if regrtest.core:
         return lst
-# Sanity check  (could be done more nicely too)
-import os
-samefile = getattr(os.path, 'samefile', 
-                   lambda x,y : str(x) == str(y))
-if samefile(os.getcwd(), str(regrtestdir.dirpath())):
-    raise NotImplementedError(
-        "Cannot run py.test with this current directory:\n"
-        "the app-level sys.path will contain %s before %s)." % (
-            regrtestdir.dirpath(), modregrtestdir.dirpath()))


     def render_test_references(self, result): 
         dest = self.make_single_test_result(result)
-        modified = result.ismodifiedtest() and " [mod]" or ""
-        return html.div(html.a(result.path.purebasename + modified, 
+        return html.div(html.a(result.path.purebasename, 
                       style="background-color: transparent")


                     unicode(content, candidate) 
                 self.addnamedtext(fn, text) 
-    def ismodifiedtest(self): 
-        # XXX we need proper cross-platform paths! 
-        return 'modified' in self.fspath
     def __repr__(self): 
         return '<%s (%s) %r rev=%s>' %(self.__class__.__name__, 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.