diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2020-08-18 20:18:38 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2020-08-18 20:18:38 -0400 |
commit | 7cf317f4c0e25acf671e4d633a93d7648d5d219e (patch) | |
tree | b32d24e85b6435bcc91c61a2ccb983c90552c0c2 | |
parent | 804d88e30073e4b04ed61ffcd6daa8614f534d69 (diff) | |
download | python-coveragepy-git-7cf317f4c0e25acf671e4d633a93d7648d5d219e.tar.gz |
More bitbucket->github urls
-rw-r--r-- | coverage/control.py | 3 | ||||
-rw-r--r-- | perf/bug397.py | 3 | ||||
-rw-r--r-- | tests/test_api.py | 6 | ||||
-rw-r--r-- | tests/test_arcs.py | 12 | ||||
-rw-r--r-- | tests/test_cmdline.py | 2 | ||||
-rw-r--r-- | tests/test_concurrency.py | 3 | ||||
-rw-r--r-- | tests/test_coverage.py | 2 | ||||
-rw-r--r-- | tests/test_data.py | 4 | ||||
-rw-r--r-- | tests/test_files.py | 6 | ||||
-rw-r--r-- | tests/test_html.py | 10 | ||||
-rw-r--r-- | tests/test_oddball.py | 14 | ||||
-rw-r--r-- | tests/test_parser.py | 4 | ||||
-rw-r--r-- | tests/test_process.py | 20 | ||||
-rw-r--r-- | tests/test_summary.py | 8 | ||||
-rw-r--r-- | tests/test_xml.py | 16 |
15 files changed, 55 insertions, 58 deletions
diff --git a/coverage/control.py b/coverage/control.py index cc0c271a..d60db212 100644 --- a/coverage/control.py +++ b/coverage/control.py @@ -1095,8 +1095,7 @@ def process_startup(): # flag (an attribute on this function) to indicate that coverage.py has # already been started, so we can avoid doing it twice. # - # https://bitbucket.org/ned/coveragepy/issue/340/keyerror-subpy has more - # details. + # https://github.com/nedbat/coveragepy/issues/340 has more details. if hasattr(process_startup, "coverage"): # We've annotated this function before, so we must have already diff --git a/perf/bug397.py b/perf/bug397.py index 4d72e908..390741e5 100644 --- a/perf/bug397.py +++ b/perf/bug397.py @@ -7,8 +7,7 @@ Run this file two ways under coverage and see that the times are the same: $ coverage run lab/bug397.py fast Runtime per example: 131.34 +/- 4.48 us -Written by David MacIver as part of -https://bitbucket.org/ned/coveragepy/issues/397/stopping-and-resuming-coverage-with +Written by David MacIver as part of https://github.com/nedbat/coveragepy/issues/397 """ from __future__ import print_function diff --git a/tests/test_api.py b/tests/test_api.py index 8ab57955..5ede9158 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -564,7 +564,7 @@ class ApiTest(CoverageTest): self.assertNotIn("Warning, warning 2!", err) def test_source_and_include_dont_conflict(self): - # A bad fix made this case fail: https://bitbucket.org/ned/coveragepy/issues/541 + # A bad fix made this case fail: https://github.com/nedbat/coveragepy/issues/541 self.make_file("a.py", "import b\na = 1") self.make_file("b.py", "b = 1") self.make_file(".coveragerc", """\ @@ -907,7 +907,7 @@ class SourceIncludeOmitTest(IncludeOmitTestsMixin, CoverageTest): self.filenames_not_in(lines, "p1a p1c p2a p2b othera otherb osa osb") def test_source_package_part_omitted(self): - # https://bitbucket.org/ned/coveragepy/issue/218 + # https://github.com/nedbat/coveragepy/issues/218 # Used to be if you omitted something executed and inside the source, # then after it was executed but not recorded, it would be found in # the search for unexecuted files, and given a score of 0%. @@ -920,7 +920,7 @@ class SourceIncludeOmitTest(IncludeOmitTestsMixin, CoverageTest): self.assertEqual(lines['p1c'], 0) def test_source_package_as_package_part_omitted(self): - # https://bitbucket.org/ned/coveragepy/issues/638/run-omit-is-ignored-since-45 + # https://github.com/nedbat/coveragepy/issues/638 lines = self.coverage_usepkgs(source=["pkg1"], omit=["*/p1b.py"]) self.filenames_in(lines, "p1a") self.filenames_not_in(lines, "p1b") diff --git a/tests/test_arcs.py b/tests/test_arcs.py index a02e9f7d..c16f3fa7 100644 --- a/tests/test_arcs.py +++ b/tests/test_arcs.py @@ -173,7 +173,7 @@ class WithTest(CoverageTest): ) def test_bug_146(self): - # https://bitbucket.org/ned/coveragepy/issue/146 + # https://github.com/nedbat/coveragepy/issues/146 self.check_coverage("""\ for i in range(2): with open("test", "w") as f: @@ -284,7 +284,7 @@ class LoopArcTest(CoverageTest): ) def test_zero_coverage_while_loop(self): - # https://bitbucket.org/ned/coveragepy/issue/502 + # https://github.com/nedbat/coveragepy/issues/502 self.make_file("main.py", "print('done')") self.make_file("zero.py", """\ def method(self): @@ -303,7 +303,7 @@ class LoopArcTest(CoverageTest): self.assertIn(expected, squeezed[3]) def test_bug_496_continue_in_constant_while(self): - # https://bitbucket.org/ned/coveragepy/issue/496 + # https://github.com/nedbat/coveragepy/issues/496 # A continue in a while-true needs to jump to the right place. if env.PYBEHAVIOR.nix_while_true: arcz = ".1 13 34 45 53 46 67 7." @@ -1066,7 +1066,7 @@ class YieldTest(CoverageTest): ) def test_abandoned_yield(self): - # https://bitbucket.org/ned/coveragepy/issue/440 + # https://github.com/nedbat/coveragepy/issues/440 self.check_coverage("""\ def gen(): print("yup") @@ -1256,7 +1256,7 @@ class MiscArcTest(CoverageTest): ) def test_pathologically_long_code_object(self): - # https://bitbucket.org/ned/coveragepy/issue/359 + # https://github.com/nedbat/coveragepy/issues/359 # The structure of this file is such that an EXTENDED_ARG bytecode is # needed to encode the jump at the end. We weren't interpreting those # opcodes. @@ -1278,7 +1278,7 @@ class MiscArcTest(CoverageTest): self.assertEqual(self.stdout().split()[-1], str(n)) def test_partial_generators(self): - # https://bitbucket.org/ned/coveragepy/issues/475/generator-expression-is-marked-as-not + # https://github.com/nedbat/coveragepy/issues/475 # Line 2 is executed completely. # Line 3 is started but not finished, because zip ends before it finishes. # Line 4 is never started. diff --git a/tests/test_cmdline.py b/tests/test_cmdline.py index cdf8e56f..374adb0d 100644 --- a/tests/test_cmdline.py +++ b/tests/test_cmdline.py @@ -236,7 +236,7 @@ class CmdLineTest(BaseCmdLineTest): """) def test_combine_doesnt_confuse_options_with_args(self): - # https://bitbucket.org/ned/coveragepy/issues/385/coverage-combine-doesnt-work-with-rcfile + # https://github.com/nedbat/coveragepy/issues/385 self.cmd_executes("combine --rcfile cov.ini", """\ cov = Coverage(config_file='cov.ini') cov.combine(None, strict=True) diff --git a/tests/test_concurrency.py b/tests/test_concurrency.py index 9bfd88ca..7109f170 100644 --- a/tests/test_concurrency.py +++ b/tests/test_concurrency.py @@ -545,8 +545,7 @@ def test_coverage_stop_in_threads(): def test_thread_safe_save_data(tmpdir): - # Non-regression test for: - # https://bitbucket.org/ned/coveragepy/issues/581 + # Non-regression test for: https://github.com/nedbat/coveragepy/issues/581 # Create some Python modules and put them in the path modules_dir = tmpdir.mkdir('test_modules') diff --git a/tests/test_coverage.py b/tests/test_coverage.py index 1b23f408..02b577e5 100644 --- a/tests/test_coverage.py +++ b/tests/test_coverage.py @@ -1576,7 +1576,7 @@ class ExcludeTest(CoverageTest): ) def test_formfeed(self): - # https://bitbucket.org/ned/coveragepy/issues/461/multiline-asserts-need-too-many-pragma + # https://github.com/nedbat/coveragepy/issues/461 self.check_coverage("""\ x = 1 assert len([]) == 0, ( diff --git a/tests/test_data.py b/tests/test_data.py index d058388c..b3ac718e 100644 --- a/tests/test_data.py +++ b/tests/test_data.py @@ -443,7 +443,7 @@ class CoverageDataTest(DataTestHelpers, CoverageTest): ]) def test_add_to_lines_hash_with_missing_file(self): - # https://bitbucket.org/ned/coveragepy/issues/403 + # https://github.com/nedbat/coveragepy/issues/403 covdata = CoverageData() covdata.add_lines(LINES_1) hasher = mock.Mock() @@ -454,7 +454,7 @@ class CoverageDataTest(DataTestHelpers, CoverageTest): ]) def test_add_to_arcs_hash_with_missing_file(self): - # https://bitbucket.org/ned/coveragepy/issues/403 + # https://github.com/nedbat/coveragepy/issues/403 covdata = CoverageData() covdata.add_arcs(ARCS_3) covdata.add_file_tracers({"y.py": "hologram_plugin"}) diff --git a/tests/test_files.py b/tests/test_files.py index 1aeacb51..a84ef61d 100644 --- a/tests/test_files.py +++ b/tests/test_files.py @@ -47,7 +47,7 @@ class FilesTest(CoverageTest): self.assertEqual(files.relative_filename(a2), a2) def test_filepath_contains_absolute_prefix_twice(self): - # https://bitbucket.org/ned/coveragepy/issue/194 + # https://github.com/nedbat/coveragepy/issues/194 # Build a path that has two pieces matching the absolute path prefix. # Technically, this test doesn't do that on Windows, but drive # letters make that impractical to achieve. @@ -309,7 +309,7 @@ class PathAliasesTest(CoverageTest): self.assert_mapped(aliases, r'/home/ned/foo/src/sub/a.py', r'.\mysrc\sub\a.py') def test_windows_on_linux(self): - # https://bitbucket.org/ned/coveragepy/issues/618/problem-when-combining-windows-generated + # https://github.com/nedbat/coveragepy/issues/618 lin = "*/project/module/" win = "*\\project\\module\\" @@ -325,7 +325,7 @@ class PathAliasesTest(CoverageTest): ) def test_linux_on_windows(self): - # https://bitbucket.org/ned/coveragepy/issues/618/problem-when-combining-windows-generated + # https://github.com/nedbat/coveragepy/issues/618 lin = "*/project/module/" win = "*\\project\\module\\" diff --git a/tests/test_html.py b/tests/test_html.py index 6f22acc0..12012b6a 100644 --- a/tests/test_html.py +++ b/tests/test_html.py @@ -408,7 +408,7 @@ class HtmlWithUnparsableFilesTest(HtmlTestHelpers, CoverageTest): self.assert_exists("htmlcov/index.html") def test_decode_error(self): - # https://bitbucket.org/ned/coveragepy/issue/351/files-with-incorrect-encoding-are-ignored + # https://github.com/nedbat/coveragepy/issues/351 # imp.load_module won't load a file with an undecodable character # in a comment, though Python will run them. So we'll change the # file after running. @@ -437,7 +437,7 @@ class HtmlWithUnparsableFilesTest(HtmlTestHelpers, CoverageTest): self.assertIn(expected, html_report) def test_formfeeds(self): - # https://bitbucket.org/ned/coveragepy/issue/360/html-reports-get-confused-by-l-in-the-code + # https://github.com/nedbat/coveragepy/issues/360 self.make_file("formfeed.py", "line_one = 1\n\f\nline_two = 2\n") cov = coverage.Coverage() self.start_import_stop(cov, "formfeed") @@ -451,7 +451,7 @@ class HtmlTest(HtmlTestHelpers, CoverageTest): """Moar HTML tests.""" def test_missing_source_file_incorrect_message(self): - # https://bitbucket.org/ned/coveragepy/issue/60 + # https://github.com/nedbat/coveragepy/issues/60 self.make_file("thefile.py", "import sub.another\n") self.make_file("sub/__init__.py", "") self.make_file("sub/another.py", "print('another')\n") @@ -468,7 +468,7 @@ class HtmlTest(HtmlTestHelpers, CoverageTest): def test_extensionless_file_collides_with_extension(self): # It used to be that "program" and "program.py" would both be reported # to "program.html". Now they are not. - # https://bitbucket.org/ned/coveragepy/issue/69 + # https://github.com/nedbat/coveragepy/issues/69 self.make_file("program", "import program\n") self.make_file("program.py", "a = 1\n") self.run_command("coverage run program") @@ -488,7 +488,7 @@ class HtmlTest(HtmlTestHelpers, CoverageTest): def test_reporting_on_unmeasured_file(self): # It should be ok to ask for an HTML report on a file that wasn't even - # measured at all. https://bitbucket.org/ned/coveragepy/issues/403 + # measured at all. https://github.com/nedbat/coveragepy/issues/403 self.create_initial_files() self.make_file("other.py", "a = 1\n") self.run_coverage(htmlargs=dict(morfs=['other.py'])) diff --git a/tests/test_oddball.py b/tests/test_oddball.py index 90b92249..17f69647 100644 --- a/tests/test_oddball.py +++ b/tests/test_oddball.py @@ -94,7 +94,7 @@ class RecursionTest(CoverageTest): ) def test_long_recursion_recovery(self): - # Test the core of bug 93: https://bitbucket.org/ned/coveragepy/issue/93 + # Test the core of bug 93: https://github.com/nedbat/coveragepy/issues/93 # When recovering from a stack overflow, the Python trace function is # disabled, but the C trace function is not. So if we're using a # Python trace function, we won't trace anything after the stack @@ -141,7 +141,7 @@ class MemoryLeakTest(CoverageTest): """Attempt the impossible: test that memory doesn't leak. Note: this test is truly unusual, and has had a colorful history. See - for example: https://bitbucket.org/ned/coveragepy/issue/186 + for example: https://github.com/nedbat/coveragepy/issues/186 It may still fail occasionally, especially on PyPy. @@ -276,7 +276,7 @@ class PyexpatTest(CoverageTest): self.assertEqual(missing, []) # Make sure pyexpat isn't recorded as a source file. - # https://bitbucket.org/ned/coveragepy/issues/419/nosource-no-source-for-code-path-to-c + # https://github.com/nedbat/coveragepy/issues/419 files = cov.get_data().measured_files() self.assertFalse( any(f.endswith("pyexpat.c") for f in files), @@ -425,7 +425,7 @@ class DoctestTest(CoverageTest): class GettraceTest(CoverageTest): """Tests that we work properly with `sys.gettrace()`.""" def test_round_trip_in_untraced_function(self): - # https://bitbucket.org/ned/coveragepy/issues/575/running-doctest-prevents-complete-coverage + # https://github.com/nedbat/coveragepy/issues/575 self.make_file("main.py", """import sample""") self.make_file("sample.py", """\ from swap import swap_it @@ -458,7 +458,7 @@ class GettraceTest(CoverageTest): self.assertEqual(missing, []) def test_setting_new_trace_function(self): - # https://bitbucket.org/ned/coveragepy/issues/436/disabled-coverage-ctracer-may-rise-from + # https://github.com/nedbat/coveragepy/issues/436 self.check_coverage('''\ import sys @@ -535,7 +535,7 @@ class GettraceTest(CoverageTest): class ExecTest(CoverageTest): """Tests of exec.""" def test_correct_filename(self): - # https://bitbucket.org/ned/coveragepy/issues/380/code-executed-by-exec-excluded-from + # https://github.com/nedbat/coveragepy/issues/380 # Bug was that exec'd files would have their lines attributed to the # calling file. Make two files, both with ~30 lines, but no lines in # common. Line 30 in to_exec.py was recorded as line 30 in main.py, @@ -579,7 +579,7 @@ class ExecTest(CoverageTest): class MockingProtectionTest(CoverageTest): """Tests about protecting ourselves from aggressive mocking. - https://bitbucket.org/ned/coveragepy/issues/416/coverage-40-is-causing-existing-unit-tests + https://github.com/nedbat/coveragepy/issues/416 """ def test_os_path_exists(self): diff --git a/tests/test_parser.py b/tests/test_parser.py index a8da45cf..03bf25de 100644 --- a/tests/test_parser.py +++ b/tests/test_parser.py @@ -45,7 +45,7 @@ class PythonParserTest(CoverageTest): }) def test_generator_exit_counts(self): - # https://bitbucket.org/ned/coveragepy/issue/324/yield-in-loop-confuses-branch-coverage + # https://github.com/nedbat/coveragepy/issues/324 parser = self.parse_source("""\ def gen(input): for n in inp: @@ -453,7 +453,7 @@ class ParserFileTest(CoverageTest): def test_missing_line_ending(self): # Test that the set of statements is the same even if a final # multi-line statement has no final newline. - # https://bitbucket.org/ned/coveragepy/issue/293 + # https://github.com/nedbat/coveragepy/issues/293 self.make_file("normal.py", """\ out, err = subprocess.Popen( diff --git a/tests/test_process.py b/tests/test_process.py index 8f8b009c..25f1fcc9 100644 --- a/tests/test_process.py +++ b/tests/test_process.py @@ -146,7 +146,7 @@ class ProcessTest(CoverageTest): self.assertEqual(line_counts(data)['b_or_c.py'], 8) def test_combine_no_usable_files(self): - # https://bitbucket.org/ned/coveragepy/issues/629/multiple-use-of-combine-leads-to-empty + # https://github.com/nedbat/coveragepy/issues/629 self.make_b_or_c_py() out = self.run_command("coverage run b_or_c.py b") self.assertEqual(out, 'done\n') @@ -595,7 +595,7 @@ class ProcessTest(CoverageTest): self.assertNotIn("Exception", out) def test_warnings_trace_function_changed_with_threads(self): - # https://bitbucket.org/ned/coveragepy/issue/164 + # https://github.com/nedbat/coveragepy/issues/164 if env.METACOV: self.skipTest("Can't test tracers changing during metacoverage") @@ -754,7 +754,7 @@ class ProcessTest(CoverageTest): # failures with non-ascii file names. We don't want to make a real file # with strange characters, though, because that gets the test runners # tangled up. This will isolate the concerns to the coverage.py code. - # https://bitbucket.org/ned/coveragepy/issues/533/exception-on-unencodable-file-name + # https://github.com/nedbat/coveragepy/issues/533 self.make_file("weird_file.py", r""" globs = {} code = "a = 1\nb = 2\n" @@ -768,7 +768,7 @@ class ProcessTest(CoverageTest): def test_deprecation_warnings(self): # Test that coverage doesn't trigger deprecation warnings. - # https://bitbucket.org/ned/coveragepy/issue/305/pendingdeprecationwarning-the-imp-module + # https://github.com/nedbat/coveragepy/issues/305 self.make_file("allok.py", """\ import warnings warnings.simplefilter('default') @@ -784,7 +784,7 @@ class ProcessTest(CoverageTest): self.assertEqual(out, "No warnings!\n") def test_run_twice(self): - # https://bitbucket.org/ned/coveragepy/issue/353/40a3-introduces-an-unexpected-third-case + # https://github.com/nedbat/coveragepy/issues/353 self.make_file("foo.py", """\ def foo(): pass @@ -812,7 +812,7 @@ class ProcessTest(CoverageTest): ) def test_module_name(self): - # https://bitbucket.org/ned/coveragepy/issues/478/help-shows-silly-program-name-when-running + # https://github.com/nedbat/coveragepy/issues/478 out = self.run_command("python -m coverage") self.assertIn("Use 'coverage help' for help", out) @@ -957,7 +957,7 @@ class EnvironmentTest(CoverageTest): self.assertEqual(self.line_count(out), 6, out) def test_coverage_run_dashm_is_like_python_dashm_off_path(self): - # https://bitbucket.org/ned/coveragepy/issue/242 + # https://github.com/nedbat/coveragepy/issues/242 self.make_file("sub/__init__.py", "") with open(TRY_EXECFILE) as f: self.make_file("sub/run_me.py", f.read()) @@ -967,7 +967,7 @@ class EnvironmentTest(CoverageTest): self.assert_tryexecfile_output(expected, actual) def test_coverage_run_dashm_is_like_python_dashm_with__main__207(self): - # https://bitbucket.org/ned/coveragepy/issue/207 + # https://github.com/nedbat/coveragepy/issues/207 self.make_file("package/__init__.py", "print('init')") self.make_file("package/__main__.py", "print('main')") expected = self.run_command("python -m package") @@ -1404,7 +1404,7 @@ def possible_pth_dirs(): yield pth_dir # If we're still looking, then try the Python library directory. - # https://bitbucket.org/ned/coveragepy/issue/339/pth-test-malfunctions + # https://github.com/nedbat/coveragepy/issues/339 yield sysconfig.get_python_lib() # pragma: cant happen @@ -1505,7 +1505,7 @@ class ProcessStartupTest(ProcessCoverageMixin, CoverageTest): self.assertEqual(line_counts(data)['sub.py'], 3) def test_subprocess_with_pth_files_and_parallel(self): # pragma: no metacov - # https://bitbucket.org/ned/coveragepy/issues/492/subprocess-coverage-strange-detection-of + # https://github.com/nedbat/coveragepy/issues/492 if env.METACOV: self.skipTest("Can't test sub-process pth file suppport during metacoverage") diff --git a/tests/test_summary.py b/tests/test_summary.py index 9513d159..eb25a4d8 100644 --- a/tests/test_summary.py +++ b/tests/test_summary.py @@ -131,7 +131,7 @@ class SummaryTest(UsingModulesMixin, CoverageTest): self.assertEqual(self.last_line_squeezed(report), "mycode.py 4 0 100%") def test_run_source_vs_report_include(self): - # https://bitbucket.org/ned/coveragepy/issues/621/include-ignored-warning-when-using + # https://github.com/nedbat/coveragepy/issues/621 self.make_file(".coveragerc", """\ [run] source = . @@ -146,7 +146,7 @@ class SummaryTest(UsingModulesMixin, CoverageTest): cov.stop() # pragma: nested def test_run_omit_vs_report_omit(self): - # https://bitbucket.org/ned/coveragepy/issues/622/report-omit-overwrites-run-omit + # https://github.com/nedbat/coveragepy/issues/622 # report:omit shouldn't clobber run:omit. self.make_mycode() self.make_file(".coveragerc", """\ @@ -646,7 +646,7 @@ class SummaryTest(UsingModulesMixin, CoverageTest): return report def test_bug_156_file_not_run_should_be_zero(self): - # https://bitbucket.org/ned/coveragepy/issue/156 + # https://github.com/nedbat/coveragepy/issues/156 self.make_file("mybranch.py", """\ def branch(x): if x: @@ -693,7 +693,7 @@ class SummaryTest(UsingModulesMixin, CoverageTest): if not env.WINDOWS: self.skipTest(".pyw files are only on Windows.") - # https://bitbucket.org/ned/coveragepy/issue/261 + # https://github.com/nedbat/coveragepy/issues/261 self.make_file("start.pyw", """\ import mod print("In start.pyw") diff --git a/tests/test_xml.py b/tests/test_xml.py index 8c399594..e3be7a54 100644 --- a/tests/test_xml.py +++ b/tests/test_xml.py @@ -124,13 +124,13 @@ class XmlReportTest(XmlTestHelpers, CoverageTest): self.assert_exists("xml.out") def test_no_data(self): - # https://bitbucket.org/ned/coveragepy/issue/210 + # https://github.com/nedbat/coveragepy/issues/210 self.run_command("coverage xml") self.assert_doesnt_exist("coverage.xml") def test_no_source(self): # Written while investigating a bug, might as well keep it. - # https://bitbucket.org/ned/coveragepy/issue/208 + # https://github.com/nedbat/coveragepy/issues/208 self.make_file("innocuous.py", "a = 4") cov = coverage.Coverage() self.start_import_stop(cov, "innocuous") @@ -165,7 +165,7 @@ class XmlReportTest(XmlTestHelpers, CoverageTest): def test_reporting_on_nothing(self): # Used to raise a zero division error: - # https://bitbucket.org/ned/coveragepy/issue/250 + # https://github.com/nedbat/coveragepy/issues/250 self.make_file("empty.py", "") cov = coverage.Coverage() empty = self.start_import_stop(cov, "empty") @@ -177,7 +177,7 @@ class XmlReportTest(XmlTestHelpers, CoverageTest): assert elts[0].get('line-rate') == '1' def test_empty_file_is_100_not_0(self): - # https://bitbucket.org/ned/coveragepy/issue/345 + # https://github.com/nedbat/coveragepy/issues/345 cov = self.run_doit() cov.xml_report() dom = ElementTree.parse("coverage.xml") @@ -205,7 +205,7 @@ class XmlReportTest(XmlTestHelpers, CoverageTest): def test_deep_source(self): # When using source=, the XML report needs to mention those directories # in the <source> elements. - # https://bitbucket.org/ned/coveragepy/issues/439/incorrect-cobertura-file-sources-generated + # https://github.com/nedbat/coveragepy/issues/439 self.make_file("src/main/foo.py", "a = 1") self.make_file("also/over/there/bar.py", "b = 2") cov = coverage.Coverage(source=["src/main", "also/over/there", "not/really"]) @@ -242,7 +242,7 @@ class XmlReportTest(XmlTestHelpers, CoverageTest): } def test_nonascii_directory(self): - # https://bitbucket.org/ned/coveragepy/issues/573/cant-generate-xml-report-if-some-source + # https://github.com/nedbat/coveragepy/issues/573 self.make_file("테스트/program.py", "a = 1") with change_dir("테스트"): cov = coverage.Coverage() @@ -364,8 +364,8 @@ class XmlPackageStructureTest(XmlTestHelpers, CoverageTest): ]) def test_source_prefix(self): - # https://bitbucket.org/ned/coveragepy/issues/465 - # https://bitbucket.org/ned/coveragepy/issues/526/generated-xml-invalid-paths-for-cobertura + # https://github.com/nedbat/coveragepy/issues/465 + # https://github.com/nedbat/coveragepy/issues/526 self.make_file("src/mod.py", "print(17)") cov = coverage.Coverage(source=["src"]) self.start_import_stop(cov, "mod", modfile="src/mod.py") |