aboutsummaryrefslogtreecommitdiff
path: root/absl/third_party/unittest3_backport/BUILD
blob: d619cee7e372be6b20972f508ac69f27e6bd2372 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
licenses(["notice"])  # New BSD, Python Software Foundation

exports_files(["LICENSE"])

load("//absl:_build_defs.bzl", "py2and3_test")

py_library(
    name = "unittest3_backport",
    srcs = ["__init__.py"],
    srcs_version = "PY2AND3",
    visibility = ["//absl/testing:__pkg__"],
    deps = [
        ":case",
        ":result",
    ],
)

py_library(
    name = "case",
    srcs = ["case.py"],
    srcs_version = "PY2AND3",
    deps = [
        "@six_archive//:six",
    ],
)

py_library(
    name = "result",
    srcs = ["result.py"],
    srcs_version = "PY2AND3",
    deps = [
        "@six_archive//:six",
    ],
)

py2and3_test(
    name = "tests/unittest3_backport_test",
    size = "small",
    srcs = ["tests/unittest3_backport_test.py"],
    srcs_version = "PY2AND3",
    deps = [
        "//absl/testing:absltest",
        "//absl/testing:xml_reporter",
        "@mock_archive//:mock",
        "@six_archive//:six",
    ],
)