Skip to content

Commit 7cf317f

Browse files
committed
More bitbucket->github urls
1 parent 804d88e commit 7cf317f

15 files changed

+55
-58
lines changed

coverage/control.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1095,8 +1095,7 @@ def process_startup():
10951095
# flag (an attribute on this function) to indicate that coverage.py has
10961096
# already been started, so we can avoid doing it twice.
10971097
#
1098-
# https://bitbucket.org/ned/coveragepy/issue/340/keyerror-subpy has more
1099-
# details.
1098+
# https://github.com/nedbat/coveragepy/issues/340 has more details.
11001099

11011100
if hasattr(process_startup, "coverage"):
11021101
# We've annotated this function before, so we must have already

perf/bug397.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
$ coverage run lab/bug397.py fast
88
Runtime per example: 131.34 +/- 4.48 us
99
10-
Written by David MacIver as part of
11-
https://bitbucket.org/ned/coveragepy/issues/397/stopping-and-resuming-coverage-with
10+
Written by David MacIver as part of https://github.com/nedbat/coveragepy/issues/397
1211
1312
"""
1413
from __future__ import print_function

tests/test_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ def test_warn_once(self):
564564
self.assertNotIn("Warning, warning 2!", err)
565565

566566
def test_source_and_include_dont_conflict(self):
567-
# A bad fix made this case fail: https://bitbucket.org/ned/coveragepy/issues/541
567+
# A bad fix made this case fail: https://github.com/nedbat/coveragepy/issues/541
568568
self.make_file("a.py", "import b\na = 1")
569569
self.make_file("b.py", "b = 1")
570570
self.make_file(".coveragerc", """\
@@ -907,7 +907,7 @@ def test_source_package_dotted(self):
907907
self.filenames_not_in(lines, "p1a p1c p2a p2b othera otherb osa osb")
908908

909909
def test_source_package_part_omitted(self):
910-
# https://bitbucket.org/ned/coveragepy/issue/218
910+
# https://github.com/nedbat/coveragepy/issues/218
911911
# Used to be if you omitted something executed and inside the source,
912912
# then after it was executed but not recorded, it would be found in
913913
# the search for unexecuted files, and given a score of 0%.
@@ -920,7 +920,7 @@ def test_source_package_part_omitted(self):
920920
self.assertEqual(lines['p1c'], 0)
921921

922922
def test_source_package_as_package_part_omitted(self):
923-
# https://bitbucket.org/ned/coveragepy/issues/638/run-omit-is-ignored-since-45
923+
# https://github.com/nedbat/coveragepy/issues/638
924924
lines = self.coverage_usepkgs(source=["pkg1"], omit=["*/p1b.py"])
925925
self.filenames_in(lines, "p1a")
926926
self.filenames_not_in(lines, "p1b")

tests/test_arcs.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def example():
173173
)
174174

175175
def test_bug_146(self):
176-
# https://bitbucket.org/ned/coveragepy/issue/146
176+
# https://github.com/nedbat/coveragepy/issues/146
177177
self.check_coverage("""\
178178
for i in range(2):
179179
with open("test", "w") as f:
@@ -284,7 +284,7 @@ def test_while_true(self):
284284
)
285285

286286
def test_zero_coverage_while_loop(self):
287-
# https://bitbucket.org/ned/coveragepy/issue/502
287+
# https://github.com/nedbat/coveragepy/issues/502
288288
self.make_file("main.py", "print('done')")
289289
self.make_file("zero.py", """\
290290
def method(self):
@@ -303,7 +303,7 @@ def method(self):
303303
self.assertIn(expected, squeezed[3])
304304

305305
def test_bug_496_continue_in_constant_while(self):
306-
# https://bitbucket.org/ned/coveragepy/issue/496
306+
# https://github.com/nedbat/coveragepy/issues/496
307307
# A continue in a while-true needs to jump to the right place.
308308
if env.PYBEHAVIOR.nix_while_true:
309309
arcz = ".1 13 34 45 53 46 67 7."
@@ -1066,7 +1066,7 @@ def gen(inp):
10661066
)
10671067

10681068
def test_abandoned_yield(self):
1069-
# https://bitbucket.org/ned/coveragepy/issue/440
1069+
# https://github.com/nedbat/coveragepy/issues/440
10701070
self.check_coverage("""\
10711071
def gen():
10721072
print("yup")
@@ -1256,7 +1256,7 @@ def test_unpacked_literals(self):
12561256
)
12571257

12581258
def test_pathologically_long_code_object(self):
1259-
# https://bitbucket.org/ned/coveragepy/issue/359
1259+
# https://github.com/nedbat/coveragepy/issues/359
12601260
# The structure of this file is such that an EXTENDED_ARG bytecode is
12611261
# needed to encode the jump at the end. We weren't interpreting those
12621262
# opcodes.
@@ -1278,7 +1278,7 @@ def test_pathologically_long_code_object(self):
12781278
self.assertEqual(self.stdout().split()[-1], str(n))
12791279

12801280
def test_partial_generators(self):
1281-
# https://bitbucket.org/ned/coveragepy/issues/475/generator-expression-is-marked-as-not
1281+
# https://github.com/nedbat/coveragepy/issues/475
12821282
# Line 2 is executed completely.
12831283
# Line 3 is started but not finished, because zip ends before it finishes.
12841284
# Line 4 is never started.

tests/test_cmdline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def test_combine(self):
236236
""")
237237

238238
def test_combine_doesnt_confuse_options_with_args(self):
239-
# https://bitbucket.org/ned/coveragepy/issues/385/coverage-combine-doesnt-work-with-rcfile
239+
# https://github.com/nedbat/coveragepy/issues/385
240240
self.cmd_executes("combine --rcfile cov.ini", """\
241241
cov = Coverage(config_file='cov.ini')
242242
cov.combine(None, strict=True)

tests/test_concurrency.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -545,8 +545,7 @@ def run_thread(): # pragma: nested
545545

546546

547547
def test_thread_safe_save_data(tmpdir):
548-
# Non-regression test for:
549-
# https://bitbucket.org/ned/coveragepy/issues/581
548+
# Non-regression test for: https://github.com/nedbat/coveragepy/issues/581
550549

551550
# Create some Python modules and put them in the path
552551
modules_dir = tmpdir.mkdir('test_modules')

tests/test_coverage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1576,7 +1576,7 @@ def test_excludes_non_ascii(self):
15761576
)
15771577

15781578
def test_formfeed(self):
1579-
# https://bitbucket.org/ned/coveragepy/issues/461/multiline-asserts-need-too-many-pragma
1579+
# https://github.com/nedbat/coveragepy/issues/461
15801580
self.check_coverage("""\
15811581
x = 1
15821582
assert len([]) == 0, (

tests/test_data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ def test_add_to_hash_with_arcs(self):
443443
])
444444

445445
def test_add_to_lines_hash_with_missing_file(self):
446-
# https://bitbucket.org/ned/coveragepy/issues/403
446+
# https://github.com/nedbat/coveragepy/issues/403
447447
covdata = CoverageData()
448448
covdata.add_lines(LINES_1)
449449
hasher = mock.Mock()
@@ -454,7 +454,7 @@ def test_add_to_lines_hash_with_missing_file(self):
454454
])
455455

456456
def test_add_to_arcs_hash_with_missing_file(self):
457-
# https://bitbucket.org/ned/coveragepy/issues/403
457+
# https://github.com/nedbat/coveragepy/issues/403
458458
covdata = CoverageData()
459459
covdata.add_arcs(ARCS_3)
460460
covdata.add_file_tracers({"y.py": "hologram_plugin"})

tests/test_files.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def test_peer_directories(self):
4747
self.assertEqual(files.relative_filename(a2), a2)
4848

4949
def test_filepath_contains_absolute_prefix_twice(self):
50-
# https://bitbucket.org/ned/coveragepy/issue/194
50+
# https://github.com/nedbat/coveragepy/issues/194
5151
# Build a path that has two pieces matching the absolute path prefix.
5252
# Technically, this test doesn't do that on Windows, but drive
5353
# letters make that impractical to achieve.
@@ -309,7 +309,7 @@ def test_paths_are_os_corrected(self):
309309
self.assert_mapped(aliases, r'/home/ned/foo/src/sub/a.py', r'.\mysrc\sub\a.py')
310310

311311
def test_windows_on_linux(self):
312-
# https://bitbucket.org/ned/coveragepy/issues/618/problem-when-combining-windows-generated
312+
# https://github.com/nedbat/coveragepy/issues/618
313313
lin = "*/project/module/"
314314
win = "*\\project\\module\\"
315315

@@ -325,7 +325,7 @@ def test_windows_on_linux(self):
325325
)
326326

327327
def test_linux_on_windows(self):
328-
# https://bitbucket.org/ned/coveragepy/issues/618/problem-when-combining-windows-generated
328+
# https://github.com/nedbat/coveragepy/issues/618
329329
lin = "*/project/module/"
330330
win = "*\\project\\module\\"
331331

tests/test_html.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ def test_execed_liar_ignored_indentation_error(self):
408408
self.assert_exists("htmlcov/index.html")
409409

410410
def test_decode_error(self):
411-
# https://bitbucket.org/ned/coveragepy/issue/351/files-with-incorrect-encoding-are-ignored
411+
# https://github.com/nedbat/coveragepy/issues/351
412412
# imp.load_module won't load a file with an undecodable character
413413
# in a comment, though Python will run them. So we'll change the
414414
# file after running.
@@ -437,7 +437,7 @@ def test_decode_error(self):
437437
self.assertIn(expected, html_report)
438438

439439
def test_formfeeds(self):
440-
# https://bitbucket.org/ned/coveragepy/issue/360/html-reports-get-confused-by-l-in-the-code
440+
# https://github.com/nedbat/coveragepy/issues/360
441441
self.make_file("formfeed.py", "line_one = 1\n\f\nline_two = 2\n")
442442
cov = coverage.Coverage()
443443
self.start_import_stop(cov, "formfeed")
@@ -451,7 +451,7 @@ class HtmlTest(HtmlTestHelpers, CoverageTest):
451451
"""Moar HTML tests."""
452452

453453
def test_missing_source_file_incorrect_message(self):
454-
# https://bitbucket.org/ned/coveragepy/issue/60
454+
# https://github.com/nedbat/coveragepy/issues/60
455455
self.make_file("thefile.py", "import sub.another\n")
456456
self.make_file("sub/__init__.py", "")
457457
self.make_file("sub/another.py", "print('another')\n")
@@ -468,7 +468,7 @@ def test_missing_source_file_incorrect_message(self):
468468
def test_extensionless_file_collides_with_extension(self):
469469
# It used to be that "program" and "program.py" would both be reported
470470
# to "program.html". Now they are not.
471-
# https://bitbucket.org/ned/coveragepy/issue/69
471+
# https://github.com/nedbat/coveragepy/issues/69
472472
self.make_file("program", "import program\n")
473473
self.make_file("program.py", "a = 1\n")
474474
self.run_command("coverage run program")
@@ -488,7 +488,7 @@ def test_has_date_stamp_in_files(self):
488488

489489
def test_reporting_on_unmeasured_file(self):
490490
# It should be ok to ask for an HTML report on a file that wasn't even
491-
# measured at all. https://bitbucket.org/ned/coveragepy/issues/403
491+
# measured at all. https://github.com/nedbat/coveragepy/issues/403
492492
self.create_initial_files()
493493
self.make_file("other.py", "a = 1\n")
494494
self.run_coverage(htmlargs=dict(morfs=['other.py']))

0 commit comments

Comments
 (0)