scikit-learn / scikit-learn
Showing 1 of 1 files from the diff.

@@ -992,23 +992,14 @@
Loading
992 992
    timeout : int
993 993
        Time in seconds before timeout.
994 994
    """
995 -
    def _make_cwd_env():
996 -
        """Helper to prepare environment for the child processes"""
997 -
        sklearn_repo_folder = op.normpath(
998 -
            op.join(op.dirname(__file__), '../..'))
999 -
        env = os.environ.copy()
1000 -
        pythonpath = "{src}{sep}tests{pathsep}{src}".format(
1001 -
            src=sklearn_repo_folder, sep=os.sep, pathsep=os.pathsep)
1002 -
        env['PYTHONPATH'] = pythonpath
1003 -
        return sklearn_repo_folder, env
1004 -
1005 995
    fd, source_file = tempfile.mkstemp(suffix='_src_test_sklearn.py')
1006 996
    os.close(fd)
1007 997
    try:
1008 998
        with open(source_file, 'wb') as f:
1009 999
            f.write(source_code.encode('utf-8'))
1010 1000
        cmd = [sys.executable, source_file]
1011 -
        cwd, env = _make_cwd_env()
1001 +
        cwd = op.normpath(op.join(op.dirname(sklearn.__file__), '..'))
1002 +
        env = os.environ.copy()
1012 1003
        kwargs = {
1013 1004
            'cwd': cwd,
1014 1005
            'stderr': STDOUT,
Files Coverage
sklearn 95.68%
Project Totals (383 files) 95.68%
Untitled
1
comment: false
2

3
coverage:
4
  status:
5
    project:
6
      default:
7
        # Commits pushed to master should not make the overall
8
        # project coverage decrease by more than 1%:
9
        target: auto
10
        threshold: 1%
11
    patch:
12
      default:
13
        # Be tolerant on slight code coverage diff on PRs to limit
14
        # noisy red coverage status on github PRs.
15
        # Note The coverage stats are still uploaded
16
        # to codecov so that PR reviewers can see uncovered lines
17
        # in the github diff if they install the codecov browser
18
        # extension:
19
        # https://github.com/codecov/browser-extension
20
        target: auto
21
        threshold: 1%
22

23
ignore:
24
- "sklearn/externals"
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading