Skip to content

Commit

Permalink
Unit test tidyups
Browse files Browse the repository at this point in the history
  • Loading branch information
ideoforms committed Aug 5, 2024
1 parent fa4f0be commit 20bcf04
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
#------------------------------------------------------------------------
# This file is included so that pytest can find the package
# root and import the `supercollider` module from a local relative path.
#
# https://docs.pytest.org/en/latest/goodpractices.html#test-package-name
#------------------------------------------------------------------------

import os
import sys
import pytest
Expand Down Expand Up @@ -40,9 +33,7 @@ def distutils_dir_name(dir_name):
# Ensure that build dir exists and prioritise this library in sys.path
#------------------------------------------------------------------------
build_dir = os.path.join("build", distutils_dir_name("lib"))
if not os.path.exists(build_dir):
raise RuntimeError("Couldn't find .so build dir: %s" % build_dir)
if build_dir not in sys.path:
if os.path.exists(build_dir) and build_dir not in sys.path:
sys.path.insert(0, build_dir)

#------------------------------------------------------------------------
Expand Down

0 comments on commit 20bcf04

Please sign in to comment.