summaryrefslogtreecommitdiff
path: root/tests/util.py
diff options
context:
space:
mode:
authorBob Halley <halley@dnspython.org>2020-07-18 13:07:04 -0700
committerBob Halley <halley@dnspython.org>2020-07-20 13:41:22 -0700
commit7d81222f3e7f169333c9e88611cf1dedb12828be (patch)
tree8cb8acd06467e474be184483688ed3e61a2e117e /tests/util.py
parenta7604f891512ca99141c2068a4c57af45db62880 (diff)
downloaddnspython-comments.tar.gz
a way of doing commentscomments
Diffstat (limited to 'tests/util.py')
-rw-r--r--tests/util.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/util.py b/tests/util.py
new file mode 100644
index 0000000..df736df
--- /dev/null
+++ b/tests/util.py
@@ -0,0 +1,21 @@
+# Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license
+
+# Copyright (C) 2003-2007, 2009-2011 Nominum, Inc.
+#
+# Permission to use, copy, modify, and distribute this software and its
+# documentation for any purpose with or without fee is hereby granted,
+# provided that the above copyright notice and this permission notice
+# appear in all copies.
+#
+# THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES
+# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR
+# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
+# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+import os.path
+
+def here(filename):
+ return os.path.join(os.path.dirname(__file__), filename)