Skip to content

Commit 6a21898

Browse files
committed
Fix more deprecation warnings
1 parent 30facfd commit 6a21898

5 files changed

Lines changed: 11 additions & 11 deletions

File tree

polynote-kernel/src/main/scala/polynote/kernel/interpreter/python/PythonInterpreter.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,6 @@ object PythonInterpreter {
476476
classLoader => ZIO {
477477
val conf = new JepConfig()
478478
.addSharedModules(sharedModules: _*)
479-
.setInteractive(false)
480479
.setClassLoader(classLoader)
481480
.setClassEnquirer(new NamingConventionClassEnquirer(true).addTopLevelPackageName("polynote"))
482481
val interp = new SubInterpreter(conf)

polynote-kernel/src/test/scala/polynote/data/RopeSpec.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ package polynote.data
22

33
import org.scalacheck.Gen
44
import org.scalatest._
5-
import org.scalatest.prop.PropertyChecks
5+
import org.scalatestplus.scalacheck.ScalaCheckPropertyChecks
66

7-
class RopeSpec extends FlatSpec with Matchers with PropertyChecks {
7+
class RopeSpec extends FlatSpec with Matchers with ScalaCheckPropertyChecks {
88

99
val r = new scala.util.Random(System.nanoTime())
1010
val aLongString: String = r.nextString(Rope.thresh * 10)

polynote-kernel/src/test/scala/polynote/kernel/remote/RemoteKernelSpec.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ package remote
44
import java.util.concurrent.TimeUnit
55

66
import org.scalamock.scalatest.MockFactory
7-
import org.scalatest.prop.GeneratorDrivenPropertyChecks
87
import org.scalatest.{BeforeAndAfterAll, BeforeAndAfterEach, FreeSpec, Matchers}
8+
import org.scalatestplus.scalacheck.ScalaCheckDrivenPropertyChecks
99
import polynote.kernel.Kernel.Factory
1010
import polynote.kernel.environment.{NotebookUpdates, PublishResult, PublishStatus}
1111
import polynote.kernel.{BaseEnv, CellEnv, Completion, CompletionType, GlobalEnv, Kernel, KernelBusyState, KernelInfo, Output, ParameterHint, ParameterHints, ResultValue, Signatures, TaskInfo, UpdatedTasks}
@@ -17,12 +17,12 @@ import polynote.testing.{Generators, ZIOSpec}
1717
import polynote.testing.kernel.{MockEnv, MockKernelEnv}
1818
import polynote.testing.kernel.remote.InProcessDeploy
1919
import scodec.bits.ByteVector
20-
import zio.{Ref, Task, RIO, ZIO}
20+
import zio.{RIO, Ref, Task, ZIO}
2121
import zio.interop.catz._
2222

2323
import scala.concurrent.TimeoutException
2424

25-
class RemoteKernelSpec extends FreeSpec with Matchers with ZIOSpec with BeforeAndAfterAll with BeforeAndAfterEach with MockFactory with GeneratorDrivenPropertyChecks {
25+
class RemoteKernelSpec extends FreeSpec with Matchers with ZIOSpec with BeforeAndAfterAll with BeforeAndAfterEach with MockFactory with ScalaCheckDrivenPropertyChecks {
2626
private val kernel = mock[Kernel]
2727
private val kernelFactory = new Factory.LocalService {
2828
def apply(): RIO[BaseEnv with GlobalEnv with CellEnv, Kernel] = ZIO.succeed(kernel)

polynote-kernel/src/test/scala/polynote/messages/ContentEditSpec.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
package polynote.messages
22

33
import org.scalacheck.{Arbitrary, Shrink}
4-
import org.scalatest.prop.GeneratorDrivenPropertyChecks
54
import org.scalatest.{FreeSpec, Matchers}
5+
import org.scalatestplus.scalacheck.ScalaCheckDrivenPropertyChecks
66
import polynote.data.Rope
77
import polynote.testing.Generators
88

9-
class ContentEditSpec extends FreeSpec with Matchers with GeneratorDrivenPropertyChecks {
9+
class ContentEditSpec extends FreeSpec with Matchers with ScalaCheckDrivenPropertyChecks {
1010

1111
case class EditScenario(initial: Rope, edit: ContentEdit, edits: ContentEdits)
1212

polynote-runtime/src/test/scala/polynote/runtime/test/DataReprsTest.scala

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
package polynote.runtime
22
package test
33

4-
import org.scalacheck.{Arbitrary, Gen}, Arbitrary.arbitrary
5-
import org.scalatest.prop.GeneratorDrivenPropertyChecks
4+
import org.scalacheck.{Arbitrary, Gen}
5+
import Arbitrary.arbitrary
66
import org.scalatest.{FreeSpec, Matchers}
7+
import org.scalatestplus.scalacheck.ScalaCheckDrivenPropertyChecks
78

89
import scala.reflect.runtime.universe.TypeTag
910

1011
/**
1112
* Exercises some DataReprs to make sure they don't crash. Doesn't do any validations, though, because we don't have
1213
* the decoding side in Scala land. TODO: an integration test with the JS code to make sure they get decoded correctly too
1314
*/
14-
class DataReprsTest extends FreeSpec with Matchers with GeneratorDrivenPropertyChecks {
15+
class DataReprsTest extends FreeSpec with Matchers with ScalaCheckDrivenPropertyChecks {
1516

1617
implicit val arbString: Arbitrary[String] = Arbitrary(Gen.listOf(arbitrary[Char]).map(_.mkString))
1718

0 commit comments

Comments
 (0)